Halftone

Role / Services
Design and development
Stack
TypeScript, Svelte, Node.js CLI
Client & year
Personal project © 2024

Open source · Design tool

I kept rebuilding the same spreadsheet to check color contrast for every new design system. Halftone started as that spreadsheet turned into a tool, and now other designers and developers use it too.

How it works

You pick a few base colors. Halftone generates the full scale for each one, then shows a grid of every text and background pair with its contrast score, so you can see at a glance which combinations pass.

For developers

The same engine runs as a command-line tool. It reads a palette file and writes CSS custom properties, a Tailwind theme or JSON tokens, so the palette in the design file and the one in the code stay the same.