Your tokens, exported as Figma variables and as a Tailwind theme.
Set tokens once.Ship to Tailwind and Figma.
Pick a brand colour, a typeface and a corner radius once. Tokkit writes the Tailwind theme and the Figma variables from those same values, plus CSS and DTCG JSON.
Figma variables
| Name | Light.json | Dark.json |
|---|---|---|
| color12 | ||
| color/brand | #845AFD | #845AFD |
| color/brand2 | #5B5BD6 | #5B5BD6 |
| color/accent | #111823 | #111823 |
| color/on-brand | #FFFFFF | #FFFFFF |
| color/on-accent | #FFFFFF | #FFFFFF |
| color/background | #FFFFFF | #0B0B0F |
| color/surface | #F6F6F8 | #17171C |
| color/border | #E6E6EC | #2A2A33 |
| color/text | #111114 | #F5F5F7 |
| color/muted | #6B6B76 | #A1A1AA |
| color/stroke | #E6E6EC | #2A2A33 |
| color/card-stroke | #E6E6EC | #2A2A33 |
| radius5 | ||
| radius/top-left | 10 | 10 |
| radius/top-right | 10 | 10 |
| radius/bottom-right | 10 | 10 |
| radius/bottom-left | 10 | 10 |
| radius/card | 16 | 16 |
| stroke2 | ||
| stroke/button | 1 | 1 |
| stroke/card | 1 | 1 |
| spacing7 | ||
| spacing/xs | 4 | 4 |
| spacing/sm | 8 | 8 |
| spacing/md | 12 | 12 |
| spacing/lg | 16 | 16 |
| spacing/xl | 24 | 24 |
| spacing/2xl | 32 | 32 |
| spacing/3xl | 48 | 48 |
| padding6 | ||
| padding/button-x | 16 | 16 |
| padding/button-y | 12 | 12 |
| padding/input-x | 14 | 14 |
| padding/chip | 10 | 10 |
| padding/card | 16 | 16 |
| padding/section | 24 | 24 |
| typography1 | ||
| typography/font-family | Figtree | Figtree |
Tailwind theme
/** @type {import('tailwindcss').Config} */module.exports = { "theme": { "extend": { "colors": { "brand": "#845AFD", "brand2": "#5B5BD6", "accent": "#111823", "on-brand": "#ffffff", "on-accent": "#ffffff", "background": "#ffffff", "surface": "#f6f6f8", "border": "#e6e6ec", "text": "#111114", "muted": "#6b6b76" }, "borderRadius": { "DEFAULT": "10px", "tl": "10px", "tr": "10px", "br": "10px", "bl": "10px", "card": "16px" }, "borderWidth": { "DEFAULT": "1px", "card": "1px" }, "borderColor": { "DEFAULT": "rgba(230, 230, 236, 1)", "card": "rgba(230, 230, 236, 1)" }, "fontFamily": { "sans": [ "'Figtree'", "system-ui", "sans-serif" ] }, "spacing": { "xs": "4px", "sm": "8px", "md": "12px", "lg": "16px", "xl": "24px", "2xl": "32px", "3xl": "48px" }, "padding": { "button-x": "16px", "button-y": "12px", "input-x": "14px", "chip": "10px", "card": "16px", "section": "24px" } } }};live#845AFD10pxFigtreelight modeSame exporters as Studio's Export column
01Live output
Real exports, live from your tokens.
Everything in the frame is what Tokkit's exporters write for the dock's tokens: the same functions Studio runs when you copy or download. Change a colour or the radius and the lines that change light up on both sides.
tailwind.config.jsTailwind theme
theme.extendwith colours, radius, borders, font, spacing and padding.59 lines
Light.json · Dark.jsonFigma variables
One file per mode, ready for Figma's own variables import.
33 variables each
tokens.cssCSS variables
Custom properties, with the dark mode block in the same file.
42 declarations
tokens.light.dtcg.jsonDTCG JSON
The Design Tokens Community Group format, for token pipelines, one file per mode.
33 tokens
02Token map
One token, four names.
Each row is read from the exports themselves: the key in tailwind.config.js, the class it gives you, the variable in tokens.css and the variable Figma creates on import. Values follow the dock.
| Token | Value | Tailwind key | Class | CSS variable | Figma variable |
|---|---|---|---|---|---|
| Brand | #845AFD | colors.brand | bg-brandtext-brand | --color-brand | color/brand |
| Brand 2 | #5B5BD6 | colors.brand2 | bg-brand2text-brand2 | --color-brand2 | color/brand2 |
| Accent | #111823 | colors.accent | bg-accenttext-accent | --color-accent | color/accent |
| Text on brand | #ffffff | colors.on-brand | bg-on-brandtext-on-brand | --color-on-brand | color/on-brand |
| Text on accent | #ffffff | colors.on-accent | bg-on-accenttext-on-accent | --color-on-accent | color/on-accent |
| Page background | #ffffff | colors.background | bg-backgroundtext-background | --color-background | color/background |
| Surface | #f6f6f8 | colors.surface | bg-surfacetext-surface | --color-surface | color/surface |
| Border | #e6e6ec | colors.border | bg-bordertext-border | --color-border | color/border |
| Text | #111114 | colors.text | bg-texttext-text | --color-text | color/text |
| Muted text | #6b6b76 | colors.muted | bg-mutedtext-muted | --color-muted | color/muted |
- Per-corner keys keep Tailwind's corner prefixes:
rounded-tl-tlrounds only the top-left corner with its token. A barerounded-tlalso matches thetlkey, so it rounds every corner. --brand-fillin tokens.css has no twin in the other files: it carries the gradient when Studio's Fill is set to Gradient.- Spacing is Tokkit's fixed 4-pt scale and padding a fixed set of component paddings: both are exported in every format, and neither is editable in Studio.
03Step by step
From Studio to your codebase and your Figma file.
Three steps, no plugins. Tailwind takes one file; Figma takes two, one for each mode.
In Studio
Set your tokens
Pick a brand colour, solid or a gradient, then an accent, one of 1,946 Google Fonts families, the corner radius, strokes and a card shape. Check them on a landing page, a dashboard, a component sheet and mobile screens, in light and dark.
The dock's tokens, as Studio's controls hold them In your codebase
Add the Tailwind theme
In Studio's Export column, choose Tailwind, then Copy or Download. Both ask you to log in first, free with Google or with email.
- Starting fresh: save it as
tailwind.config.jsin your project root and add yourcontentglobs. - Already have a config: merge the
theme.extendblock into yours. - On Tailwind v4: load it with
@configor move it into@theme. Both are shown below, with what to watch for on v4.
Rendered with the values in your tailwind.config.js - Starting fresh: save it as
In Figma
Import the variables
- In Studio's Export column, choose Figma and download the file in each mode:
Light.json, then switch the mode to Dark forDark.json. - In Figma, open the Variables view and create a new collection.
- Drag both files into the Variables view. Figma creates one mode per file. The two files share the same names and types, so every variable gets a value in both modes.
- To update later, select the collection, right-click a mode, choose Import mode and pick the new file. Variables with matching names and types update in place.
Figma lists modes for variables on its Professional, Education, Organization, Government and Enterprise plans. Source: Figma Help Center, Modes for variables (opens in a new tab)
Illustration: both files in one collection, one mode per file, with your values - In Studio's Export column, choose Figma and download the file in each mode:
04Tailwind v3 and v4
Written for v3. Works on v4.
The export is a classic tailwind.config.js: CommonJS, with everything under theme.extend. Tailwind v3 reads it as it is. On v4, point @config at it or move the values into @theme.
Drop it in
- Extend, not replace:
p-4androunded-lgkeep working next top-cardandrounded-card. - Three defaults take your tokens on purpose:
rounded,borderandfont-sans. - Keep your own
contentglobs. The export only carries the theme.
// tailwind.config.jsmodule.exports = { // your templates content: ["./src/**/*.tsx"], theme: { extend: { // from Tokkit's export: colors: { brand: "#845AFD", // +9 more }, borderRadius: { DEFAULT: "10px", // +5 more }, borderWidth: { … }, borderColor: { … }, fontFamily: { … }, spacing: { … }, padding: { … }, }, },};Go CSS-first, or keep the file
- CSS-first: the same values as
@themevariables, translated here from your export (Studio exports the v3 file). - Or keep the file: load it from your CSS with
@config. v4 finds your templates on its own.
/* Tokkit's theme, as v4 variables */@import "tailwindcss"; @theme { /* colors */ --color-brand: #845AFD; --color-brand2: #5B5BD6; --color-accent: #111823; --color-on-brand: #ffffff; --color-on-accent: #ffffff; --color-background: #ffffff; --color-surface: #f6f6f8; --color-border: #e6e6ec; --color-text: #111114; --color-muted: #6b6b76; /* radius */ --radius: 10px; --radius-tl: 10px; --radius-tr: 10px; --radius-br: 10px; --radius-bl: 10px; --radius-card: 16px; /* borders */ --default-border-width: 1px; --border-width-card: 1px; --border-color-card: rgba(230, 230, 236, 1); /* type */ --font-sans: 'Figtree', system-ui, sans-serif; /* spacing + padding */ --spacing-xs: 4px; --spacing-sm: 8px; --spacing-md: 12px; --spacing-lg: 16px; --spacing-xl: 24px; --spacing-2xl: 32px; --spacing-3xl: 48px; --padding-button-x: 16px; --padding-button-y: 12px; --padding-input-x: 14px; --padding-chip: 10px; --padding-card: 16px; --padding-section: 24px;} /* v4 draws a bare `border` in currentColor: keep the exported default */@layer base { *, ::after, ::before, ::backdrop, ::file-selector-button { border-color: rgba(230, 230, 236, 1); }}Worth knowing on v4
- The spacing keys
xsto3xlshare their names with v4's container sizes, somax-w-md,max-w-lg,max-w-2xl,w-smand the like become 4 to 48px instead of Tailwind's widths. For those widths usemax-w-(--container-lg), or rename the spacing keys first. - A bare
borderis currentColor in v4, and@configdoesn't bring the exported default colour back. Add the base rule from the@themetab, or a colour class such asborder-border. border-cardonly sets the card stroke colour in v4. For the card's stroke width addborder-(length:--border-width-card)with the@themesheet, orborder-[length:theme(borderWidth.card)]with@config.- Both routes were compiled with Tailwind v4.3: every class in the token map comes out with the same values.
FAQ
Before you export.
What the two exports do, what they don't do yet, and where Figma's plans come in.
Does Tokkit import my Figma file or variables?
Not yet. Tokkit works the other way round: you set your tokens in Studio, then export them as Figma variables files and as a Tailwind config. It doesn't read Figma files or token JSON today.
Which Tailwind version is the config for?
It's a v3-style tailwind.config.js: CommonJS, with everything under theme.extend. Tailwind v3 reads it as it is. On v4, load it with @config or move the values into @theme, both shown above. On v4 the spacing keys xs to 3xl also shrink widths such as max-w-md; the v4 notes show the way around it.
Why are there two Figma files?
One per mode. Light.json and Dark.json carry the same variable names and types with each mode's values, so dropping both into a new collection gives you one mode per file with every variable filled in.
Which Figma plans can use the two modes?
Figma's help article lists modes for variables on the Professional, Education, Organization, Government and Enterprise plans. Check it for your plan's limits.
If I change my tokens, does Figma update by itself?
No, there is no live sync. Export the files again, then in Figma right-click each mode, choose Import mode and pick the new file. Variables with the same names and types are updated in place.
Can I keep my existing Tailwind config?
Yes. Merge the theme.extend block into yours. It adds new keys and changes three defaults on purpose: rounded, border and font-sans take your tokens.
What isn't in the export?
Font sizes, weights, line heights and shadows. Spacing (a fixed 4-pt scale) and the component paddings are included, but you can't edit them in Studio.
Is it free, and do I need an account?
Studio and all four exports are free. Trying them needs no account: change your tokens and watch every output update. To copy or download an export, log in with Google or with email; that's free too. Your design is saved in this browser.
Get started
Set them once. Ship them to both.
Open Studio, fine-tune the details, then copy the Tailwind config and download the two Figma files.
Get the Tailwind configGet the Figma files
No credit card. No sign-up to try.