Building Parenthèse’s design system

Keeping consistency in a collaborative project.

Parenthèse is the family tree app I launched as an open source project. At first I was the only one working on it, and the art direction held because I had it in my head. But the project grew. People propose changes on GitHub, a good part of the code goes through agents, and families use it for their tree. At that point, an art direction that is written down nowhere stops holding, and everyone ends up making their own buttons. So I built Parenthèse’s design system with the method I would use on any live product. You measure, you decide the rules, you bring them together, you migrate the whole app without breaking anything, and you make sure the rules are followed.

Visit the site
Building Parenthèse’s design system
Project details
Client
Personal product
Year
2026
Role
Design system, art direction, accessibility, tooling
Deliverables
Measured inventory, three-tier tokens, 8 components, public Storybook, lint guardrail, docs for agents

Measure where you start

A product that grows fast builds up small inconsistencies, that’s normal. Each screen adds its own shade of grey or text size, and nobody sees the total. That’s why a design system almost always starts with an interface inventory1. I wrote a script that goes through all the code of the app and lists every colour, text size, radius and shadow written by hand. It found 967, including 157 colours when you can see about ten on screen.

This inventory gave me the list of the real decisions to make. I ran it again at each step of the migration to see what was left, and the same script now works as the guardrail.

Strengthen the accessibility rules

Once the inventory is done, you have to cut down the number of styles, keeping in mind that the whole family has to be able to read the tree, from an 8-year-old cousin to the grandmother. I strengthened the accessibility rules, body text is 16 px and nothing you read goes below 14 px. I chose Tailwind’s scale2 over a custom one because agents already know it. Each size has a role, like title, a person’s name or body text, and in the code you call the role.

I did the same for the rest. Radii are named after what they round, a window, a card or a control, so a contributor knows which one to take without asking.

One source

Parenthèse contributors work on GitHub and agents read files, so I kept the reference in the code rather than in Figma. All the values sit in files in the DTCG format, the design token standard3, in three tiers from the raw palette to the components. The CSS, the Tailwind theme and the Storybook are generated from there. When you change a colour in that place, it changes everywhere.

The app already had its variable names and some branches were in progress. I chose to keep those names and put the new ones next to them, because renaming everything would have broken those branches.

Migrate without breaking anything

Then the whole app had to move to these rules without breaking anything for the families who use it. For each hard-coded value, I measured the gap with the nearest token. More than a thousand were identical or within one or two pixels, and they took the token directly. About forty colours were really different, so I went through them one by one on a board. Warning and success colours kept their own tokens, because moving them to the nearest one would have turned the yellows into terracotta.

I captured the main screens before and after, at four widths, and compared them side by side. Some needed more than a replacement. Places and routes, for example, were shown as green and blue map thumbnails, leftovers from a feature that wasn’t a priority.

A guardrail in CI

On an open project, people and agents add code without knowing the rules by heart. So the inventory script runs in the lint, and CI runs it on every proposed change. If the number of hard-coded values goes up, the check fails. The message gives the line, the value and the token to use instead, so you can fix it without searching the docs.

I chose to write this script rather than use Stylelint, because Stylelint only saw 58 of the 292 text sizes. In the same CI, the Storybook components are compared with their reference screenshots.

Get the system adopted

The goal is for every contributor to be able to use it without me. The Parenthèse Storybook is public, and each component has its variants and the description of its props. An AGENTS.md file at the root of the repository explains the rules. A good part of the code is written with AI, mine and contributors’. The two studies I found point the same way. An agent that is only given a rules file uses it badly, and it does much better when it can query the design system directly45. Out of 21 open design systems studied, 20 already allow it with an MCP server6, so I served the Storybook over MCP7.

What is left

At the end, 33 hard-coded values are left out of 967, on purpose. Drawing colours are saved with each annotation, so changing them would alter memories that were already drawn. The Google logo belongs to Google. Each exception is written in the repository with its reason, like the seven decisions of the system8, so the next person who comes across one doesn’t “fix” it.