Agent skill

Design Tokens

by plugin87 in plugin87/ux-ui-agent-skills

Generate, extend, or audit design tokens in DTCG format with the 3-tier architecture (primitive → semantic → component).

MITAuto-check passedFrontend & Design

Install Design Tokens

skills CLI
$ npx skills add plugin87/ux-ui-agent-skills --skill design-tokens -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install plugin87/ux-ui-agent-skills design-tokens --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/plugin87/ux-ui-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/design-tokens .claude/skills/design-tokens && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
design-tokens
GitHub stars
1.5k
Token cost
~517 tokens
SKILL.md length
182 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

Generate, extend, or audit design tokens in DTCG format with the 3-tier architecture (primitive → semantic → component).

  • Works in 4 steps: Read .claude/rules/tokens-and-color.md →… → Read the relevant existing files in… → Generate/extend tokens → …
  • The user wants a color palette
  • SKILL.md covers Steps and Output
  • Calls npx and python3

What it does

Design Tokens is an agent skill from plugin87/ux-ui-agent-skills. Generate, extend, or audit design tokens in DTCG format with the 3-tier architecture (primitive → semantic → component). Use when the user wants a color palette, type scale, spacing/shadow/radius/motion tokens, multi-brand theming, or wants to validate token files. Covers colors, typography, spacing, shadows, borders, breakpoints, motion, gradients, opacity, blur, sizing, states, theming.

Its SKILL.md is about 520 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Design tokens, Theming and dark mode and Typography. The repository describes itself as: Turn Claude into a senior design architect: DTCG tokens, 52 components, WCAG 2.2 AA-AAA, 138 design systems, any-framework code, and 50 objective gates that fail the build… The licence is MIT.

When your agent uses it

  • The user wants a color palette
  • Spacing/shadow/radius/motion tokens
  • Multi-brand theming
  • Wants to validate token files

Example prompts

  • “/design-tokens”

Requirements

  • Python 3
  • Node.js

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Read .claude/rules/tokens-and-color.md → "Token System" + "Color Guidelines" and .claude/rules/typography-and-spacing.md for the rules…
  2. Read the relevant existing files in tokens/ to match structure: colors.json, typography.json, spacing.json, shadows.json, borders.json…
  3. Generate/extend tokens
  4. Validate: run python3 ${CLAUDE_SKILL_DIR}/../../../scripts/validate_tokens.py (JSON validity + alias resolution).

What it can do on your machine

Read from SKILL.md and the folder at commit 14f8d44. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Design Tokens loads about 517 tokens when it runs. Until then it costs about 101 tokens; SKILL.md has 182 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~101
When it runs · the whole SKILL.md, loaded when a task matches
~517

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from plugin87/ux-ui-agent-skills at commit 14f8d44, republished under its MIT licence (© plugin87). 182 words, ~517 tokens.

