Agent skill Frontend
Design Tokens
Establish reusable styling and design decisions across web screens.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/julianoczkowski/designer-skills/tree/main/design-tokens --skill design-tokens --agent claude-code --yesCheck this file in your project.claude/skills/design-tokens/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/julianoczkowski/designer-skills/tree/main/design-tokens --skill design-tokensSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. An existing stylesheet or theme module, the design brief and its current theme behavior, plus approved type and palette direction.
View operation manualWhat this skill helps with
- Establish reusable styling and design decisions across web screens.
Good for
- Design tokens and shared styles
- Task
- Extend a reading app’s foundation tokens with a complete dark mode
- Requirements
- An existing stylesheet or theme module, the design brief and its current theme behavior, plus approved type and palette direction.
- Deliverable
- An additive token patch covering both theme modes, semantic status roles and shared spacing and type values.
- Skill name
design-tokens- Repository
julianoczkowski/designer-skills
Start from the actual design decision
An underspecified request
Replace the project’s tokens with a new palette and invert it at night.
Existing consumers and theme controls depend on stable names and clear role assignments.
A result you can check
- Begin with current names and current framework version.
- Give both modes an intentional palette and shared foundations.
- Check actual values and existing consumers across modes.
Design Tokens operation manual
An additive token patch covering both theme modes, semantic status roles and shared spacing and type values.
An existing stylesheet or theme module, the design brief and its current theme behavior, plus approved type and palette direction.
Inventory theme consumers and gaps
Begin with current names and current framework version.
Prompt · Step 1Use julianoczkowski’s installed design-tokens Skill and read its SKILL.md first. Inspect [reading app theme] and its project manifest, existing token definitions and .design design brief if present. Map current consumers and identify missing dark values for page, text, focus and status roles. Agree the visual direction from the approved brief before adding anything.Extend the existing format
Give both modes an intentional palette and shared foundations.
Prompt · Step 2Use julianoczkowski’s installed design-tokens Skill and read its SKILL.md first. Add the smallest needed semantic colors, spacing or type roles using the project’s existing token format. Preserve existing token names and choose light and dark values from the given brief. Keep explicit theme overrides coherent with the system preference in apps that support both.Render a compact token test
Check actual values and existing consumers across modes.
- Existing consumers still resolve their tokens and both modes have documented, checked semantic foreground and background pairs.
Prompt · Step 3Use julianoczkowski’s installed design-tokens Skill and read its SKILL.md first. Render a representative reading screen or token specimen in light and dark, including text, link, border, focus and status states. Compare paired contrast values and test system preference with explicit overrides where present. Report changed tokens, checked consumers and any pending mode behavior.
Find the relevant source guidance
Read the cited section in your installed Skill.
Extend a reading app’s foundation tokens with a complete dark modeSKILL.md
- Command or reference
Process, Token Categories and Dark Mode- Examples
- Existing consumers still resolve their tokens and both modes have documented, checked semantic foreground and background pairs.
Troubleshooting
Must CSS-in-JS projects generate a Tailwind config?
Use the format the existing framework consumes. The Skill supports CSS variables, framework theme files and Tailwind setups.