Skip to content
Appearance

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.

FreeNo sign-up to trytailwind.config.js Light.json Dark.json

Brand
Typeface
Mode

Figma variables

33 variables · 2 modes
Figma variables created by importing Light.json and Dark.json into one collection, one mode per file
NameLight.jsonDark.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-left1010
radius/top-right1010
radius/bottom-right1010
radius/bottom-left1010
radius/card1616
stroke2
stroke/button11
stroke/card11
spacing7
spacing/xs44
spacing/sm88
spacing/md1212
spacing/lg1616
spacing/xl2424
spacing/2xl3232
spacing/3xl4848
padding6
padding/button-x1616
padding/button-y1212
padding/input-x1414
padding/chip1010
padding/card1616
padding/section2424
typography1
typography/font-familyFigtreeFigtree

Tailwind theme

59 lines
/** @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.js

    Tailwind theme

    theme.extend with colours, radius, borders, font, spacing and padding.

    59 lines

  • Light.json · Dark.json

    Figma variables

    One file per mode, ready for Figma's own variables import.

    33 variables each

  • tokens.css

    CSS variables

    Custom properties, with the dark mode block in the same file.

    42 declarations

  • tokens.light.dtcg.json

    DTCG 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.

Read from the export · values follow the dock

Colour tokens: value, Tailwind key, utility class, CSS variable and Figma variable
TokenValueTailwind keyClassCSS variableFigma variable
Brand#845AFDcolors.brandbg-brandtext-brand--color-brandcolor/brand
Brand 2#5B5BD6colors.brand2bg-brand2text-brand2--color-brand2color/brand2
Accent#111823colors.accentbg-accenttext-accent--color-accentcolor/accent
Text on brand#ffffffcolors.on-brandbg-on-brandtext-on-brand--color-on-brandcolor/on-brand
Text on accent#ffffffcolors.on-accentbg-on-accenttext-on-accent--color-on-accentcolor/on-accent
Page background#ffffffcolors.backgroundbg-backgroundtext-background--color-backgroundcolor/background
Surface#f6f6f8colors.surfacebg-surfacetext-surface--color-surfacecolor/surface
Border#e6e6eccolors.borderbg-bordertext-border--color-bordercolor/border
Text#111114colors.textbg-texttext-text--color-textcolor/text
Muted text#6b6b76colors.mutedbg-mutedtext-muted--color-mutedcolor/muted
  • Per-corner keys keep Tailwind's corner prefixes: rounded-tl-tl rounds only the top-left corner with its token. A bare rounded-tl also matches the tl key, so it rounds every corner.
  • --brand-fill in 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.

  1. 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
  2. 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.js in your project root and add your content globs.
    • Already have a config: merge the theme.extend block into yours.
    • On Tailwind v4: load it with @config or move it into @theme. Both are shown below, with what to watch for on v4.
    Rendered with the values in your tailwind.config.js
  3. In Figma

    Import the variables

    1. In Studio's Export column, choose Figma and download the file in each mode: Light.json, then switch the mode to Dark for Dark.json.
    2. In Figma, open the Variables view and create a new collection.
    3. 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.
    4. 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

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.

v3theme.extend

Drop it in

  • Extend, not replace: p-4 and rounded-lg keep working next to p-card and rounded-card.
  • Three defaults take your tokens on purpose: rounded, border and font-sans.
  • Keep your own content globs. 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: { … },    },  },};

v4CSS-first

Go CSS-first, or keep the file

  • CSS-first: the same values as @theme variables, 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 xs to 3xl share their names with v4's container sizes, so max-w-md, max-w-lg, max-w-2xl, w-sm and the like become 4 to 48px instead of Tailwind's widths. For those widths use max-w-(--container-lg), or rename the spacing keys first.
  • A bare border is currentColor in v4, and @config doesn't bring the exported default colour back. Add the base rule from the @theme tab, or a colour class such as border-border.
  • border-card only sets the card stroke colour in v4. For the card's stroke width add border-(length:--border-width-card) with the @theme sheet, or border-[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.

No credit card. No sign-up to try.