Process
A process in three phases, done in order: what the app should do and by which method, UX and design in Figma, and development with Claude Code. No code was written until the first two were closed. Each step follows the same cycle: measure with a script, propose, decide and log the decision with its date; in development, a brief to Claude Code, tests, build and lint, code, accessibility and security reviewers, and a pull request.
- Measure before deciding
- No code until design is closed
- Documented decisions
- Review on every brief
- Design system designers who build a brand’s color scales and bring them into Figma variables
- UI/UX designers who need to know which steps of a palette meet WCAG contrast for text on white or black
- Front-end developers who work with Tailwind CSS 4 or CSS variables and want custom palettes with their system’s names
The most critical flow was reading the result: seeing, as you type a color, which steps you can use for text. That’s where the app could lose people, because the method isn’t the usual one. A step’s name is its contrast level, the brand color lands on the step with the closest contrast and can’t be moved, and that step keeps its own contrast. The answer was to make the result say it without opening any table. Everything updates instantly, with no button, and the settings sit alongside on desktop. Above the strips, one sentence gives the rule for the chosen number of steps, such as text on white from 700 up. Two rows, White AA and Black AA, mark it step by step across every scale. A ✓ marks the brand color, with its contrast given apart. On mobile, where those rows don’t fit, each step’s name sits inside its swatch, in black or white, whichever passes AA. Users know what they can use before they export.
The first alternative was to follow the Tailwind CSS curves as they are, like the course’s tool: each step’s lightness came from the palette and the brand color landed on the closest step. I dropped it after checking what’s current in scales for design systems: the standard is no longer just working in OKLCH, but making a step number mean the same thing in every palette. With Tailwind’s curves, the 500 ranged from 1.88 to 4.22 in contrast against white depending on the color. The second alternative was to let users choose which step their color lands on, as Scale and ColorScale do. I dropped it because, with the new method, a step’s name is its contrast: moving the brand color would break that promise. The third was exporting to Figma in OKLCH. I dropped it after testing: Figma didn’t import those variables, and in sRGB with hex it imported all 44. The answer was to make each step a contrast level, the same in the brand scale, the neutrals and the semantic palettes, accepting the cost: very saturated colors lose more chroma to fit in sRGB, and the app warns about it.