Portfolio ©2026Loading experience
Design.Engineer.Ship.
Laravel × React × WebGL000
twogoodson ©
← All notes

Design tokens for developers who don't design

A handful of variables that make a UI look intentional, even without a designer on the team.

Written by

TubagusFull Stack Developer

Published

Reading

5 min

Topics

Design · #Tailwind · #CSS · #UX

You do not need to be a designer to make a UI feel consistent. You need fewer choices.

Start with five decisions

  • One spacing scale.
  • Two font families, at most.
  • A type scale with six steps.
  • One accent colour.
  • One border radius.

Name by purpose

--color-muted survives a rebrand; --color-grey-500 does not. Tokens should describe intent, not appearance.

@theme {
  --color-ink: #070707;
  --color-paper: #ecebe6;
  --color-accent: #c6ff3d;
}

Delete the exceptions

Every one-off margin is a small inconsistency the eye picks up. When a design needs a new value, add it to the scale or do not use it.

Ship it as code

Tailwind's @theme turns these tokens into utilities, so the system is the path of least resistance.

Written by

Tubagus

Full Stack Developer

Share this note

Next note

Shipping side projects without burning out→