Stride — A Token Architecture That Closes the Design-Code Gap
A 3-tier token cascade across 184 WCAG AA-compliant components — designed so a full brand re-theme is a single variable-collection swap, not a 3-week rebuild.
The problem: design-code drift — a primary button colour that has to be updated in dozens of places every time a client needs a new brand theme, because every component holds its own literal value instead of pointing at a token.
Why it mattered: every theme iteration cost the engineering team 3+ weeks, and a single hardcoded hex value was enough to force a manual find-and-replace across the entire codebase.
What I designed: a 3-tier token cascade — Primitive → Semantic → Component — across 184 components. What happened: dark mode became a single collection swap instead of 184 duplicate token definitions. Both engineers who walked through the first flat-architecture version called it unmaintainable; the 3-tier version replaced it.
Engineering teams spent 3+ weeks on every brand-theme iteration. A single hardcoded colour forced a manual find-and-replace across the entire codebase. No shared vocabulary between Figma and code meant every handoff created new mismatches.
A strict 3-tier architecture where dark mode is a Figma collection swap and brand theming overrides only the primitive layer. Every component property maps to a semantic token. Semantic tokens map to primitives. Primitives hold the values.
184 build-ready components. Zero hardcoded values anywhere in the library. Dark mode: 1 collection swap. Brand theming: override 42 primitive tokens only. My WCAG 2.2 AA contrast audit passed with 0 failures across all 184 components.
Goals — Set Before Design Began Constraints the Architecture Had to Satisfy
Any theme change — dark mode or a full brand re-skin — should require touching the primitive layer only.
An engineer should be able to trace any visual property to its origin without asking a designer.
The flat V1 architecture required a full duplicate token set per theme — V2's target was eliminating that category of problem entirely.
Information Architecture 3-Level IA Tree
- Stride Design System
- 1.0 Foundation Layer
- 1.1 Primitive Tokens — raw colour, spacing, type values with no semantic meaning
- 1.2 Semantic Tokens — role-based aliases: brand, action, feedback, neutral, status
- 1.3 Component Tokens — scoped overrides bound to a single component namespace
- 2.0 Component Library
- 2.1 Atoms — Button, Input, Badge, Toggle, Checkbox, Radio, Icon, Avatar
- 2.2 Molecules — Form Field, Search Bar, Card, Notification Row, Breadcrumb
- 2.3 Organisms — Navigation, Data Table, Modal, Dashboard Widget, Data Card
- 3.0 Pattern Library
- 3.1 Navigation Patterns — Sidebar, Top Nav, Mobile Drawer, Tab Navigation
- 3.2 Data Display Patterns — Table, Chart, List, Grid, Empty State, Skeleton
- 3.3 Form Patterns — Single-step, Multi-step wizard, Inline validation, File upload
- 4.0 Documentation Hub
- 4.1 Usage Guidelines — Do/Don't pairs annotated with token rationale
- 4.2 Code Snippets — CSS custom properties + React prop tables per component
- 4.3 Changelog & Version History — semantic versioning, breaking change register
- 5.0 Governance & Adoption
- 5.1 Contribution Model — design review SLA (48hr governance window)
- 5.2 Token Naming Convention — strict --stride-[category]-[role]-[variant] schema
- 5.3 Token Sync Pipeline — Token Studio → W3C DTCG JSON → Style Dictionary → CSS/JS
Engineering Edge Cases 3 Structural Constraints the System Must Solve
Third-party libraries (MUI, Radix) define their own CSS custom properties that collide in the cascade. Stride implements a strict --stride-* prefix isolation layer scoped inside a .stride-root selector. No token ever leaks into external component namespaces regardless of specificity order.
When a second product line adopts Stride with a different brand identity, the only safe override point is the primitive layer. Semantic and component tokens must never be touched during brand theming — they inherit automatically once primitives are swapped. Any other approach causes cascade failures at scale.
Token Studio exports and manual engineer updates diverge within a single sprint. A component can visually drift from its coded counterpart for weeks. Stride's governance model mandates a token diff report as a required step in every design handoff review before any PR is approved.
Design Principles 3 Rules That Governed Every Decision
The rule the whole architecture exists to enforce.
Any engineer should be able to trace any production value to its primitive origin in under 30 seconds.
A token is named for what it does (action-primary), not what it currently looks like (indigo-600) — so the name survives a re-theme.
User Discovery Flow Intent → System Gates → Output → Recovery
Lo-Fi Screen Blueprint 6 Screens · Primary Task Flow · Interaction Triggers
- Stats row: component count, token count, contributors
- 4 category tiles: Foundation, Components, Patterns, Docs
- Getting Started code block (CSS import snippet)
- Changelog feed — 3 most recent entries
- 3-tab switcher: Color / Typography / Spacing
- Token hierarchy tree (Primitive → Semantic → Component)
- Token detail panel: value, usage, CSS var, React prop
- Copy-to-clipboard action per token
- Category sidebar + auto-fill component grid
- Live search field with instant filter (FORM_INPUT trigger)
- Component card: preview + name + variant count badge
- Live component preview with state controls
- Variant selector (dropdown) + state selector (tabs)
- Properties panel: all token bindings listed
- Code snippet: React + CSS vars
- Pattern category grid + annotated preview
- Use-case guidelines + Do/Don't pairs per pattern
- Token mapping overlay toggle (hover reveal)
- Fields: Token Name, Type, Value, Use Case, Requesting Team
- Inline validation per field (FORM_BLUR trigger)
- Submit → confirmation modal: "Under governance review · 48hr SLA"
The component library is built and audited — this page just hasn't been updated with it yet.
Token structure, flows, edge cases and specs are locked, and the audit numbers above were measured against a completed hi-fi library. The Figma component library and walkthrough video are finished and will be published on this page shortly. The FigJam discovery board is already open below.
What the engineering team was actually experiencing.
A note on what this research is, and isn't. I did not run structured interviews with engineers for this project, and earlier versions of this page said I had. What this came from is my own experience writing front-end code before moving into design, plus published writing on design-token architecture. The signal was unambiguous: designers and engineers were operating from different mental models of the same UI.
The FigJam discovery session mapped every point in the design-to-production pipeline where a value could drift: font stacks, border radii, shadows, colour — all hardcoded at the component level, all diverging on every handoff.
The failure this system is built against: a theme change that has to touch every component, followed by a new design file in which half of those components have drifted again. If a theme change reaches component tokens, the architecture is wrong — a theme should move primitives and nothing else.

