ui-design
Skill1 starsChanged 2 months agoMITView on GitHub
Seven core UI rules for consistent, hierarchical, readable interfaces — colors, spacing, typography, and CTA tiers. Use when checking specific component consistency, reviewing layouts for visual hierarchy, or applying systematic spacing and color rules. For broader aesthetic direction and making design choices that don't look templated, use frontend-design instead.
78 other projects use a version of this.
Adopted by
Most recently taken up by
- Rain-kl/OpenFlaretheir own version, first seen Nov 30, 2026
- Kindness-Kismet/Stellibertytheir own version, first seen Nov 29, 2026
- kuyacarlo/skillstheir own version, first seen Nov 29, 2026
- jaansokk/cursor_toolstheir own version, first seen Nov 29, 2026
- daniel-kindl/dkstacktheir own version, first seen Nov 29, 2026
- microsoft/Tandemtheir own version, first seen Nov 29, 2026
Used with
Projects with it also use harness-design, icon-design and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VictoriakaeySkillharness-design
Use when designing or improving the action space, observation format, tool boundaries, and evaluation signals of an LLM agent. Covers the five layers of harness design: what tools the agent has, what it sees after acting, how each tool is scoped, how behavior is evaluated, and how to iterate when the agent misbehaves. Prevents the most common harness failures — agents that pick wrong tools, ignore critical information, or loop without progress.
Also in 4 projects that use this
ArnavPuriSkillicon-design
Design and implement consistent SVG icon systems for UI: keyline grids, stroke rules, optical corrections, outline/filled/duotone styles, icon+text alignment, animation, and accessible markup. Use for UI icons in code; for a logo mark use brand-identity, for illustrations use image-generation. Trigger phrases: "icon design", "svg icon", "icon system", "custom icons", "icon animation", "icon grid", "icon accessibility", "duotone icon", "icon set", "animated icon"
Also in 3 projects that use this
travisjneumanSkillgraphic-design
Professional graphic design principles for digital and print media. Use when creating visual designs, choosing color palettes, typography, layouts, or providing design feedback.
Also in 3 projects that use this
soilmassSkilltypography
Typography and kinetic text animations including character reveals, typewriter effects, scramble/decode, wave motion, and animated gradients. Use when creating text reveals, headline animations, number counters, or any text-based motion effects.
Also in 3 projects that use this
MicrosoftSkilltypescript
TypeScript best practices for this monorepo. Use this skill when: (1) writing new TypeScript code, (2) reviewing TypeScript code, (3) working with API responses, fetch calls, or JSON parsing, (4) adding or modifying types and interfaces.
Also in 6 projects that use this
jarosser06Skilltest-strategy
Plans pytest test strategies for Drift's 90%+ coverage requirement using coverage analysis, edge case identification, and test suite design. Use when determining what tests to write, analyzing coverage gaps, or planning test strategies.
Also in 4 projects that use this
Other versions78 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 78
- twentyhq/twenty★ 62ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- Kindness-Kismet/Stelliberty★ 1.2ksame name
- yunshu0909/yunshu_skillshub★ 760same name
- Rain-kl/OpenFlare★ 305same name
- Mindrally/skills★ 275same name
- mblode/agent-skills★ 227same name
- AnastasiyaW/claude-code-config★ 218same name
- AnastasiyaW/codex-claude-code-config★ 218same name
68 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository81 other files it gives its agents.
- accessibility-action-planSkill
- accessibility-auditSkill
- accessibility-finding-explainerSkill
- accessibility-report-summarySkill
- agent-config-authoringSkill
- agents-sdkSkill
- ai-ux-patternsSkill
- alt-text-generatorSkill
- anti-ai-copySkill
- aria-usage-reviewSkill
- astro-architectureSkill
- astro-client-scriptsSkill
- astro-component-a11y-reviewSkill
- before-after-accessibility-commsSkill
- bfsg-risk-language-softenerSkill
- biomeSkill
- blog-from-transcriptSkill
- brand-voice-dnaSkill
- case-study-from-auditSkill
- client-email-after-auditSkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflareSkill
- complexity-judgmentSkill
- component-doc-writerSkill
- content-clarity-a11y-checkSkill
- content-qaSkill
- conversation-retrospectiveSkill
- darkmodeSkill
- deep-researchSkill
- design-directionsSkill
- design-systemsSkill
- durable-objectsSkill
- faq-from-issuesSkill
- form-accessibility-reviewSkill
- frontend-designSkill
- handoffSkill
- i18nSkill
- image-to-webpSkill
- keyboard-navigation-reviewSkill
- knowledge-baseSkill
- landing-and-site-builderSkill
- landingpage-from-briefingSkill
- lighthouse-axe-result-explainerSkill
- linkedin-post-from-contentSkill
- llm-councilSkill
- local-business-seoSkill
- mcp-builderSkill
- mdx-contentSkill
- motion-designSkill
- native-html-uiSkill
- newsletter-from-auditSkill
- overlay-tool-risk-explainerSkill
- playwrightSkill
- post-auditSkill
- remotionSkill
- sandbox-migrate-to-nextSkill
- sandbox-nextSkill
- sandbox-sdkSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 66 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Use tokens — var(--color-text) and var(--color-bg) — so both modes flip cleanly.
- Distinctive: line 18
Avoid arbitrary values (13 px, 22 px, 7 px).
- Very specific: line 21
Use --space-sm, --space-md, --space-lg tokens where defined.
- Distinctive: line 45
Use the defined text-scale tokens.
- Distinctive: line 55
Every interactive element needs a tier:
- Distinctive: line 63
Never have two primary buttons competing on the same screen.
- Distinctive: line 70
Optical over geometric alignment: When geometric centering looks off (icons in buttons, play triangles, asymmetric glyphs), nudge it …
“Common” is measured: kept by at least 6 in 10 of the 66 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UI design rules
Apply these seven rules whenever building or reviewing UI. Most bad UIs fail not on technical grounds, but on consistency, hierarchy, and missing systems.
1. No pure black / white
#000on#fffis harsh and tiring.- Soften to
#111/#f5f5f5, or OKLCH equivalents such asoklch(18% 0 0)onoklch(98% 0 0). - Use tokens —
var(--color-text)andvar(--color-bg)— so both modes flip cleanly.
2. Consistent spacing — 8 px system
- Avoid arbitrary values (13 px, 22 px, 7 px).
- Stick to a scale: 8, 16, 24, 32, 48, 64 …
- Tailwind:
p-2(8 px),p-4(16 px),p-6(24 px),p-8(32 px). - Use
--space-sm,--space-md,--space-lgtokens where defined.
3. Max 2 typefaces
- Many fonts = visual noise.
- 1–2 families plus varied weights.
- Typical split: UI sans (Inter), editorial serif (Lora) for long-form, monospace (Fira Code) for code.
- Vary weight and size before reaching for another family.
4. Color system — 60 / 30 / 10
| Share | Role | Examples |
| 60 % | Background | --color-bg, --color-bg-secondary |
| 30 % | Surfaces | --color-surface, cards, panels |
| 10 % | Accent | --color-accent, buttons, highlights |
Accent is reserved for actions and focal points — overusing it removes its meaning.
5. Clear type hierarchy
- Headings must step visually, not just in markup.
- Minimum 1.25×–1.5× step between levels.
h1dominant,h2clearly smaller,h3body-adjacent.- Use the defined text-scale tokens; don't freestyle sizes.
6. Readable line length
- Full-width running text fatigues the eye.
- Target 50–75 characters per line →
max-w-prose(65 ch) in Tailwind. - Apply to article/blog body text. Navigation and UI elements are exempt.
7. Visual hierarchy — the most important rule
Every interactive element needs a tier:
| Tier | Usage | Style |
| Primary | One dominant CTA per view | Filled, accent color, high contrast |
| Secondary | Supporting actions | Outlined or muted |
| Ghost / tertiary | Low-priority actions | Text-only or subtle border |
Never have two primary buttons competing on the same screen. If everything shouts, nothing does.
8. Micro-detail rules (polish)
The details that separate "fine" from "feels crafted". Exact thresholds:
- Concentric border radius. Nested rounded elements:
outer = inner + padding. Same radius on parent and child is the most common thing that makes a UI feel off. Nested cards are always wrong anyway. - Optical over geometric alignment. When geometric centering looks off (icons in buttons, play triangles, asymmetric glyphs), nudge it optically. Trust the eye, not the box model.
- Tabular numbers. Any number that updates in place (counters, timers, prices) gets
font-variant-numeric: tabular-nums— otherwise it reflows on every change. - Text wrapping.
text-wrap: balanceon headings (h1–h3),text-wrap: prettyon body prose to kill orphans. - Minimum hit area 40×40px. Small controls (icon buttons, close X) extend their tap target with padding or a pseudo-element. Never let two hit areas overlap.
- Image outlines. A subtle
1pxinset outline gives images consistent depth:rgba(0,0,0,0.1)in light mode,rgba(255,255,255,0.1)in dark — pure black/white, never a tinted near-black (it reads as dirt on the edge).
Quick checklist for new pages
- No pure
#000/#fff— design tokens in use? - Spacing follows the 8 px grid?
- Max 2 font families?
- Accent color on ≤ 10 % of the surface?
- Heading sizes step clearly between levels?
- Body text constrained to ~65 ch?
- Only one primary CTA visible per section?
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.

