designing-elite-ui
Skill2 starsChanged 5 months agoMITView on GitHub
Visual review — hold the rendered UI to a concrete elite/Figma-grade bar (one-axis color, APCA-gated contrast, floating stable chrome, dark verified) instead of a vague "looks fine." The STANDARD a design-critic measures against.
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- clud-bug-collaborationSkill
- critical-issues-onlySkill
- evidence-based-reviewSkill
- respect-existing-conventionsSkill
- skill-frontmatter-qualitySkill
- apca-contrastSkill
- api-contract-enforcementSkill
- brand-voice-reviewSkill
- chroma-harmonizationSkill
- clud-bug-collaborationSkill
- component-sizing-principlesSkill
- component-sizingSkill
- composing-a-screenSkill
- consuming-a-design-systemSkill
- conventions-templateSkill
- critical-issues-onlySkill
- curating-a-skill-catalogSkill
- designing-a-design-systemSkill
- design-system-consistencySkill
- design-token-namingSkill
- dtcg-formatSkill
- empirical-design-principlesSkill
- evidence-based-reviewSkill
- finding-a-catalog-skillSkill
- frontend-a11ySkill
- guarding-a-regressionSkill
- line-height-gridSkill
- logmindSkill
- oklch-color-spaceSkill
- orchestrating-agent-delegationSkill
- orchestrating-a-multi-agent-runSkill
- orchestrating-elite-agent-qaSkill
- palette-relationshipsSkill
- pii-and-complianceSkill
- proving-an-absenceSkill
- respect-existing-conventionsSkill
- retiring-a-superseded-decisionSkill
- reviewing-design-workSkill
- semver-design-tokensSkill
- session-heartbeatSkill
- skillforgeSkill
- skill-frontmatter-qualitySkill
- spacing-systemSkill
- test-disciplineSkill
- token-frugal-toolingSkill
- token-naming-conventionsSkill
- type-scaleSkill
- udts-component-sizing-laddersSkill
- udts-dtcg-extensionsSkill
- udts-linter-rulesSkill
- udts-naming-conventionSkill
- udts-reviewSkill
- udts-semver-defaultsSkill
- udts-spacing-defaultsSkill
- udts-token-modelSkill
- unattended-operationSkill
- usability-heuristicsSkill
- visual-polishSkill
- The first 60 shown.
The file
Files
Designing Elite UI
Overview
The design bar is the standard; the QA loop is the enforcement (see orchestrating-elite-agent-qa). A critic with no encoded bar finds nothing — "looks fine." This skill is the bar: the transferable taste an agent designs to and critiques against. Encode it explicitly (a tokens file + a short design-system doc) so both builders and the critic share one source of truth.
The Principles
- One semantic role → one meaning → one variation axis. Give each role a band where exactly one dimension varies and the rest lock; it reads deliberate, not random. Reserve a color for ONE meaning only. (Example below: status fills vary hue at locked L/C; pending/warning badges vary hue in a warm band, never red; destructive actions are red, reserved.)
- Contrast is gated, not eyeballed. APCA-check every text-on-fill. A theme flip needs its own ramp (a dark draw ramp, derived dark reds) — never reuse the light values on a dark surface.
- Restraint beats richness. Distinguish by hue-in-band + shape + label, not a rainbow. Plain text labels with a subtle active state, not boxy segmented controls. Tinted/outline active states over heavy solid fills. Retire decoration that doesn't carry meaning.
- Type: one family + its mono. Mono for data, codes, and labels; optical centering (
text-box-trim); restrained weights. Consistency over variety. - The canvas is stable; chrome floats. The work surface NEVER reflows or rescales on selection (lock px-per-unit). Panels float over it; the toolbar morphs smoothly; one icon language; a per-context accent. Infinite/dotted background beats a white card on a page.
- Interaction feels alive before the click. Cursor affordances (resize cursors on handles, grab/grabbing on pan), hover highlights, valid/invalid ghost tints, smooth transitions, unmistakable active states.
- Light and dark are BOTH primary. Design and verify in both; neither is an afterthought.
- Optical, not metric, alignment. Center to the eye (text trim, icon nudge); balance a frame so no element reads as an afterthought; never ship a clipped focus ring.
Gotchas That Quietly Break the Bar
| Symptom | Cause / fix |
| Popover text clipped / see-through | A backdrop-filter ancestor traps even position:fixed children → portal the popover to <body>; opaque frame + inner scroll owns any fade-mask. |
| Pill/toolbar drifts off-center | left:50% on an auto-width fixed element caps it to 50vw → wrap in a full-width flex container, center inside; recompute after layout settles. |
| Dark mode looks washed/low-contrast | Light tokens reused on dark → add explicit dark ramps; re-run APCA. |
| Two controls read "active" at once | Mode vs tool both filled with the accent → give the resting one a tinted/outline state. |
| Glyph looks wrong only when rotated | Glyph drawn fixed while footprint swapped → re-orient the silhouette with the rotation. |
Encode the Bar (so it's enforceable)
The bar only bites if it's written down where agents read it:
- Tokens in one file (colors as the actual system, not ad-hoc hex), emitted to CSS vars.
- A design-system doc (a SPEC section / memory) stating the domains, the variation axis per role, the type rules, the chrome model.
- Feed it to the design-critic: "challenge the render against THIS bar in light + dark" — not "is it nice?". Vague critics pass everything.
REQUIRED COMPANION: orchestrating-elite-agent-qa is how this bar gets enforced per slice (the browser-driving critic gate).
Worked Example (one system, fully specified)
Admin dashboard for a SaaS product, build-free vanilla JS:
- Color = OKLCH, three domains, one axis each. Status fills (tables/cards/tabs) = cool band blue→purple→pink, vary hue, lock L≈.88/C≈.07; neutral states near-grey. Pending/loading/warning badges = warm band green→orange, vary hue, NO red (red must stay unambiguous). Destructive/critical (delete confirmations · error banners · failed states) = red, reserved; destructive intensities vary lightness only. Reduced-color/monochrome mode → one uniform grey for all status fills; the semantic red/badges stay. APCA-gate every metric label + status chip.
- Type: Geist + Geist Mono; mono for ids/timestamps/metric values;
text-box-trimcentering. - Chrome: stable content canvas — the data table/chart surface never reflows or rescales on row selection (row density + px-per-unit on chart axes locked); floating collapsible sidebar + floating top toolbar, both over the canvas (Lucide icons, per-section accent); detail panel floats over the canvas, never splits it.
- Interaction: column-resize cursors on header handles; grab/grabbing on chart pan; drag-reorder ghost row (valid/invalid tint) before drop; soft warning halos on cells needing attention, not hard error tiles, for in-progress states.
Deploying This Skill (per writing-skills)
A reference/taste skill — test by retrieval + application: give an agent a UI task with this skill loaded and check the output actually exhibits the principles (one-axis color, APCA, floating chrome, dark verified), not just that it read them. Tighten any principle an agent reads but doesn't apply.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

