Factorylm ui style
Use when building or editing ANY FactoryLM/MIRA front end — the offline tools (mira-contextualizer, mira-plc-parser gui/), mira-hub, mira-web, or an Ignition Perspective view. Enforces one shared visual system via design tokens (flat/modern, muted-normal + color-for-state). Trigger on any HTML/CSS/Tailwind/Perspective change, a new tool window, or a request to "match the style / keep it consistent". Co-activates with industrial-hmi-scada-design for operator screens.From its SKILL.md
npx -y skills add Mikecranesync/MIRA --skill factorylm-ui-styleAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.7 KB, as published. Nobody here has run it
FactoryLM UI Style
One look across every product, enforced by design tokens — the lightest, most portable way to stay consistent (one CSS file, no framework, runs in any browser/WebView).
Read first: docs/design/factorylm-style.md (runbook) · docs/design/factorylm-tokens.css
(canonical tokens) · .claude/rules/ui-style.md (the law).
Do this every time
- Link/import the tokens. Plain-HTML tool → keep a copy of
factorylm-tokens.cssin the tool'sgui/dir and<link>it; React/Tailwind → map the same token values into the theme; Ignition → use the same hex values. - Use
var(--fl-*)for every color/space/type value. Never hardcode a hex. Missing value? Add a token to the canonical file (and the runbook), then sync copies — don't paste a hex. - Flat, not Win95. 1px
--fl-lineborders,--fl-radius,--fl-shadow. No bevels/gradients. - Muted normal; color = state only. ok=green, warn=amber, fault=red, off=gray; accent=indigo for
actions/selection only. (Operator screens: also apply
industrial-hmi-scada-design.) - Bundle it. Plain-HTML tool's PyInstaller spec
datasMUST includefactorylm-tokens.css. - Re-skin legacy CSS by remapping its variables to
--fl-*(see mira-plc-parser Tag Mapper), not by rewriting every rule.
Component cheatsheet
- Button
.btn(1px line + radius); primary.btn.primary(accent bg, white text). - Table: header
#f9fafb+ uppercase--fl-muted; accepted row--fl-ok-bg, rejected--fl-fault-bg. - Confidence/state text: high=
--fl-ok, med=--fl-warn, low=--fl-off. - Chip
--fl-accent-tint/--fl-accent-ink; pill uses state bg/ink; toast = dark--fl-headerbubble +--fl-shadow-pop.
Verify before done
- App renders flat + on-brand; states show the correct color; no stray hardcoded hex.
- Frozen build:
factorylm-tokens.csspresent under_internal/gui/. - Web UI: honor the repo Screenshot Rule (
docs/promo-screenshots/).
Anti-patterns
- ❌ Hardcoded hex in a component. ❌ New front end without the tokens. ❌ State color as decoration / accent as status. ❌ Spec missing the css. ❌ Reintroducing bevelled/Win95 chrome.