Download SKILL.mdSave it as .claude/skills/design-tokens/SKILL.md (or your agent's skills folder).
name
design-tokens
description
Generate, extend, or audit design tokens in DTCG format with the 3-tier architecture (primitive → semantic → component). Use when the user wants a color palette, type scale, spacing/shadow/radius/motion tokens, multi-brand theming, or wants to validate token files. Covers colors, typography, spacing, shadows, borders, breakpoints, motion, gradients, opacity, blur, sizing, states, theming.

Skill: Design Tokens

Step 0 — is the kit here? This skill reads files from the kit. Check once: ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSING On KIT_MISSING only the skill folders were installed, which is what npx skills add does. Say so plainly, point the user at npx ux-ui-agent-skills init or the plugin install, and stop. Do not guess the contents of a file you could not open.

Produce and maintain DTCG ($type/$value) tokens following the project's 3-tier system.

Steps

  1. Read .claude/rules/tokens-and-color.md → "Token System" + "Color Guidelines" and .claude/rules/typography-and-spacing.md for the rules (4px base, Major Third scale, OKLCH palette generation, dark-mode-at-semantic-layer).
  2. Read the relevant existing files in tokens/ to match structure: colors.json, typography.json, spacing.json, shadows.json, borders.json, breakpoints.json, motion.json, gradients.json, opacity.json, blur.json, sizing.json, states.json, theming.json.
  3. Generate/extend tokens:
    • Primitives = raw values (never used directly). Semantic = purpose aliases. Component = component-scoped.
    • New palettes: generate 11 OKLCH shades; verify 500 ≥ 4.5:1 on white (text), 600 ≥ 3:1 (UI) using the a11y-audit skill / ${CLAUDE_SKILL_DIR}/../../../scripts/contrast.py.
    • Multi-brand/density → theming.json.
  4. Validate: run python3 ${CLAUDE_SKILL_DIR}/../../../scripts/validate_tokens.py (JSON validity + alias resolution).

Output

DTCG JSON. Preserve $description on every token. Reference, never hardcode.

© plugin87, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/design-tokens of plugin87/ux-ui-agent-skills.

Open the folder on GitHubat commit 14f8d44

Compare with similar skills

Design Tokens next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Design Tokens compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Design Tokens this skillplugin87/ux-ui-agent-skills1.5k—~517Automated safety check: PassMIT
Scalar Design Systemscalar/scalar16k—~2.7kAutomated safety check: PassMIT
iOS Design GuidelinesMacMagazine/app-iOS171—~767Automated safety check: PassNone
Frontend Designjwynia/agent-skills165—~3.2kAutomated safety check: PassMIT
Frontend UI Foundryjiushiwon/wg-skills110—~1.4kAutomated safety check: PassApache-2.0
Qt Figma Token ExtractionTheQtCompanyRnD/agent-skills459—~7.3kAutomated safety check: PassBSD-3-Clause

Similar skills

  • Scalar's design system — design tokens, theming (@scalar/themes), CSS variables, and the @scalar/components library.

    16k GitHub stars~2.7k tokensUpdated today
    Frontend & DesignAuto-check passed
  • iOS Design Guidelines

    MacMagazine/app-iOS

    MacMagazine design reference — theme tokens, card selection, typography, touch targets, accessibility, dark mode.

    171 GitHub stars~767 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Frontend Design

    jwynia/agent-skills

    Create distinctive, production-grade frontend interfaces with high design quality.

    165 GitHub stars~3.2k tokensUpdated 7 mo ago
    Frontend & DesignAuto-check passed
  • Frontend UI Foundry

    jiushiwon/wg-skills

    A skill your agent uses when generating UI for a specific scenario (mobile/PC/官网/管理端/营销页/文档/金融/原生/3D), when refactoring an existing HTML/Vue/React project to a unified design system, when extracting…

    110 GitHub stars~1.4k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Qt Figma Token Extraction

    TheQtCompanyRnD/agent-skills

    Extract design tokens, text styles, and variables from a Figma design system and produce a design-tokens.json plus ready-to-use QML singletons.

    459 GitHub stars~7.3k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Design Token Generator

    dylanfeltus/skills

    Generates type scales, color palettes, spacing systems, WCAG contrast checks and dark mode palettes from formulas, as CSS custom properties, a Tailwind config or JSON tokens.

    179 GitHub stars~2.9k tokensUpdated 20 days ago
    Frontend & DesignAuto-check passed

More from plugin87/ux-ui-agent-skills

All 23 skills in this repo
  • Data-Dense Dashboard Designer

    plugin87/ux-ui-agent-skills

    Lays out dense analytics or trading-terminal screens in banded sections with hand-drawn SVG charts, instead of a wall of identical stat cards.

    1.5k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • UI Component Spec Designer

    plugin87/ux-ui-agent-skills

    Writes a complete UI component spec with anatomy, variants, sizes, eight interaction states, design-token mapping and accessibility notes before or alongside code.

    1.5k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Design Project Scaffold

    plugin87/ux-ui-agent-skills

    Creates a new design-product project from the kit's product-design template, then installs the engine folders and the Playwright dependency that the quality gates need.

    1.5k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Accessibility Audit

    plugin87/ux-ui-agent-skills

    Audits a UI or design against WCAG 2.2 and ARIA patterns and returns findings with the criterion, severity and a specific fix for each.

    1.5k GitHub stars~542 tokensUpdated today
    Auto-check passed
  • Apply Aesthetic

    plugin87/ux-ui-agent-skills

    Applies a chosen visual direction, an archetype or one of 138 named design systems, by remapping design tokens, then checks contrast before it finishes.

    1.5k GitHub stars~597 tokensUpdated today
    Auto-check passed
  • Brand Kit Design Tokens

    plugin87/ux-ui-agent-skills

    Builds a from-scratch brand design system as three-tier DTCG tokens plus one theme.css with light and dark modes, checked against WCAG contrast rules.

    1.5k GitHub stars~809 tokensUpdated today
    Auto-check passed

Questions about Design Tokens

What does Design Tokens do?

Generate, extend, or audit design tokens in DTCG format with the 3-tier architecture (primitive → semantic → component). Design Tokens is an agent skill from plugin87/ux-ui-agent-skills. Generate, extend, or audit design tokens in DTCG format with the 3-tier architecture (primitive → semantic → component).

When should I use Design Tokens?

Design Tokens fits situations like: the user wants a color palette; spacing/shadow/radius/motion tokens; multi-brand theming; wants to validate token files.

How do I install Design Tokens in Claude Code?

Run `npx skills add plugin87/ux-ui-agent-skills --skill design-tokens -a claude-code`. Or copy the skill folder (.claude/skills/design-tokens in plugin87/ux-ui-agent-skills) into .claude/skills/design-tokens in your project. Claude Code loads it when a task matches its description.

How do I install Design Tokens in Codex?

Run `npx skills add plugin87/ux-ui-agent-skills --skill design-tokens -a codex`. Or copy the skill folder (.claude/skills/design-tokens in plugin87/ux-ui-agent-skills) into .agents/skills/design-tokens in your project. Codex loads it when a task matches its description.

Can I use Design Tokens in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add plugin87/ux-ui-agent-skills --skill design-tokens -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/design-tokens, .gemini/skills/design-tokens, .github/skills/design-tokens and .opencode/skills/design-tokens in your project.

What does Design Tokens need to run?

Going by SKILL.md and its folder, Design Tokens needs the command-line tools its instructions call (npx and python3). Our summary lists: Python 3; Node.js.

Does Design Tokens access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Design Tokens safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Design Tokens use?

Design Tokens is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Design Tokens use?

About 517 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Design Tokens?

Skills that share tags, products or a category with Design Tokens: Scalar Design System (scalar/scalar, 16k stars), iOS Design Guidelines (MacMagazine/app-iOS, 171 stars), Frontend Design (jwynia/agent-skills, 165 stars) and Frontend UI Foundry (jiushiwon/wg-skills, 110 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Design Tokens?

plugin87 (a GitHub user) maintains it in plugin87/ux-ui-agent-skills, which has 1,543 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on October 7, 2026.

Source: plugin87/ux-ui-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.