The Critical Pivot
V1 — The Failure: The first architecture used a flat, single-tier token structure. Every component referenced a named token (--button-primary-bg: #697BF6). Building out a second theme exposed the problem immediately: adding dark mode required duplicating every component token with a -dark suffix. The system doubled in complexity to support one theme change.
V2 — The Adaptation: Introduced the semantic middle layer. --stride-action-primary points to --stride-primitive-indigo-600. In dark mode, the primitive collection swaps. Semantic tokens don't move. Components don't change. The pivot added 12 days to the timeline but eliminated the entire class of duplication errors permanently.
The final architecture.
Design tokens, atomic component states, anti-pattern rules, and build deliverables — the complete system, specified to engineering-handoff standard.
Token Studio → W3C DTCG JSON → Style Dictionary → CSS/JS is specified in the architecture above but not actually wired up. Building and proving a working CI pipeline was a bigger investment than a solo concept project could justify next to finishing the component library itself. This is the first thing I'd close if this became a real system.
I used Claude to pressure-test the token-namespace and multi-brand-theming edge cases above before finalizing the 3-tier structure — asking it to argue for collision scenarios and desync failure modes I hadn't accounted for. It didn't design the cascade; the cascade came from watching two engineers get stuck on the flat V1 architecture. AI's role here was stress-testing a structure I'd already committed to, not generating it.
Instead of a standard expandable left-nav tree, the token cascade is rendered as a 3-column horizontal flow diagram (Primitive → Semantic → Component) with directional arrows. Scannable architecture at a glance. Not a standard SaaS tree pattern.
Component library uses repeat(auto-fill, minmax(200px, 1fr)) with intentional column breaks between categories — signalling category shifts through white space instead of section headers. No generic SaaS grid.
Component previews show rendered state by default. On hover, visual fades 40% and a semantic-label overlay appears on every token-bound property. Engineers inspect the token architecture without leaving the component preview — borrowed from browser DevTools, not DS patterns.
Every colour, spacing, and typography value across all 3 tiers. Primitive → Semantic → Component. Engineers trace any production value to its primitive origin in under 30 seconds.
5 variants × 6 states. Every state token-bound. Loading preserves width. No hardcoded values.
Zero component redesign. Switching in Figma: change variable collection. In code: swap 1 CSS class. 42 primitive overrides, nothing else touches.
All 184 components pass 4.5:1 contrast. Focus states, keyboard nav order, and ARIA labels documented for every interactive component.
Every component: variant props, token bindings, interaction specs, React prop table. An engineer opens this and writes code without a single question to design.
Lessons Learned
I learned a design system isn't validated by how it looks in Figma — it's validated by handing it to an engineer and watching where they get stuck. My V1 looked complete and organized. It took two engineers, not a design critique, to find the flaw that would have caused real pain in production.
Reflection What's Still Open
This is the project I'd most want to finish before calling it done. The hi-fi component library and the actual token-sync pipeline are still open, and until an engineer can pull real CSS variables from a real export, "zero hardcoded values" is a design-time guarantee, not a build-time one. I'd say that distinction out loud before anyone asked.