design-tokens

design-tokens is a command for Claude Code from TheBeardedBearSAS/claude-craft. It costs 5 tokens per session (2,970 once invoked), scanned A, original, MIT.

A design-system command that defines reusable values for colours, text sizes, spacing, shadows, and light or dark themes as CSS variables.

In plain words
What is it for?
Use it to create or update the visual foundations of a web interface, based on its frontend stack, existing design system, or brand colours.
Why use it?
It turns scattered visual choices into a shared set of values, making an interface more consistent and easier to maintain.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the claude-craft plugin — 56 skills, 94 commands, 47 agents, 5 hooks shipped together

Good fit Use it to create or update the visual foundations of a web interface, based on its frontend stack, existing design system, or brand colours.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/thebeardedbearsas/claude-craft/design-tokens
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.

Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 56 skills, 94 commands, 47 agents, 5 hooks.

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/commands/thebeardedbearsas/claude-craft/design-tokens/github.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/design-tokens)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/design-tokens"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/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/commands/thebeardedbearsas/claude-craft/design-tokens"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/design-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,970 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.
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.00005 $0.02970
Opus 5 $0.00003 $0.01485
Sonnet 5 $0.00001 $0.00594
Haiku 4.5 $0.00001 $0.00297

Measured 7d ago against content hash 08b689ee591c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 7d ago.

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.

.claude/commands/uiux/design-tokens.md · 283 lines

How it starts

The opening of the file, as written. The whole thing — 283 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Définition Design Tokens

Tu es un Lead UI Designer. Tu dois définir les design tokens pour un design system cohérent et maintenable.

Arguments

$ARGUMENTS

Arguments :

  • Type de tokens à définir : colors, typography, spacing, shadows, all
  • (Optionnel) Couleur primaire de base : #HEXCODE
  • (Optionnel) Mode : light, dark, both

Exemple : /uiux:design-tokens all #3B82F6 both

MISSION

Étape 1 : Analyser le contexte

  • Stack front (React, Vue, Tailwind, CSS vars...)
  • Design system existant ?
  • Charte graphique fournie ?

Étape 2 : Définir les tokens

══════════════════════════════════════════════════════════════
🎨 DESIGN TOKENS
══════════════════════════════════════════════════════════════

Projet : {nom}
Date : {date}
Format : CSS Custom Properties

──────────────────────────────────────────────────────────────
🎨 COULEURS
──────────────────────────────────────────────────────────────

### Palette Sémantique

#### Primary (Action principale)
| Token | Light | Dark | Usage |
|-------|-------|------|-------|
| --color-primary-50 | #eff6ff | #1e3a5f | Background subtle |
| --color-primary-100 | #dbeafe | #1e40af | Background |
| --color-primary-200 | #bfdbfe | #1d4ed8 | Border |
| --color-primary-300 | #93c5fd | #2563eb | Border hover |
| --color-primary-400 | #60a5fa | #3b82f6 | Icon |
| --color-primary-500 | #3b82f6 | #60a5fa | Text |
| --color-primary-600 | #2563eb | #93c5fd | Text hover |
| --color-primary-700 | #1d4ed8 | #bfdbfe | - |
| --color-primary-800 | #1e40af | #dbeafe | - |
| --color-primary-900 | #1e3a5f | #eff6ff | - |

#### Success
| Token | Light | Dark |
|-------|-------|------|
| --color-success-50 | #f0fdf4 | #14532d |
| --color-success-500 | #22c55e | #4ade80 |
| --color-success-700 | #15803d | #86efac |

#### Warning
| Token | Light | Dark |
|-------|-------|------|
| --color-warning-50 | #fffbeb | #78350f |
| --color-warning-500 | #f59e0b | #fbbf24 |
| --color-warning-700 | #b45309 | #fcd34d |

#### Error
| Token | Light | Dark |
|-------|-------|------|
| --color-error-50 | #fef2f2 | #7f1d1d |
| --color-error-500 | #ef4444 | #f87171 |
| --color-error-700 | #b91c1c | #fca5a5 |

#### Neutral (Texte, Backgrounds)
| Token | Light | Dark | Usage |
|-------|-------|------|-------|
| --color-neutral-0 | #ffffff | #0a0a0a | Background |
| --color-neutral-50 | #fafafa | #171717 | Background subtle |
| --color-neutral-100 | #f5f5f5 | #262626 | Background muted |
| --color-neutral-200 | #e5e5e5 | #404040 | Border |
| --color-neutral-300 | #d4d4d4 | #525252 | Border hover |
| --color-neutral-400 | #a3a3a3 | #737373 | Placeholder |
| --color-neutral-500 | #737373 | #a3a3a3 | Text muted |
| --color-neutral-600 | #525252 | #d4d4d4 | Text secondary |
| --color-neutral-700 | #404040 | #e5e5e5 | Text primary |
| --color-neutral-800 | #262626 | #f5f5f5 | Text emphasis |
| --color-neutral-900 | #171717 | #fafafa | Text strong |

### Tokens Alias (Sémantiques)
```css
/* Backgrounds */
--color-bg-primary: var(--color-neutral-0);
--color-bg-secondary: var(--color-neutral-50);
--color-bg-tertiary: var(--color-neutral-100);
--color-bg-inverse: var(--color-neutral-900);

Read the full file on GitHub · 283 lines

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. 7d ago First seen · 283 lines · 5 tokens per session scan A 08b689ee591c

Subscribe to this mod's changes

design-tokens is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 8d ago), licensed MIT. It adds 5 tokens to every session and 2,970 once invoked, about $0.0000 per session on Opus 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-09-03.