design-tokens

design-tokens is a skill for Claude Code from darkroomengineering/cc-settings. It costs 64 tokens per session (4,393 once invoked), scanned A, original, MIT.

A guide for creating design tokens: named, reusable values for fonts, colours, spacing, and light or dark themes. It produces WCAG-checked combinations, where WCAG is the accessibility standard for making websites usable by more people, and can output CSS, Tailwind, or JSON.

In plain words
What is it for?
Use it when setting up a design system, type scale, colour palette, spacing system, dark mode, or Tailwind theme.
Why use it?
It replaces scattered, arbitrary style values with a consistent system. It also helps catch colour combinations that are difficult to read and reduces duplicate Tailwind values.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions AGENTS.md; mentions Codex.

Part of the darkroom plugin — 36 skills, 10 agents, 4 hooks shipped together

Good fit Use it when setting up a design system, type scale, colour palette, spacing system, dark mode, or Tailwind theme.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darkroomengineering/cc-settings/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.

Any agent
npx skills add darkroomengineering/cc-settings --skill design-tokens
Clone the repo
git clone --depth 1 https://github.com/darkroomengineering/cc-settings

Made for: Claude Code.

Or install darkroom, the plugin that ships this one along with the rest of its 36 skills, 10 agents, 4 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/skills/darkroomengineering/cc-settings/design-tokens.svg)](https://agentmods.dev/skills/darkroomengineering/cc-settings/design-tokens)
Your own site
<a href="https://agentmods.dev/skills/darkroomengineering/cc-settings/design-tokens"><img src="https://agentmods.dev/badge/skills/darkroomengineering/cc-settings/design-tokens.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,393 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
  • NVIDIA SkillSpector pass 7 Sept 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.00064 $0.04393
Opus 5 $0.00032 $0.02197
Sonnet 5 $0.00013 $0.00879
Haiku 4.5 $0.00006 $0.00439

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

skills/design-tokens/SKILL.md · 446 lines

How it starts

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

Design Tokens

When to Use

  • User is setting up a new project's design system
  • User asks for a type scale, color palette, or spacing system
  • User needs WCAG-compliant color combinations
  • User wants dark mode colors derived from a light palette
  • User asks for "design tokens" or "theme setup"
  • Building a Tailwind config or CSS custom properties

Core Philosophy

  • Math over taste. Scales should follow ratios, not arbitrary values.
  • Accessibility by default. Every text/background combo must pass WCAG AA.
  • Systematic. Every value should be derivable from a base + ratio.
  • Portable. Output as CSS custom properties, Tailwind config, or JSON tokens.

Type Scale Generation

The Formula

fontSize = baseFontSize x ratio^step

Recommended Ratios

Ratio Name Value Best for
Minor Second 1.067 Tight, minimal difference Dense UI, dashboards
Major Second 1.125 Subtle progression Apps, data-heavy interfaces
Minor Third 1.200 Balanced, versatile Most websites, SaaS
Major Third 1.250 Clear hierarchy Marketing sites, blogs
Perfect Fourth 1.333 Strong contrast Editorial, landing pages
Augmented Fourth 1.414 Dramatic Bold designs, portfolios
Perfect Fifth 1.500 Very dramatic Hero-heavy designs

Generating the Scale

Given a base size (typically 16px) and a ratio:

Step -2: 16 / ratio^2 = xs
Step -1: 16 / ratio   = sm
Step  0: 16           = base
Step  1: 16 x ratio   = lg
Step  2: 16 x ratio^2 = xl
Step  3: 16 x ratio^3 = 2xl
Step  4: 16 x ratio^4 = 3xl
Step  5: 16 x ratio^5 = 4xl
Step  6: 16 x ratio^6 = 5xl

Round to nearest 0.5px or convert to rem (/ 16).

Line Height Rules

Font Size Line Height Use
<= 14px 1.6-1.7 Small text, captions
16-20px 1.5-1.6 Body text
20-32px 1.3-1.4 Subheadings
32-48px 1.1-1.2 Headings
48px+ 1.0-1.1 Display/hero text

Read the full file on GitHub · 446 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. 8d ago First seen · 446 lines · 64 tokens per session scan A 65b4dc9fcca1

Subscribe to this mod's changes

design-tokens is a skill published in the GitHub repository darkroomengineering/cc-settings (43 stars, last pushed 3d ago), licensed MIT. It adds 64 tokens to every session and 4,393 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

cli-command

Design, implement, or review Composio CLI commands under ts/packages/cli using Effect, @effect/cli, services, output conventions, configuration and environment variables, and local vendor references. Use for CLI command UX, command wiring, service changes, or CLI source edits. Do not use for CLI E2E-only work; use…

ComposioHQ/composio · 77 tokens

frontend-taste

Premium frontend design skills that override LLM defaults. Prevents generic 'AI-looking' UI. Enforces deterministic typography, calibrated color, asymmetric layouts, spring physics, hardware-accelerated motion. Triggers: 'UI tasarla', 'design a UI', 'premium landing page', 'frontend taste', 'anti-slop', 'dashboard…

fatihkan/badi · 0 tokens

design-tokens

Project-level DESIGN.md tokens reference. When the project has a DESIGN.md file, agents producing UI / components / visuals must consult this skill to use canonical color/typography/spacing tokens rather than inventing new ones. Triggers on: UI generation, component creation, design brief, visual asset, tailwind…

fatihkan/badi · 0 tokens

architect

Design types, interfaces, module boundaries, and ownership for a non-trivial feature or structural change. Use when an early choice affects several components. Skip small local edits and settled designs.

dayfinggg/openai-codex-agent-skills · 39 tokens

visual-source-artifact

Shape product, business, data, research, UX, and mockup artifacts as agent-readable sources with generated visual human review surfaces.

45ck/skill-harness · 31 tokens

design-token-alignment

Align design artifacts with code tokens and component APIs so spacing, color, type, and states stay consistent through implementation.

45ck/skill-harness · 28 tokens