design-tokens

design-tokens is a skill for Claude Code from f0d010c/stark. It costs 126 tokens per session (1,202 once invoked), scanned A, original, Apache-2.0.

A tool for managing design tokens: named values for colors, fonts, spacing, borders, shadows, and motion. It uses the W3C Design Tokens format so one JSON file can supply several platforms.

In plain words
What is it for?
Use it to create or audit token files, or export one token source to Tailwind, CSS variables, Jetpack Compose, SwiftUI, and WinUI.
Why use it?
It keeps visual choices consistent across websites and native apps, while detecting naming errors, unsupported values, circular references, and differences between platform versions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the stark plugin — 9 skills, 14 commands shipped together

Good fit Use it to create or audit token files, or export one token source to Tailwind, CSS variables, Jetpack Compose, SwiftUI, and WinUI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/f0d010c/stark/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 f0d010c/stark --skill design-tokens
Clone the repo
git clone --depth 1 https://github.com/f0d010c/stark

Made for: Claude Code.

Or install stark, the plugin that ships this one along with the rest of its 9 skills, 14 commands.

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/f0d010c/stark/design-tokens/github.svg)](https://agentmods.dev/skills/f0d010c/stark/design-tokens)
Your own site
<a href="https://agentmods.dev/skills/f0d010c/stark/design-tokens"><img src="https://agentmods.dev/badge/skills/f0d010c/stark/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/f0d010c/stark/design-tokens"><img src="https://agentmods.dev/badge/skills/f0d010c/stark/design-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,202 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.00126 $0.01202
Opus 5 $0.00063 $0.00601
Sonnet 5 $0.00025 $0.00240
Haiku 4.5 $0.00013 $0.00120

Measured 9d ago against content hash 462bb2db41cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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 · 95 lines

How it starts

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

design-tokens — single source, every platform

Goal: one DTCG-format JSON, four platform outputs. No drift.

What This Skill Can Do

  • Generate and audit W3C DTCG token bundles for color, typography, spacing, radius, motion, shadow/elevation, and semantic state roles.
  • Translate one source token JSON to Tailwind, CSS variables, Compose, SwiftUI, and WinUI using ../../scripts/token_export.py.
  • Catch token drift, raw/semantic naming mistakes, unsupported platform values, circular references, and single-platform-only token systems.
  • Advise when tokens are wrong for the job, such as bespoke campaign pages that need art direction more than a reusable system.

Step 1 — Source format: W3C DTCG

Every token bundle this skill produces or consumes is in W3C Design Tokens Community Group format. Keys:

  • $value — the literal value
  • $typecolor | dimension | fontFamily | fontWeight | duration | shadow | typography
  • $description — human-readable rationale (kept in the token; not a comment)

Example:

{
  "color": {
    "brand": {
      "primary": { "$value": "#3b1c0f", "$type": "color", "$description": "Hero accent — used like a weapon" },
      "primary-hover": { "$value": "{color.brand.primary}", "$type": "color" }
    }
  },
  "spacing": {
    "xs": { "$value": "4px", "$type": "dimension" },
    "sm": { "$value": "8px", "$type": "dimension" }
  },
  "type": {
    "display": {
      "$value": { "fontFamily": "PP Editorial New", "fontSize": "72px", "fontWeight": 400, "lineHeight": 1.05 },
      "$type": "typography"
    }
  }
}

Step 2 — Platform translation matrix

Platform Output target
Web (Tailwind v4) @theme { --color-brand-primary: ...; } block
Web (CSS) :root { --color-brand-primary: ...; }
Apple (SwiftUI) extension Color { static let brandPrimary = ... } + Color asset catalog JSON
Android (Compose) ColorScheme(primary = Color(0xFF...), ...) + Typography
Windows (WinUI 3) <ResourceDictionary> with <Color>, <SolidColorBrush>, <x:Double>

Read the full file on GitHub · 95 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. 9d ago First seen · 95 lines · 126 tokens per session scan A 462bb2db41cd

Subscribe to this mod's changes

design-tokens is a skill published in the GitHub repository f0d010c/stark (27 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 126 tokens to every session and 1,202 once invoked, about $0.0006 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

design-with-claude

Use when design work needs a product designer's eye: auditing a codebase for design-system gaps, fixing WCAG contrast and unlabeled inputs, choosing type scales or spacing steps, reviewing UI that looks generic or AI-generated, or designing forms, tables, dashboards, navigation, checkout, onboarding, dark mode, and…

imsaif/design-with-claude · 85 tokens

system-design

A guide for making major software structure decisions and recording them in design documents or Architecture Decision Records (ADRs), which explain important technical choices.

kkunkunya/ai-frontend-design-kit · 72 tokens

hps-bauhaus

A visual-design fundamentals course for new brand designers — grid, type, color, and the exercises that build the eye. Built as a decision-grade professional training deck for junior designers, new hires.

nexu-io/open-design · 45 tokens

html-ppt-zhangzara-pink-script

A wedding-anniversary tribute photo essay — a decade in scenes, the turning points, and the quiet meaning of staying. Built as a decision-grade story deck for couple, family, friends.

nexu-io/open-design · 50 tokens

html-ppt-zhangzara-retro-zine

A neighborhood zine on the disappearing corner shops — portraits, voices, and what a block loses when they close. Built as a decision-grade story deck for community, local readers.

nexu-io/open-design · 49 tokens

html-ppt-zhangzara-studio

A photography studio's portfolio-and-rate deck — the signature work, the process, and the packages that win the brief. Built as a decision-grade design craft deck for prospective clients.

nexu-io/open-design · 47 tokens