
Design Tokens
Generates design tokens in DTCG format following a three-tier architecture where primitives define raw values, semantics map them to purposes, and component tokens scope them to UI elements. Handles the full range of design properties: color palettes with OKLCH generation, typography scales, spacing, shadows, motion, and multi-brand theming. The implementation enforces contrast ratios at the palette level (4.5:1 for text, 3:1 for UI elements) and includes validation scripts to catch broken alias references. Useful when you're setting up a design system from scratch, extending an existing token set, or auditing token files for consistency. The dark mode logic lives at the semantic layer, which keeps primitives reusable across themes.
- skills.sh installs
- 585
- GitHub stars
- 3.1K
- last updated
- Jun 11, 2026
Install
$ npx -y skills add plugin87/ux-ui-agent-skills --skill design-tokens --agent claude-codeInstalls into .claude/skills of the current project.
Files
Skill: Design Tokens
Requirements
This skill needs the full UX/UI Agent Skills kit: the gates, the references and
the design-system library. Install it with npx ux-ui-agent-skills@3.1.0 init
or as the Claude Code plugin. npx skills@1.7.6 add copies the skill folder and
nothing else. Installed that way, this skill runs in guidance-only mode: no gate
runs, so it gives no verdict.
Step 0: is the kit here? Check once:
ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSINGOnKIT_MISSING, open your reply with: "Guidance-only mode: the UX/UI Agent Skills kit is not installed here, so no gate ran and nothing below is measured." Then work from this file and general practice, under three rules. Do not guess or cite the contents of a kit file you could not open. State no measured number (no contrast ratio, no N/N, no "passes WCAG"): write "not verified" where one would go. End with a lineSkipped (kit not installed):that names every gate script this file tells you to run, then the install command above.
Produce and maintain DTCG ($type/$value) tokens following the project's 3-tier system.
Sponsors
Details
- Repository
- github.com/plugin87/ux-ui-agent-skills
- Categories
- Frontend Development, Code Review & Quality, AI & Agent Building, Marketing & SEO, Design & UI/UX
- First seen
- Jun 11, 2026