Free Tool

Design Token Generator

Enter a brand colour, a type size and a scale ratio, and get a full token set: colour ramps with a job for every step, a type scale with line heights, and a spacing scale. Copy it as CSS variables, W3C format JSON or a Tailwind theme.

Colour

Hex. Your exact colour becomes the ramp step closest to it in lightness.

Type

px

Spacing

px
Multiples of the base: 1, 2, 3, 4, 5, 6, 8, 10, 12, 16 and up.
Enter a brand colour to build your tokens.

Free, no signup. Runs in your browser, nothing you type leaves this page.

Every result has a shareable link.

What Design Tokens Are

Design tokens are the named values a brand is built from: colours, font sizes, line heights and spacing. Instead of a developer typing #2e7d5b in forty places, the code uses --color-brand-600, and the value lives in one file. Change the token and every button, link and badge follows.

Tokens are what turn a brand guideline from a PDF into something a website or an app can actually use. They also stop drift. When every colour on a site has to come from a named list, nobody can quietly introduce a fourth blue.

What This Generator Builds

Colour Ramps

From your brand colour the tool builds two ramps of eleven steps each, named 50 to 950: a brand ramp and a neutral ramp. You choose the method:

  • OKLCH (the default). OKLCH is a colour space where equal changes in lightness look equal to the eye. The tool sets fixed lightness targets for each step, keeps your hue, tapers chroma toward the lightest and darkest steps, and pulls any colour outside the sRGB range back inside it by reducing chroma until it fits.
  • HSL. The familiar hue, saturation and lightness model, stepped on lightness. It is simpler but less even: yellows tend to look too light and blues too dark at the same HSL lightness.

In both methods your exact brand colour replaces the step closest to it in lightness, so the ramp always contains the colour on your logo. The neutral ramp is either tinted with your brand hue, cool, true grey or warm.

A Job For Every Step

Each colour step gets a job based on its WCAG 2.x contrast ratio against white: 7:1 or more is Text, 4.5:1 or more is Muted text, 3:1 or more is Border (input outlines, icons, focus rings, under WCAG 1.4.11), and anything lower is Fill. Your brand step is marked Brand. From those jobs the tool picks six role tokens: body text, secondary text, interface borders, surface, brand fill and link colour. Role tokens are what components should use, because they let you swap a step later without touching a component.

Type Scale

A modular scale multiplies the base size by a fixed ratio for each step up and divides by it for each step down. With a 16px base and a 1.25 ratio, the steps run 12.8, 16, 20, 25, 31.25 and so on. Sizes are given in px and in rem, with rem assuming the browser default 16px root so the scale respects a reader who has enlarged their text.

Line heights follow a simple rule, set by each size relative to the base: body and smaller sizes get 1.5, up to one and a half times the base gets 1.4, up to double gets 1.3, up to triple gets 1.2, and display sizes above that get 1.1. Large headings at 1.5 look loose and disconnected; small text at 1.1 is hard to read.

Spacing Scale

Spacing is a base unit multiplied by a fixed sequence: 1, 2, 3, 4, 5, 6, 8, 10, 12, 16 and up. Token names are the multiplier, so with a 4px base space-4 is 16px. The gaps widen as the steps grow, because the difference between 4px and 8px matters, and the difference between 64px and 68px does not.

The Three Output Formats

  • CSS custom properties on :root, ready to paste into any stylesheet, WordPress theme or Elementor custom CSS.
  • JSON in the W3C Design Tokens Community Group format, with $value, $type and $description on every token and role tokens written as aliases such as {color.neutral.900}. It uses string values for colours and dimensions, which is what most token tools read today. Later revisions of the specification describe some values as objects, so check what your pipeline expects.
  • Tailwind as a theme.extend object for Tailwind v3. Tailwind v4 is configured in CSS, so on v4 paste the CSS variables into an @theme block instead.

Mistakes To Avoid

  • Using the brand colour for small text because it is the brand colour. Check its job. If it says Fill or Border, links and labels need a darker step.
  • Naming tokens by appearance in components. A button should use --color-brand or --color-link, not --color-brand-600, so a rebrand is a token change and not a code search.
  • Too many type steps. Most sites need six to eight sizes. Every extra step is a decision a designer has to make on every page.
  • Ignoring dark mode. Jobs here assume a white page. On a dark theme the ramp runs the other way; test the pairs with the Contrast And Ramp Checker.

The Agency Angle

