Get design tokens for a theme
get_tokensFetch design tokens for a kit in DTCG, CSS, Tailwind, or shadcn format, covering semantic colors, typography, and spacing to integrate into your existing styling layer.
Instructions
Fetch one design kit's machine-readable tokens in the format that matches the target stack. It covers all 28 semantic color roles in both light and dark, plus typography and spacing. Use it to wire a kit into an existing styling layer when you do not need the written brief; pair it with get_design_md when you also need the rules. Read-only: it returns the file contents as text and writes nothing to disk. apply_theme writes tokens and DESIGN.md into a project in one step. Free kits are public; a Pro kit returns 403 unless the key is entitled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Permanent id or slug of the kit, from list_themes / search_themes. Prefer the id: it never moves, while a slug can be renamed and a retired slug keeps resolving through an alias. | |
| format | No | Token format, default dtcg: dtcg (W3C design-token JSON) | css (custom properties on :root and .dark) | tailwind-v3 (config object) | tailwind-v4 (@theme block) | shadcn-registry (registry item) | json (the raw kit). |