Building Cognition
Cognition is Distyl AI's design system — the shared foundation every product implementation sits on. It exists so engineers ship faster, interfaces stay consistent, and the cost of a rebrand is one token file, not a codebase.
Why a system
Ad hoc UI compounds. Every hardcoded hex value, every one-off spacing decision, every parallel component is debt that slows the next build and the one after that.
A design system is not a deliverable. It is infrastructure. It earns its place the same way a database does — by making everything built on top of it faster and more reliable.
Three layers
- Primitives — raw values, never used directly
- Semantic — purpose-named aliases, where dark mode lives
- Component — scoped tokens referencing semantic, never primitives
Token swap, skin swap
| Surface | Token layer | Result |
|---|---|---|
| Distyl platform | Default semantic | Purple, dark mode |
| Hoover impl | Remapped semantic | Custom brand |
| Toolkit app | Remapped semantic | Neutral theme |
Use font-mono for inline technical values like --color-background-primary and var(--color-chart-1).
The moral
Never underestimate the cost of building the same thing twice.