why your design system needs a contract, not just components.
most design systems fail not because of bad tokens, but because there is no enforceable agreement on how surfaces, hierarchy, and restraint actually behave in production.
Open almost any growing product codebase and you will find a folder full of well-intentioned primitives—buttons, badges, inputs, modals—paired with pages that still feel visually noisy and subtly inconsistent. The components exist, the Figma variables exist, yet every new screen drifts a little further from calm.
tokens without rules invite improvisation
A palette of forty colours is not a system; it is a menu. When every badge, callout, and filter pill reaches for a different semantic hue to claim importance, nothing on the screen feels anchored. A real design system contract specifies not just what exists, but what is forbidden.
Hierarchy works best when it is earned through spacing, typography, and ink opacity—not by painting every interactive element a louder colour.
what a good contract looks like in code
When I built model-ui and tokenized systems for products like Teekeh and Ìsuna, three constraints made the biggest difference between a loose component kit and a cohesive interface:
- One ink ramp for hierarchy: Express primary, secondary, muted, and hairline states as opacity steps of a single ink on paper so light and dark modes preserve exact contrast ratios.
- Explicit surface roles: Decide ahead of time which routes live on warm workspace paper and which live on high-clarity reading surfaces.
- Typed configuration over scattered constants: Validate brand metadata, typography, and theme tokens at the edge with a schema so components stay pure and predictable.
When those rules are encoded directly in your stylesheet and TypeScript contracts, both human engineers and AI coding agents stop guessing—and start shipping interfaces that feel unmistakably intentional.
Tunde A.
The point about palettes acting like menus instead of systems hits hard. Moving hierarchy to opacity steps cleaned up our dark mode overnight.
Maya K.
Encoding what is forbidden directly into the config schema is especially smart when working alongside coding agents.