Template · Design tokens

Starter token system Template

177 tokens for color, spacing, type, radii, shadows and motion, in three layers: primitives, roles and components. Light and dark are both included. Every text color reaches 7:1 or more against its background, and every border and focus ring 3:1, in both themes. Drop the CSS into a project and build on the roles.

Version
1.0
Updated
2026-10-12
Tokens
177
Themes
Light and dark
Formats
CSS, DTCG JSON
Text contrast
7:1 (WCAG AAA)
Licence
CC0 1.0

Download

The files

Plain text files you can open anywhere.

CSS

The tokens as CSS

tokens.css

Custom properties for every token. Light and dark follow the reader's color scheme through light-dark(); a data-theme attribute forces one.

Format
CSS text (.css)
Size
6,921 bytes
Contents
187 lines

Preview: the first 20 lines

/* Starter design tokens.
   Template version 1.0, 2026-10-12, from https://auricartisan.com/templates/starter-tokens/. Licence: CC0 1.0 Universal (public domain).
   Light and dark follow the reader's color scheme through light-dark().
   Set data-theme="light" or data-theme="dark" on an element to force one. */
:root {
  color-scheme: light dark;
  --color-brand-50: #F2F4FF;
  --color-brand-100: #E6EAFF;
  --color-brand-200: #CDD5FF;
  --color-brand-300: #ADB8FF;
  --color-brand-400: #8B96FF;
  --color-brand-500: #6C71FF;
  --color-brand-600: #5755E6;
  --color-brand-700: #4338CA;
  --color-brand-800: #311EA4;
  --color-brand-900: #1F007B;
  --color-brand-950: #10004C;
  --color-accent-50: #FFF6CC;
  --color-accent-100: #F9ECB0;
  --color-accent-200: #E6D999;
Download the file

JSON

The tokens as DTCG JSON

design.tokens.json

The same tokens in the Design Tokens Community Group format 2025.10, for Style Dictionary, Tokens Studio and other tools. Light and dark are separate groups.

Format
JSON text (.json)
Size
38,461 bytes
Contents
1815 lines

Preview: the first 20 lines

{
  "$description": "Starter design tokens in the DTCG 2025.10 format. Template version 1.0, 2026-10-12, from https://auricartisan.com/templates/starter-tokens/. Licence: CC0 1.0 Universal (public domain). Select the light or dark group before you transform.",
  "primitive": {
    "color-brand-50": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [
          0.9490196078431372,
          0.9568627450980393,
          1
        ],
        "alpha": 1,
        "hex": "#F2F4FF"
      }
    },
    "color-brand-100": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",

Markdown

The readme

tokens-readme.md

What each layer is for, every color role with its light and dark value, every pair measured, and the rules for using them. Keep it beside the tokens.

Format
Markdown text (.md)
Size
5,813 bytes
Contents
81 lines

Preview: the first 18 lines

# Starter design tokens

Template version 1.0, 2026-10-12, from https://auricartisan.com/templates/starter-tokens/. Licence: CC0 1.0 Universal (public domain).
Use it for anything, including paid work; no credit needed.

A small, complete token system for a product's colors, spacing, type, radii, shadows and motion, in light and dark. Every text color reaches 7:1 or more against the background it is meant for (WCAG 2.2 AAA, success criterion 1.4.6), and every border and focus ring reaches 3:1 or more (1.4.11).

## Files

- tokens.css: CSS custom properties. Light and dark follow the reader's color scheme through light-dark(). Set data-theme="light" or data-theme="dark" on an element to force one.
- design.tokens.json: the same tokens in the Design Tokens Community Group format, version 2025.10, for Style Dictionary, Tokens Studio and similar tools. Select the light or dark group before you transform.
- tokens-readme.md: this file.

## Three layers

1. Primitives (131): raw values. Seven color ramps (brand, accent, neutral, success, warning, danger, info) in eleven steps, two neutral end points, and spacing, type, radii, shadows and motion.
2. Roles (29): what a value is for, such as color-text or color-surface. Each role points at a primitive, and at a different one in dark mode.
3. Components (17): aliases for parts, such as button-primary-bg. Components point at roles, never at primitives.
Download the file

Licence: CC0 1.0 Universal, a public domain dedication. Copy, change and use these files for anything, including paid work, without asking or giving credit. The files are plain ASCII text in English, so they open the same everywhere.

What goes in it

What is in the system

Three layers, so a theme can change without renaming anything: components point at roles, and roles point at primitives.

  1. Primitives. 131 raw values: seven color ramps (brand, accent, neutral, success, warning, danger and info) in eleven steps from 50 to 950, plus spacing, type sizes, radii, shadows and motion.
  2. Roles. 29 names for what a value is for, such as color-text and color-surface. Each points at one primitive in light and another in dark.
  3. Components. 17 aliases for parts, such as button-primary-bg and input-focus. They point at roles, so a component never needs to know which theme is on.
  4. Both themes. Light and dark, chosen by the reader's system setting. One attribute on an element forces either.
  5. The measured pairs. The 14 pairs the system relies on, measured in both themes: text at 7:1 or more, borders and focus rings at 3:1 or more.

Example

Every pair the system relies on

The WCAG 2 contrast ratio of each pair in both themes, rounded down to two places. Text needs 7:1 here; borders and focus rings need 3:1.

Every pair the system relies on (table)
PairLightDarkMinimum
Body text on the surface18.07:1 Pass18.07:1 Pass7:1
Muted text on the surface7.09:1 Pass9.65:1 Pass7:1
Body text on a raised surface18.07:1 Pass14.52:1 Pass7:1
Muted text on a raised surface7.09:1 Pass7.75:1 Pass7:1
Primary button label7.90:1 Pass11.07:1 Pass7:1
Primary button label on hover11.33:1 Pass14.55:1 Pass7:1
Focus ring on the surface7.90:1 Pass9.53:1 Pass3:1
Focus ring on a card7.90:1 Pass7.66:1 Pass3:1
Input border on the surface3.62:1 Pass4.98:1 Pass3:1
Input border on a card3.62:1 Pass4.00:1 Pass3:1
Success message9.26:1 Pass12.93:1 Pass7:1
Warning message9.78:1 Pass12.54:1 Pass7:1
Error message10.24:1 Pass12.57:1 Pass7:1
Information message9.48:1 Pass12.63:1 Pass7:1

The focus ring shares its color with the primary button fill, so draw it with an offset: it must sit on the surface, where it measures well above 3:1, not on the button.

How to use it

Start a project with it

  1. Add the CSS. Load tokens.css once, before your own styles. The page follows the reader's light or dark setting straight away.
  2. Style with roles. Write var(--color-text) and var(--button-primary-bg), never a ramp step such as var(--color-brand-700). That keeps dark mode working.
  3. Feed your token tool. Give design.tokens.json to Style Dictionary or Tokens Studio when you need iOS, Android or design-file outputs.
  4. Make it yours. Open the token studio with your brand color and export again: the roles are chosen again so every pair still passes. Open the design token studio
  5. Write it down. Record the roles and the pairs you rely on in a color specification, so the next person knows the rules. Use the color specification template

Know its limits

Tokens are a start, not a finish

Colors that pass together do not make a component accessible. Labels, keyboard support, focus order and names still have to be built and tested.

The system is generated from one brand color by the token studio. If you edit a primitive by hand, measure every pair again: one changed step can break a pair the system relies on.

Next

Related templates and tools

Sources

Where this comes from

Written by Auric Artisan. Not yet reviewed by an independent accessibility specialist.

Suggest a change to the template