Ngưu Nguyễn
Tiếng Việt

← Projects

Marram - Design System

Marram, a React design system I rebuilt in public in six weeks, because the systems I ran at previous companies are under NDA. Open source, MIT, early stage.

At previous companies I built and ran the design system, led the design team that used it and advised clients who asked for changes. Those systems are under NDA, so I rebuilt one in public. The key decision was to make code the only source of tokens and let Figma follow, so design and code cannot drift apart again.

Before the system, everyone designed in their own direction

On every team I joined, the design system did not exist yet, and the cost showed up in the work, not in a report.

What the public rebuild shows

At the companies I have no numbers I can publish. What changed was visible: the team designed in one direction, and output stayed even from one designer to the next. For Marram everything is measured.

Components and patterns
62
Entry points in package.json on main, 28 Oct 2026
Story tests passing
1,956
Chromium, Firefox and WebKit, CI run of 20 Oct 2026
Figma component pages
45
Each with every variant and state, imported from code on 19 Oct 2026
Primitive tokens
288
Generated from tokens JSON, aliased by 130 colour variables in Light and Dark

I set the direction and the rules; AI wrote most of the code

My front-end skills are basic. AI agents wrote most of the code, under a spec, a definition of done and a workflow I set, and I reviewed and decided every change.

How one component travels from spec to release

Combobox, a text field that filters a list as you type, appears in every decision below. Every component follows the same path:

Tokens sit in three tiers: primitives hold values (a blue at step 600), semantic tokens name a purpose (--primary), and components read only semantic tokens.

Decision 1: ship 31 components first, not 45

Decision 2: a borrowed spec, and every deviation written down

The checklist is also the contribution model. A fix for one component becomes a rule for the group. Combobox highlights the matched text with bold and an underline, not colour, because colour lost contrast on the selected row. Its four alignment and focus rules then moved into the shared input styles, so every other input follows them.

Decision 3: code owns the tokens, Figma follows

Decision 4: a failing pull request can no longer merge

When AI writes most of the code, the gate holds quality, not the reviewer’s memory.

How the system runs

What I left out

The systems I built at previous companies: their names, clients, screens and the industries narrow enough to identify them. Every image and number on this page comes from Marram.

What I would do differently