All notes

January 20, 2026 · 6 min read

Figma to code — the handoff ritual I use every project

Before I open my editor I spend 20 minutes in Figma with a checklist. It sounds slow. It's actually the fastest thing I do.

Tokens first. I export the color, spacing and type scale and turn them into CSS variables in `styles.css`. No pixel values in components.

States next. Hover, focus-visible, disabled, loading, empty, error. If the design file has none of them, that's my first question for the designer.

Edge cases. Long names, missing images, RTL, dark mode, zoom 200%. I annotate the file with what I'm assuming.

Then I write the component library - not the pages. Pages become boring compositions after that, and design changes stop breaking me.