design-tokens

design-tokens is a skill for Claude Code from plugin87/ux-ui-agent-skills. It costs 92 tokens per session (576 once invoked), scanned A, original, MIT.

A system for creating and checking shared design values—such as colors, type, spacing, shadows, borders, and motion—in the DTCG format, a standard structure for storing design tokens.

In plain words
What is it for?
Use it to create, extend, or audit token files, including multi-brand themes and three levels of shared values.
Why use it?
It makes visual decisions easier to reuse, validate, and adapt across products or brands.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable.

Part of the ux-ui-agent-skills plugin — 26 skills, 1 command, 1 agent, 3 hooks, 2 MCP servers shipped together

Good fit Use it to create, extend, or audit token files, including multi-brand themes and three levels of shared values.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plugin87/ux-ui-agent-skills/design-tokens
About the project

UX/UI Agent Skills is a set of instructions, design tokens, reusable components, accessibility rules, and design-system references that guide Claude in producing interface designs and code. It is intended for developers and designers who want framework-independent, token-based UI work with accessibility checks. The catalogue entries package these UX, UI, component, and validation workflows as Claude Code skills and related add-ons.

plugin87/ux-ui-agent-skills · 3,006 stars · on GitHub · plugin87.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add plugin87/ux-ui-agent-skills --skill design-tokens
Clone the repo
git clone --depth 1 https://github.com/plugin87/ux-ui-agent-skills

Made for: Claude Code.

Or install ux-ui-agent-skills, the plugin that ships this one along with the rest of its 26 skills, 1 command, 1 agent, 3 hooks, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-tokens

README.md
[![agentmods](https://agentmods.dev/badge/skills/plugin87/ux-ui-agent-skills/design-tokens/github.svg)](https://agentmods.dev/skills/plugin87/ux-ui-agent-skills/design-tokens)
Your own site
<a href="https://agentmods.dev/skills/plugin87/ux-ui-agent-skills/design-tokens"><img src="https://agentmods.dev/badge/skills/plugin87/ux-ui-agent-skills/design-tokens/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-tokens

Your own site · 80×15
<a href="https://agentmods.dev/skills/plugin87/ux-ui-agent-skills/design-tokens"><img src="https://agentmods.dev/badge/skills/plugin87/ux-ui-agent-skills/design-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 576 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 6 Oct 2026
  • Snyk pass 7 Oct 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.00576
Opus 5.5 $0.00037 $0.00230
Sonnet 5.5 $0.00018 $0.00115
Haiku 4.5 $0.00009 $0.00058

Measured today against content hash ccd0aada17a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-tokens scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/skills/design-tokens/SKILL.md · 28 lines

What it actually says

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_SKILL_DIR}/../../../.claude/rules/tokens-and-color.md → "Token System" + "Color Guidelines" and ${CLAUDE_SKILL_DIR}/../../../.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 ${CLAUDE_SKILL_DIR}/../../../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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed ccd0aada17a6
  2. 19d ago Changed · +6 lines f78f4f3b9d2a
  3. 1mo ago First seen · 22 lines · 92 tokens per session scan A 0b218f063b59

Subscribe to this mod's changes

design-tokens is a skill published in the GitHub repository plugin87/ux-ui-agent-skills (3,006 stars, last pushed today), licensed MIT. It adds 92 tokens to every session and 576 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.