design-tokens

design-tokens is a skill for Claude Code from fatihkan/badi. It costs 0 tokens per session (711 once invoked), scanned A, original, MIT.

A project-level reference for the visual rules used by an interface. When a project has a DESIGN.md file, it tells agents to reuse its colors, fonts, spacing, corner shapes, and shadows instead of inventing new values.

In plain words
What is it for?
Use it when generating React or Vue components, Tailwind settings, CSS, Sass, or visual briefs that must follow the project's established design tokens.
Why use it?
It helps keep generated screens and components visually consistent with the rest of the project. It reduces small style differences that make an interface feel uneven.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the badi plugin — 81 skills, 86 commands, 30 agents, 7 hooks shipped together

Good fit Use it when generating React or Vue components, Tailwind settings, CSS, Sass, or visual briefs that must follow the project's established design tokens.

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

Made for: Claude Code.

Or install badi, the plugin that ships this one along with the rest of its 81 skills, 86 commands, 30 agents, 7 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/fatihkan/badi/design-tokens/github.svg)](https://agentmods.dev/skills/fatihkan/badi/design-tokens)
Your own site
<a href="https://agentmods.dev/skills/fatihkan/badi/design-tokens"><img src="https://agentmods.dev/badge/skills/fatihkan/badi/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/fatihkan/badi/design-tokens"><img src="https://agentmods.dev/badge/skills/fatihkan/badi/design-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 711 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.00000 $0.00711
Opus 5 $0.00000 $0.00356
Sonnet 5 $0.00000 $0.00142
Haiku 4.5 $0.00000 $0.00071

Measured 6d ago against content hash bbe98bad643a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 6d 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/skills-vault/design-tokens/SKILL.md · 76 lines

What it actually says

Design Tokens Reference

When this skill is active, agents producing UI / visuals / components must:

  1. Check for DESIGN.md at the project root
  2. Read the frontmatter for canonical tokens (colors, typography, spacing, radius, elevation)
  3. Use only those tokens — do not invent ad-hoc colors, font sizes, or spacing values
  4. Cite the token when generating code: bg-[var(--color-primary)] or theme.colors.primary rather than raw hex

Token contract

The expected DESIGN.md frontmatter shape (produced by tasarim-kurator agent):

---
colors:
  primary: "#0a84ff"
  secondary: "#7c3aed"
  surface: "#0a0e1a"
  text: "#e2e8f0"
  muted: "#94a3b8"
typography:
  display: "Inter"
  body: "Inter"
  mono: "JetBrains Mono"
  scale: 1.25
spacing:
  unit: 8           # base unit in px
radius:
  sm: 4
  md: 8
  lg: 16
elevation:
  card: "0 1px 3px rgba(0,0,0,0.1)"
  modal: "0 12px 40px rgba(0,0,0,0.4)"
---

When to apply

  • Generating React/Vue components → use the colors/typography from DESIGN.md
  • Producing Tailwind config → mirror tokens via theme.extend
  • Writing CSS / Sass → emit --color-*, --font-*, --spacing-* variables
  • Visual brief (visual-director) → reference colors as palette, not hex
  • Mobile UI (RN/Flutter) → emit theme constants from tokens

When DESIGN.md is missing

Skill becomes a no-op. Agents fall back to project conventions or invent reasonable defaults — but at the next opportunity, suggest running badi tasarim init --interactive to capture decisions.

Validation

The skill loader cross-checks:

  • DESIGN.md frontmatter parses as YAML
  • Required keys: colors.primary, typography.body, spacing.unit
  • WCAG AA contrast for colors.text against colors.surface (warns if < 4.5:1)

References

  • DESIGN.md spec: lib/commands/tasarim.js
  • tasarim-kurator agent for interactive token generation
  • visual-director delegates here when DESIGN.md exists
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. 6d ago First seen · 76 lines · 0 tokens per session scan A bbe98bad643a

Subscribe to this mod's changes

design-tokens is a skill published in the GitHub repository fatihkan/badi (7 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 711 tokens. 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-06.

Related

Other skills, from other repositories

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

AvinashP/AgentsAtlas · 64 tokens

heroui

Build accessible UIs using HeroUI v3 components (React + Tailwind CSS v4 + React Aria). Use when creating React interfaces, selecting UI components, implementing forms, navigation, overlays, or data display. Use when installing HeroUI v3, customizing themes, accessing component documentation, building with compound…

ruchernchong/claude-kit · 121 tokens

apple-design

Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading)…

samuelpatro/.claude · 80 tokens

frontend-ui-ux

Designer-turned-developer expertise for crafting stunning UI/UX even without design mockups.

shahidshabbir-se/my-pi-setup · 22 tokens

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI).…

AvinashP/AgentsAtlas · 77 tokens

landing-page-generator

Generate complete, deploy-ready landing pages from any repository. Use when creating a homepage for an open-source project, building a project website, converting a README into a marketing page, or standardizing landing pages across multiple repos.

FlorianBruniaux/claude-code-plugins · 48 tokens