Inspira
Rules before the mandate
Role
Senior Product Designer · design system owner
Scope
Audit, Governance, Design rules, Rituals, Measurement
Team
solo · advisors: my manager, the CTO and two engineers
01 — The product
Inspira is a Brazilian legal tech company. Brisa is its design system: one token layer for several brands, a Figma library, and a UI package in the monorepo that holds the company's frontends. For most of its life, every screen passed through one visual designer. In 2026 that stopped being true. The company went AI-first, and dozens of people started building interfaces with AI. Nobody owned the system they were all building on.
02 — The problem
In July, inconsistency kept coming up as the problem, from different rooms. A designer pulled the tokens from the repository, couldn't tell real ones from legacy ones, and decided it was faster to do it by hand. An engineer put it plainly: on small screens, “it’s not ugly, it’s broken”. Two people had already declined to own the system. It wasn't on the design roadmap, and I wasn't on that squad. On July 29 I brought it to my own team anyway. I proposed three roles: I'd own the rules, someone with monorepo experience would own operations, and an AI reviewer would guard every pull request. The team lead bought it on the spot. The mandate came a month later, when my manager formalized a design system squad.
03 — The investigation
The audit I ran it with AI agents in parallel and checked a sample by hand. - Figma library: 220 published components, 94 of them marked deprecated in the name; - Code package: 64 components, 14 of them linked to Figma; - Production: no screen used the system's semantic names. Every color was a raw value, and the theme file held 90 hand-written hex codes. The scoreboard I wrote a script that counts every place in the code that uses a raw color or a legacy name instead of the system. Same input, same number, on any checkout. The first month taught me the most The count went up, not down. A teammate's cleanup removed almost 700 occurrences in about a week, and product work kept adding new ones anyway. Cleaning up after the fact wasn't going to hold. The root cause wasn't careless people The design system said, on purpose, that it wouldn't set spacing or shadows. The AI read that as permission. The shadow scale had been deleted from Figma and never recreated, so every agent invented its own.

04 — The diagnosis
Three things the audit made clear. 1. What the system doesn't say, the AI makes up. Silence isn't flexibility. For an agent, it's a blank to fill. 2. A rule has to live where the work starts. Cleanup is a treadmill. Rules belong in the code, in files agents read before they write, and in review before the merge. 3. Count what reaches the screen. Renaming a color isn't progress. The metric only moves when a canon token lands in code a person will see.

05 — What we didn’t ship
Who owns the system. I could wait for a formal mandate, set up a central group to approve every change, or split it into three roles: a normative owner for the rules, an operational owner for the code, and an AI reviewer on every pull request. I chose the three roles, with me on the rules, starting before the mandate. Cost we accepted: the operational role still had no owner months later. Block, or warn. Blocking every pull request that drifted from the system would have stopped the product team. I adopted the CTO's position: warn first, log the debt, fix it later. The review bot follows the same idea: it only checks changed lines, never lets the count go back up, and advises before it blocks. Cost we accepted: known debt stays in production. One shadow, and who picks it. There were four finalist shadows, and I had a favorite. I put it to a vote instead of deciding alone. It closed 3 to 1. Then I posted the final rule with a window for anyone to contest it. Nobody did. Cost we accepted: a week of back-and-forth, and the chance that my favorite would lose. What the scoreboard counts. Two versions of the script couldn't reproduce the August–September series. I reset the baseline to 0% on October 1, by design. Cost we accepted: the before-and-after chart.
06 — What we shipped
Rituals - A design system forum. At the first one, everyone invited showed up and five decisions were aligned. One of them was a teammate's proposal: write the docs as memory for AI agents, one Markdown file per component; - A visual forum for the calls that need eyes. It set three rules: shadow only on floating surfaces, orange only for notifications and illustrations, and a solid accent color for primary actions, replacing the old sky blue; - The design sync, revived in a new format. The old one died waiting for agenda items. The new one doesn't need any: five minutes of show-and-tell per person, with the cadence decided in the room. How I run them - A forum without a decision is a status report; - Show what shipped and the measured number before asking for anything; - If the delay is mine, say it first; - Nobody should have to say yes in front of everyone. Whoever needs to think gets it in writing. Rules in the code Each in its own pull request: the canon tokens, one shadow, a split color ramp, the flat accent. Component docs that say when to use something and when not to. Rules per folder that AI agents read before they write. Review with teeth On the teammate's cleanup, I left 16 comments, 11 of them blocking. One fixed a badge used in 24 files, from 2.01:1 contrast to 13.67:1. Today a check on every pull request fails any change that adds a hand-written color. A metric the team owns The scoreboard became the design system's number in my manager's biweekly metrics review.
Outcome
−19%
hand-written colors in production code, from 296 to 239 between October 1 and 22.
Most of it came off in two days, in five pull requests: one removed the old component library, and four of mine swapped hand-written colors for tokens, shipped five days early to beat a release freeze. Uses of the canon went from 8 to 336 in the same weeks. The bigger goal, about 30% of color code on the canon by the end of the quarter, was at 4.4%: most of what's left is legacy names, not raw colors.
07 — Looking back
I'd put the gate in before the cleanup. For weeks, every cleanup was followed by new hand-written colors from product work: the count went from 296 to 310 before it fell. The check that blocks new ones only landed in October. Putting it to a vote was the point. A rule I picked alone would have been mine. A rule the team voted on, with a window to object, belongs to the team. What spread. Íris, an internal communications product, now builds from design system components in Figma, not buttons hard-coded in the app. The CTO moved two more frontends into the monorepo on the shared UI package and contributed a component back. Design system drift became one of the fronts of the toolkit's code review. A product designer started a catalog of standardization rules. The next version of the builder portal is built on Brisa.







