design-tokens
Skill29 starsChanged 7 months agoApache-2.0View on GitHub
Use when the user asks for design tokens, DTCG tokens, theme systems, color/typography/spacing/radius/elevation/motion tokens, translating tokens, exporting tokens, making a Compose color scheme from a palette, auditing tokens, or sharing a single token source across web and native. Generates, audits, and translates W3C DTCG tokens to Tailwind v4 @theme, CSS variables, Compose Material3 ColorScheme/Typography, SwiftUI Color/Font extensions, and WinUI ResourceDictionary while preserving semantic naming and platform constraints. SKIP when no token/theme-system work is involved.
21 other projects use a version of this.
Adopted by
Most recently taken up by
- TomSzenessy/AI_TEMPLATEtheir own version, first seen Oct 6, 2026
- dmlguq456/heartingtheir own version, first seen Sep 30, 2026
- mshadmanrahman/claude-for-designerstheir own version, first seen Sep 29, 2026
- yogvidwankhede/vishwakarmatheir own version, first seen Sep 26, 2026
- darkroomengineering/cc-settingstheir own version, first seen Sep 24, 2026
- DanielNoamTuby/claude-skillstheir own version, first seen Sep 20, 2026
Used with
Projects with it also use brief-to-tasks, information-architecture and 6 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 4 projects that use this
fefogarciaSkillinformation-architecture
Use when organizing content for digital products, designing navigation systems, restructuring information hierarchies, improving findability, creating taxonomies or metadata schemas, or when users mention information architecture, IA, sitemap, navigation design, content structure, card sorting, tree testing, taxonomy, findability, or need help making information discoverable and usable.
Also in 5 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 3 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 4 projects that use this
AICreator-WindSkilldesign-review
编码设计师工具。设计审计和修复。
Also in 9 projects that use this
AnthropicSkilldesign-system
Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.
Also in 3 projects that use this
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 21
- plugin87/ux-ui-agent-skills★ 1.5ksame name
- julianoczkowski/designer-skills★ 574same name
- glebis/claude-skills★ 387same name
- dylanfeltus/skills★ 179same name
- marcusgoll/Spec-Flow★ 94same name
- darkroomengineering/cc-settings★ 47same name
- mshadmanrahman/claude-for-designers★ 32same name
- ilikescience/design-tokens-skill★ 15same name
- piyushverma0/android-agent-skills★ 15same name
- dmlguq456/hearting★ 8same name
11 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 repository8 other files it gives its agents.
- starkSkill
- android-designSkill
- apple-designSkill
- cross-platform-designSkill
- design-routerSkill
- ux-designSkill
- web-designSkill
- windows-designSkill
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 19 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
- Distinctive: line 19
Every token bundle this skill produces or consumes is in W3C Design Tokens Community Group format.
- Very specific: line 57
Use ../../scripts/token_export.py for the translation — never hand-translate.
- Distinctive: line 70
When asked to audit a token set:
“Common” is measured: kept by at least 6 in 10 of the 19 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 — single source, every platform
Goal: one DTCG-format JSON, four platform outputs. No drift.
What This Skill Can Do
- Generate and audit W3C DTCG token bundles for color, typography, spacing, radius, motion, shadow/elevation, and semantic state roles.
- Translate one source token JSON to Tailwind, CSS variables, Compose, SwiftUI, and WinUI using
../../scripts/token_export.py. - Catch token drift, raw/semantic naming mistakes, unsupported platform values, circular references, and single-platform-only token systems.
- Advise when tokens are wrong for the job, such as bespoke campaign pages that need art direction more than a reusable system.
Step 1 — Source format: W3C DTCG
Every token bundle this skill produces or consumes is in W3C Design Tokens Community Group format. Keys:
$value— the literal value$type—color | dimension | fontFamily | fontWeight | duration | shadow | typography$description— human-readable rationale (kept in the token; not a comment)
Example:
{
"color": {
"brand": {
"primary": { "$value": "#3b1c0f", "$type": "color", "$description": "Hero accent — used like a weapon" },
"primary-hover": { "$value": "{color.brand.primary}", "$type": "color" }
}
},
"spacing": {
"xs": { "$value": "4px", "$type": "dimension" },
"sm": { "$value": "8px", "$type": "dimension" }
},
"type": {
"display": {
"$value": { "fontFamily": "PP Editorial New", "fontSize": "72px", "fontWeight": 400, "lineHeight": 1.05 },
"$type": "typography"
}
}
}Step 2 — Platform translation matrix
| Platform | Output target |
| Web (Tailwind v4) | @theme { --color-brand-primary: ...; } block |
| Web (CSS) | :root { --color-brand-primary: ...; } |
| Apple (SwiftUI) | extension Color { static let brandPrimary = ... } + Color asset catalog JSON |
| Android (Compose) | ColorScheme(primary = Color(0xFF...), ...) + Typography |
| Windows (WinUI 3) | <ResourceDictionary> with <Color>, <SolidColorBrush>, <x:Double> |
Use ../../scripts/token_export.py for the translation — never hand-translate. Tokens drift fast.
Step 3 — When you should NOT generate tokens
Three cases where token work is wrong:
- The user wants ONE platform — let that platform skill use its native idiom directly. Tokens are for reuse.
- The brief is "Awwwards-tier landing page" — tokens flatten the bespoke choices that make it distinctive.
- The team has no system to maintain. Tokens without governance become stale faster than they help.
State this explicitly if the user asks to "tokenize everything." Push back once.
Step 4 — Auditing existing tokens
When asked to audit a token set:
- Coverage check — does it cover the 5 layers? color (semantic + raw), spacing, typography, motion, elevation/material.
- Semantic vs raw discipline — are there "primary-button-bg" tokens (semantic) AND "blue-500" tokens (raw)? Both layers, no shortcuts.
- Reference resolution — semantic tokens must reference raw, never the inverse.
- Dark mode parity — every semantic color has a dark variant.
- Platform-specific bans — flag any token that won't survive translation (e.g. CSS
box-shadowfor native, where elevation is tonal).
Step 5 — Anti-slop ban list (token-specific)
- Hex colors with no semantic name (
#3b82f6exposed as a token name) - 100+ raw colors with no semantic layer
- Spacing scales that aren't 4-based on Windows/Android, 8-based on Apple, fluid on web
- One token bundle declared "the source of truth" but only generated for web (the most common failure)
- Tailwind classes baked into tokens (defeats translation)
- Skipping
$type(some tools won't validate without it)
Step 6 — Reference token bundles
Shipped in ../../assets/tokens/:
fluent-2.json— Microsoft Fluent 2 referencematerial3-expressive.json— M3E reference (M3E adds wave/morph tokens vs M3)apple-system.json— iOS/macOS semantic system colorsawwwards-editorial.json— bespoke "editorial Swiss" exampleawwwards-brutalist.json— bespoke "tactile brutalist" example
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.

