Claude Skills · UI Design
Design tokens
Define design tokens (colour, type, spacing, radius, shadow, motion) and output them as JSON and CSS variables. Use when starting or auditing a design system.
Install this skill
curl -fsSL https://uxmate.co.in/skill-files/install.sh | bash -s -- uxm-design-tokensOr unzip into ~/.claude/skills/. Then ask Claude Code to do the task, or call /uxm-design-tokens.
What is inside
---
name: uxm-design-tokens
description: Define design tokens (colour, type, spacing, radius, shadow, motion) and output them as JSON and CSS variables. Use when starting or auditing a design system.
---
# Design tokens
1. Ask for brand colours, platform and any existing tokens.
2. Build **primitive** tokens (raw values) and **semantic** tokens (purpose: color.text.primary, color.bg.surface, color.border.subtle, color.action.primary).
3. Cover: colour (with light/dark), typography scale, spacing (4/8 base), radius, elevation, z-index, motion durations/easings, breakpoints.
4. Check contrast of text/background pairs against WCAG AA.
5. Output in two formats: a JSON token file (W3C design token style) and CSS custom properties.
Add naming rules and a short usage guide. Flag duplicates and one-off values found in the user's existing styles.More UI Design skills
- Colour palette · Generate an accessible colour palette with scales, semantic colours and contrast results.
- Type scale · Create a typographic scale with font pairing, sizes, line heights and responsive rules.
- Component spec · Write a complete UI component specification with anatomy, variants, states, behaviour and accessibility.
- Dark mode · Plan and review a dark mode theme: surfaces, elevation, colour mapping, contrast and images.