design-tokens
Skill0 starsChanged 13 days agoMITView on GitHub
Define and apply design tokens: naming by role, semantic tiers, theming, and dark mode switches. Use when establishing UI design tokens or themes.
38 other projects use a version of this.
Adopted by
Most recently taken up by
- The-Utopia-Studio/skillstheir own version, first seen Nov 29, 2026
- ronnyvg071/Claude-skillstheir own version, first seen Nov 29, 2026
- ainurdev/mystical-assistanttheir own version, first seen Nov 27, 2026
- drinkspiller/skillstheir own version, first seen Nov 23, 2026
- chatquill/claude-code-websitestheir own version, first seen Nov 22, 2026
- dmlguq456/heartingtheir own version, first seen Nov 16, 2026
Used with
Projects with it also use brief-to-tasks, design-flow 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.
julianoczkowskiSkillbrief-to-tasks
Break a design brief into an ordered checklist of independently buildable tasks using vertical slices. Saves as a markdown checklist. Use when user wants to break down work, create tasks from a brief, plan implementation order, or mentions "tasks" or "breakdown".
Also in 8 projects that use this
julianoczkowskiSkilldesign-flow
Run the full design-to-build workflow as a guided sequence. Orchestrates all designer skills in order, from grilling through review. Use when user wants to go through the complete design process, start a project from scratch, run the full flow, or mentions "design flow" or "full workflow".
Also in 7 projects that use this
nandanosqlSkilldesign-brief
Create a design brief that clearly communicates the product context, user needs, constraints, and success criteria to the design team — bridging PM requirements and design execution.
Also in 9 projects that use this
solinkzSkillmicro-interactions
Expert micro-interaction architect for mobile apps, web applications, and responsive websites. Use this skill when the user asks to add, build, fix, audit, or consult on micro-interactions, animations, transitions, motion design, gesture feedback, haptics, loading states, skeleton screens, pull-to-refresh, swipe actions, scroll animations, button states, form validation feedback, toast notifications, modals, dropdowns, toggles, progress indicators, shared element transitions, spring physics, easing curves, motion tokens, or any interaction that provides visual/haptic/auditory feedback to user actions. Triggers on: "micro-interaction", "animation", "transition", "motion", "easing", "spring", "gesture", "haptic", "feedback", "loading state", "skeleton", "shimmer", "pull to refresh", "swipe", "drag", "hover effect", "press state", "focus ring", "scroll animation", "parallax", "stagger", "orchestration", "reduced motion", "View Transitions", "layout animation", "shared element", "hero animation", "morphing", "Framer Motion", "GSAP", "Lottie", "Rive", "React Spring", "anime.js", or any request to make an interface "feel better", "feel alive", "feel snappy", "feel responsive", or "feel polished".
Also in 3 projects that use this
jpoindexterSkilldesign-system-audit
Audit code for design system violations - grid spacing, tokens, existing components
Also in 3 projects that use this
renfei-designSkilla11y-audit
Audit Figma designs for WCAG accessibility issues — color contrast, minimum font size, touch target sizing, and missing text alternatives. Use when asked to check accessibility, audit contrast ratios, find a11y issues, verify WCAG compliance, or review designs for accessibility problems. Scans nodes, analyzes offline, and annotates issues in Figma.
Also in 5 projects that use this
- +1 more from julianoczkowski
Other versions38 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 38
- gitbutlerapp/gitbutler★ 22ksame name
- plugin87/ux-ui-agent-skills★ 3.3ksame name
- rommapp/argosy-launcher★ 757same name
- julianoczkowski/designer-skills★ 536same name
- glebis/claude-skills★ 416same name
- dylanfeltus/skills★ 179same name
- marcusgoll/Spec-Flow★ 94same name
- mshadmanrahman/claude-for-designers★ 32same name
- ilikescience/design-tokens-skill★ 15same name
- icons8/agent-skills★ 14same name
28 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 repository68 other files it gives its agents.
- skills/web-development/adapters/copilot-instructions.mdCopilot instructions
- accessibility-auditSkill
- agent-handoffSkill
- ai-tool-securitySkill
- api-designSkill
- audit-loggingSkill
- background-jobsSkill
- bulk-reporting-exportSkill
- changelog-generatorSkill
- ci-cdSkill
- codebase-onboardingSkill
- code-reviewSkill
- code-simplificationSkill
- context-engineeringSkill
- context-privacySkill
- data-import-exportSkill
- debuggingSkill
- dependency-auditSkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- environmental-telemetrySkill
- erp-accountingSkill
- erp-domain-designSkill
- erp-inventorySkill
- erp-procurementSkill
- erp-salesSkill
- feature-flagsSkill
- forms-and-validationSkill
- frontend-stateSkill
- frontend-ui-engineeringSkill
- git-workflowSkill
- identity-access-managementSkill
- incremental-implementationSkill
- java-code-standardsSkill
- java-deliverySkill
- kerangkaSkill
- mcp-builderSkill
- membership-managementSkill
- observabilitySkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- product-analyticsSkill
- quarkus-observabilitySkill
- quarkus-persistenceSkill
- quarkus-securitySkill
- quarkus-serviceSkill
- quarkus-testingSkill
- responsive-layoutSkill
- rest-api-contractSkill
- saas-billingSkill
- saas-multitenancySkill
- saas-onboardingSkill
- security-hardeningSkill
- shipping-and-launchSkill
- skill-creatorSkill
- skill-evaluationSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 35 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 49
Treat contrast as a constraint, not a review note: Every semantic foreground token is paired with the backgrounds it is allowed on — --card …
- Distinctive: line 54
Check when defining the token, not when shipping.
- Distinctive: line 60
Whisper-soft borders & border fallback prevention: Never rely on browser or utility fallbacks for borders.
“Common” is measured: kept by at least 6 in 10 of the 35 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
Design Tokens
Overview
A token system is the shortest answer to "what colour should this be?" that does not require taste. Without one an agent invents a palette per component, which is precisely how generated UI comes to look generated.
When to use
- Starting UI work where no design system is declared
- Hardcoded hex values, one-off pixel spacing, or a third grey appearing
- Adding dark mode, a high-contrast theme, or a second brand
- Components that disagree about radius, elevation or type scale
Hand off when
| Need | Skill |
| Building or splitting a component | frontend-ui-engineering |
| Sizing, breakpoints, fluid type mechanics | responsive-layout |
| Auditing a built page against WCAG | accessibility-audit |
| Choosing which published system to imitate | uiux-design-systems |
Process
- Inventory before inventing. Grep for existing custom properties, a Tailwind or theme config, and the values already in use. Most codebases have an implicit system; naming it beats replacing it.
- Declare it in writing first. Fill in
templates/design-system-declaration.md. An undeclared system is decided one component at a time, by whoever writes the next one. - Name by role, never by value.
--color-danger, not--color-red-600;--space-gutter, not--space-16. A value name is a lie the moment the theme changes, and renaming it later touches every call site. - Use three tiers and keep them one-directional. Primitives hold raw values, semantic tokens reference primitives, component tokens reference semantic ones. Components read only the semantic or component tier. A component reaching for a primitive is the leak that makes a theme impossible later.
- Theme from one switch. A single
data-themeattribute orcolor-schemeat the root redefines semantic tokens; nothing below it knows a theme exists. Never fork a component for dark mode. - Treat contrast as a constraint, not a review note. Every semantic foreground token
is paired with the backgrounds it is allowed on —
--cardwith--card-foreground,--mutedwith--muted-foreground— and each pair meets 4.5:1 (3:1 for large text and UI boundaries). Define colours in OKLCH so derivations stay perceptually uniform, and expose pairs through Tailwind v4@theme inlineso utilities re-theme without a rebuild. Check when defining the token, not when shipping. - Close the door behind you. A lint rule that rejects raw hex and off-scale values in component code is what stops tier four from re-appearing next month.
- Name spatial relationships. Define label/control, field, action, section, and gutter roles. Bind them through the renderer's supported API and verify computed gaps; a declared token or CSS-looking JSON string does not prove it is applied.
- Whisper-soft borders & border fallback prevention. Never rely on browser or utility
fallbacks for borders. In modern web frameworks (e.g. Tailwind v4 where
--tw-border-style: solidis registered globally), omittingborder-colordefaults tocurrentColor(solid black text color). Explicitly bind semantic border tokens (--border-subtle,#e8ecf1,#f1f5f9) at the root and component layer. Pair micro card elevation (shadow-sm/0 1px 3px rgba(0,0,0,0.04)) with whisper-soft borders rather than harsh dark outlines.
Red flags
- A token named after its value (
--blue-500) used as a semantic role - A component reading a primitive directly, or holding its own hex value
- A dark-mode variant implemented by duplicating a component
- A theme switch that needs JavaScript to recolour anything already on screen
- Contrast checked at review time, so the fix is a redesign rather than a value change
- A new grey, a fourth radius, or a one-off spacing value added "just here"
- Tokens declared but not enforced, so both systems run at once
- A surface token without its paired foreground token
- One radius used here and an arbitrary pixel value there instead of the declared scale
- Harsh black or unmapped solid borders falling back to currentColor
Verification
- Every colour, spacing, radius and type value in new code is a token
- Token names describe role; no value words outside the primitive tier
- Switching the root theme attribute recolours the whole surface with no component change
- Every foreground/background pair in the declaration meets its contrast ratio
- Colors defined in OKLCH (or another perceptual space) and derivations use
color-mix() - Tailwind utilities resolve tokens via
@theme inline, so theming needs no rebuild - A raw hex added to a component fails lint or review, not just taste
- The declaration file exists and matches what the code actually does
- Borders use whisper-soft tokens (#e8ecf1, #f1f5f9) and never fall back to black currentColor
References
references/token-architecture.md— the three tiers, naming, and theming mechanics in CSSreferences/contrast.md— pairing tokens, the ratios, and checking them as you definereferences/adoption.md— introducing tokens into a codebase that already has valuesreferences/color-theming-and-surfaces.md— semantic color roles, tonal surfaces, dark mode, OKLCH pairing invariants, Tailwind v4 exposure, radius math, and the Radix 12-step scalereferences/spatial-geometry-and-density.md— 8pt grid, density modes, touch ergonomics, and typography
Bundle contents
templates/design-system-declaration.md— the declaration filled in at step 2
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.