A token file is the most useful thing a brand project can hand to a developer, and most brand projects never deliver one. Wise Media ships tokens with every identity it builds, so the website, the app and the social templates all read from the same source. Generate a starting set here, adjust it by eye, and treat it as the first page of the brand system rather than an afterthought.

Fix What This Measured

Brand Identity Design Business Course

The Brand Identity Design Business Course covers what happens after the tokens: packaging them into guidelines, handing them to developers, pricing the system as its own deliverable and keeping a brand consistent across every surface it touches.

Rather Not DIY It?
Let Wise Media Build It.

The tool shows the gap. The studio closes it: brand, site, app and AI, then the ads, email, content and search that turn them into revenue.

Website Development

Custom sites with one job per page, built fast for phones, search and AI answers.

From $3,000CAD one timeSee Website Development

App Development

Web apps, portals and dashboards on Next.js, Supabase and Stripe, installable on any phone.

From $5,000CAD one timeSee App Development

Paid Advertising

Meta, Google and TikTok campaigns built on the offer and page first, reported as one number.

From $750CAD per monthSee Paid Advertising
wisemedia.io #1

SEO & AI Search

Rank in Google, get named by ChatGPT and Gemini, and convert the visit after the click.

From $350CAD per monthSee SEO & AI Search
Aa

Brand Identity

Positioning, logo suite, colour, type and the guide that keeps it consistent.

From $750CAD one timeSee Brand Identity

AI Agents & Automation

Custom AI agents, LLM features and n8n automation connected to the tools you already use.

From $1,000CAD one timeSee AI Agents & Automation

Content Production

Short form video, carousels and AI clone content produced on a weekly calendar.

From $750CAD per monthSee Content Production
3

Email Marketing

Campaigns written and sent, lifecycle flows and SMS, every send tied to revenue.

From $350CAD per monthSee Email Marketing

Website Care

Updates, daily backups, monitoring, edits and search maintenance handled every month after launch.

From $100CAD per monthSee Website Care
MFADMARCBackupsTraining

Cyber Security

Email, accounts, staff devices and company data protected, with the documents your insurer asks for.

From $250CAD per monthSee Cyber Security

Design Token Generator Questions

Straight answers on using it and acting on the result.

Quick Answer

How Do You Create Design Tokens?

Start with a brand colour, a base font size and a spacing unit. Build an 11 step colour ramp (50 to 950) for the brand and a neutral, give each step a job by contrast, multiply the base size by a fixed ratio for the type scale, and multiply the base unit for spacing. Export the result as CSS variables or JSON tokens.

  • Colour. Brand and neutral ramps, 50 to 950, OKLCH or HSL
  • Type. Modular scale from 1.125 to 1.618 with line heights
  • Formats. CSS variables, W3C format JSON, Tailwind theme

FAQ

Frequently Asked Questions

Named values for the decisions a brand is built from: colours, font sizes, line heights, spacing and more. Code references the name, the value lives in one place, so changing a token updates every component that uses it.

There is no single best. Smaller ratios like 1.125 or 1.2 suit dense interfaces and dashboards. 1.25 or 1.333 suit most marketing sites. 1.5 and 1.618 give dramatic headlines but grow very large within a few steps, so use fewer steps.

OKLCH, in most cases. Its lightness channel matches how bright colours look, so steps are evenly spaced across hues. HSL is simpler but uneven: a yellow and a blue at the same HSL lightness look very different in brightness.

A JSON format from the Design Tokens Community Group where each token has a $value and a $type, with optional $description, and tokens can reference others with curly brace aliases like {color.neutral.900}. Tools such as Style Dictionary can transform it into code for any platform.

Eleven, from 50 to 950, is a common convention that gives enough range for backgrounds, borders, text and dark mode. Fewer steps leave gaps between fills and text colours. You will rarely use all eleven, and that is fine.

rem scales with the reader's browser text setting. A visitor who sets a larger default font gets larger text across your site. px values ignore that setting, which is an accessibility problem for people with low vision.

Yes. Tailwind v4 is configured in CSS, so copy the CSS variables tab into an @theme block in your main stylesheet. The Tailwind tab gives a theme.extend object for Tailwind v3 projects.

Every step gets a job from its WCAG 2.x contrast ratio against white, and the role tokens are chosen to meet 7:1 for body text, 4.5:1 for secondary text and links, and 3:1 for borders. Check dark mode pairs separately.

Rather Have It
Done For You?

Wise Media builds and runs this for clients. Thirty minutes with Cody: the bottleneck named, the fix scoped, the price on the table.