smithdak/objectcore/defining-design-tokens
Claude Code and agent skill by smithdak/objectcore
- community
Checking that the SKILL.md file is still in the repository.
The grilling gate for AUTHORING a new design system or token set — turn a vague brand into a decided DTCG design-token spec before any scaffolding. Use at the start of /design, when brand direction (color, type, spacing, motion) is still fuzzy, or when deciding the token foundations and tiers. For a ready-made starting point instead of a custom grill, use choosing-a-seeded-theme.
Install
npx vskill@latest install smithdak/objectcore/defining-design-tokensSKILL.md
The same SKILL.md was published earlier as smithdak/objectcore/defining-design-tokens.
Defining design tokens (the authoring gate)
A design system is only as good as the decisions behind its tokens. Resolve every foundation before scaffolding — a vague brief yields a generic, off-brand system that validates but says nothing.
Pin these before scaffolding
- Brand color(s) — the accent hue(s) in OKLCH (perceptual; degrees 0–360) and a
rough chroma (vividness). Name the role (accent, maybe success/warning).
- Neutral — the gray's hue (usually the accent's hue at near-zero chroma) so grays
feel related to the brand.
- Mood — 2–4 brand adjectives (e.g. "modern, trustworthy, calm"). These become the
judged on-brand bracket (evals/design.json): the system must read AS them and must NOT read as their opposites.
- Spacing base unit — 4 or 8 px. Everything is a multiple.
- Type ratio + base size — a modular ratio (1.125 / 1.2 / 1.25 / golden) and a base
(usually 16px → 1rem). Sizes are authored in rem, not px.
- Fonts — sans / serif / mono families.
- Modes & brands — how many color modes (light/dark) and brands? (Drives theming.)
The DTCG grammar (the format the spec emits)
The source of truth is W3C DTCG JSON. A token is an object with a $value and a $type from the fixed 13 (color, dimension, fontFamily, fontWeight, duration, cubicBezier, number, strokeStyle, border, transition, shadow, gradient, typography). Keys are $-prefixed ($value/$type/$description). A $type on a group is inherited by its children.
Tiers — primitive → semantic → component
- Primitive: raw scales — a 12-step color ramp per family (steps map to fixed UI
roles), the type scale, the spacing ladder, motion. No intent, just values.
- Semantic (alias): named by intent, referencing primitives with
{group.token}
(e.g. text.primary → {color.neutral.12}). This is where on-brand decisions live and where theming happens. References must not be circular.
- Component: optional, per-component tokens aliasing the semantic tier.
Accessible by construction
Build color scales so text steps (11–12) meet WCAG on the canvas (steps 1–2) by design, not by luck — the generator solves text lightness for the contrast target. Pin the target (AA body / AAA primary) as a decision.
When every foundation above is decided (no "it depends"), hand off to the scaffolder (/design step 3). If a brand mode/brand axis exists, design the theming first with theming-with-tokens.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/design-forge/skills/defining-design-tokens/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/smithdak/objectcore/defining-design-tokens)