Skip to content
Marketing
Skill

/design-tokens-emit

Convert a design system spec into code-deliverable token files — CSS variables, a Tailwind config fragment, SCSS variables, or Style-Dictionary JSON. Trigger when the user says "emit tokens", "tailwind config", "css variables", "style dictionary", "convert design system to

From plugin
designer-pro-and-seo
845 skills13 agents4 MCP
Install
$ npx -y skills add ZachArticulateV/designer-pro-and-seo --skill design-tokens-emit --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/design-tokens-emit

Context preview

The summary Claude sees to decide when to auto-load this skill.

Convert a design system spec into code-deliverable token files — CSS variables, a Tailwind config fragment, SCSS variables, or Style-Dictionary JSON. Trigger when the user says "emit tokens", "tailwind config", "css variables", "style dictionary", "convert design system to

SKILL.md

design-tokens-emit.SKILL.md
name: design-tokens-emit
description: Convert a design system spec into code-deliverable token files — CSS variables, a Tailwind config fragment, SCSS variables, or Style-Dictionary JSON. Trigger when the user says "emit tokens", "tailwind config", "css variables", "style dictionary", "convert design system to code", or wants to bridge from spec to implementation.

design-tokens-emit

**Family:** design **Status:** Stable

Purpose

Bridge "we have a design system spec" to "we have tokens we can `import`." Takes a `design-system-gen` result and emits real token files in the chosen format(s), so the palette/typography/effects become part of the build instead of staying a doc.

Triggers

  • "emit tokens" / "convert design system to code"
  • "tailwind config" / "css variables" / "style dictionary"
  • "tokens for [tailwind/css/scss]"

Inputs

  • A design system as **engine JSON** from `design-system-gen` (re-run it in JSON

mode if you only have a saved `MASTER.md` — the emitter reads JSON, not Markdown)

  • Target format: `css` | `tailwind` | `scss` | `json` | `all`
  • Output directory

Steps

1. **Get the design JSON.** Run `design-system-gen` (JSON mode) or read a saved one. 2. **Emit tokens:**

   python3 "${CLAUDE_PLUGIN_ROOT}/scripts/design/tokens_emit.py" --design-json ds.json --format all --out-dir tokens/

On Windows, use `py` if `python3` is absent; in PowerShell the variable is `$env:CLAUDE_PLUGIN_ROOT`. Produces `tokens.css` (`:root` custom properties), `tailwind.tokens.js` (merge into `theme.extend`), `_tokens.scss`, and `tokens.json` (Style-Dictionary shape). Use `--print` to preview without writing. 3. **Wire it in.** Tell the user where each file goes (import the CSS, merge the Tailwind fragment, `@use` the SCSS) and include the contrast-safe `on_primary` color for button text. 4. **Keep it in sync.** Re-run when the design system changes; tokens are generated, not hand-maintained.

Outputs

  • One token file per requested format (CSS / Tailwind / SCSS / JSON)
  • Wiring notes for the target stack

Dependencies

  • `scripts/design/tokens_emit.py` (required) — Python 3.10+, standard library only
  • `design-system-gen` (required) — upstream source of the design JSON the emitter reads

Notes

Pairs with `design-build` (which consumes the tokens) and `design-system-persist` (which stores the source design system). SwiftUI/Compose targets are on the roadmap; web formats ship today.

Read more
Ships withdesigner-pro-and-seo

A Claude Code plugin for the web-design + SEO workflow: research a niche, generate a coherent design system, write a complete build brief, build, run a pre-delivery QA gate, port the result into any CMS, and review on-page SEO.

Get the whole plugin

Other skills on designer-pro-and-seo.