One place to see the UI
Teams at DNSimple kept building screens that didn't quite match the rest of the app. In 2024 I put the components the app already used in one place anyone could browse. Two years later, it's where new screens start, whether a teammate or an agent builds them.
- 2024Added Lookbook inside the app, then cards, modals, dropdowns, buttons, layouts and tabs
- Grew to 16 previews in one alphabetical list
- Interactive Vue components moved in, each with a preview
- Reorganized, and made the rule for people and agents
- About 55 components, and new screens start there
Today
The problem
I was the UX reviewer at DNSimple, and I moved between teams. Early in a project I'd wireframe the flow while it was still being shaped. In the middle I'd build a component a team needed. At the end I reviewed the work through acceptance testing and shipped fixes.
In those reviews I kept seeing the same two things. Some teams didn't know what to build, because nothing showed them what the app already had. Others found something close on another page, copied it, and changed it a little. Each copy looked fine on its own. But every small change pulled those pages a little further from the rest of the app.
What I did
In May 2024 I added Lookbook, a tool that shows each of a Rails app's components on its own page, with its variations. I mounted it inside the app, so every preview used the app's real styles and couldn't fall out of date with them.
Then I filled it with what we already had: cards, modals, dropdowns, buttons, layouts and tabs. I wasn't designing anything new. I wanted the tokens and components the app actually used written down in one place, so a team could see what existed before building something of its own.
For about two years it grew slowly. By spring 2026 it held 16 previews in one alphabetical list.
Moving Vue into the catalog
Between January and July 2026 I removed Vue from the app. The interactive components I rebuilt, like the expandable table, the filter select and the resource selector, each went into the styleguide with its own preview. So removing a framework also filled the catalog.
- Vue component About 160 lines, plus its own build
- Stimulus controller About 170 lines, on the server-rendered form
- Styleguide preview Three scenarios: default, all scopes, read only
When it became the rule
In May 2026 we reorganized the styleguide. Shared building blocks went at the top, and pieces used in only one part of the product went under that part: the customer app, the admin, and the marketing site. We wrote a guide for contributing to it.
Design System
The building blocks
- Tokens
- Buttons
- Forms
- Selects
- Tables
- Grid
- Intents
Components
Shared across the app
- Callouts
- Dialogs
- Segmented nav
- Upgrade prompts
Subapps
Only where they're used
- App: cards, contact select, resource selector
- Admin: tables, side sheet, pagination
- Site: cards, product demos
The change that mattered most was one line in the app's instructions for coding agents: build UI from the styleguide instead of inventing markup, and add or update a preview whenever you change a component. From then on, new UI started in the styleguide, whether a person or an agent wrote it. Half a dozen teammates added previews in the months after, and it grew from 16 to about 55 components.
The drift didn't fix itself, though. That summer, more than 80 files still built cards by hand with an old .action-card class, even though a card had been the first thing in the styleguide. A teammate replaced the hand-built cards with the card component, and I removed the old class from the component and the 35 files still tied to it.
Building with agents
In October 2026 I rebuilt DNSimple's marketing pages with agents: the DNS hosting and domain registration pages, and How DNS works, which moved into the app. The agents picked the right components from the styleguide most of the time, and I only had to suggest another option for the odd outlier.
I didn't see that coming in 2024. I wrote the catalog for people, and it turned out to work as a brief for agents too.
Outcome
The styleguide is still where new UI starts. This autumn, three teammates shipped features built on it: limiting new records when a zone is full, choosing a contact when reconnecting a domain, and keeping RSA keys on a DNSSEC zone.
- ~55 components
- dnsimple-app
- 2024–2026
- Lookbook, mounted in the app