/stark:design-tokensfrom stark
Generates, audits, and translates W3C DTCG design tokens to Tailwind v4, CSS variables, Compose Material3, SwiftUI, and WinUI. Use for cross-platform token systems, theme generation, or token drift detection.
Ships in stark. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Goal: one DTCG-format JSON, four platform outputs. No drift.
../../scripts/token_export.py.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"
}
}
}
| 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.
Three cases where token work is wrong:
State this explicitly if the user asks to "tokenize everything." Push back once.
When asked to audit a token set:
box-shadow for native, where elevation is tonal).#3b82f6 exposed as a token name)$type (some tools won't validate without it)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" exampleWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
design-tokens, dtcg, theme-system, token-translation, cross-platform
8 skills in this plugin
/android-designUse when the user asks for an Android app, Compose UI, Material 3, Material You, Material 3 Expressive, Pixel-style app, foldable/adaptive layout, Play Store deliverable, React Native Android, Flutter Android, Compose Multiplatform, or any Android deliverable. Builds Android apps across system-like Compose, branded Compose, React Native, Flutter, and Compose Multiplatform while preserving UX decisions, state coverage, adaptive navigation, Material motion, accessibility, and product-specific visual direction. ALWAYS ask which track first. SKIP when the target is only iOS, Windows, or web-in-browser./apple-designUse when the user asks for SwiftUI, UIKit, AppKit, iOS, iPadOS, macOS, watchOS, visionOS, Liquid Glass, HIG, SF Symbols, App Store deliverables, Apple settings/forms, branded Apple apps, React Native iOS, Flutter Cupertino, or Electron/Tauri macOS shells. Builds Apple-platform apps across system-like SwiftUI, branded SwiftUI, React Native, Flutter Cupertino, and desktop web shells while preserving UX decisions, native idiom, desktop archetype, originality seed, state coverage, Dynamic Type, accessibility, and HIG/Liquid Glass rules. ALWAYS ask which track first. SKIP when the target is only Android, Windows, or web-in-browser./cross-platform-designUse when the user wants one codebase or one product design across web, iOS, Android, Windows, and Mac, asks for the same app on all platforms, asks to translate/port a UI between platforms, or names Compose Multiplatform, Tauri 2, Electron, React Native, Flutter, .NET MAUI, Avalonia, or Uno Platform. Builds cross-platform UI by preserving UX decisions, originality seed, desktop archetype, state coverage, tokens, and product job while translating each surface into the host platform's native idiom rather than pixel-cloning. SKIP when only one platform is targeted and no translation/cross-platform tradeoff is involved.npx claudepluginhub f0d010c/stark --plugin starkOther plugins' skills for the same job