Beyond Design System
The system the portfolio is built with.
This library documents the real tokens and the real components that render this website. Nothing here is a mock-up: change a token and the whole site, including this page, changes with it.
Three connected experiences
The same tokens, components and configuration serve all three. There is no separate copy of anything.
Discover
System Anatomy: the cinematic exploded view on the homepage that shows the five layers a screen is built from.
Understand
This library: foundations, the token dependency explorer, component documentation with live playgrounds.
Experiment
System Studio: inspect the live site, select real components and change the system that renders them.
Design philosophy
A portfolio for a design-systems designer should not describe a system; it should run on one. The site is built directly in code, so the system is the implementation, not a Figma file that code approximates. Where a decision appears below, it is a decision made in this repository and recorded in the project's decision log.
Design principles
- One source of truth. Tokens live in JSON. CSS variables, the Tailwind theme, the contrast checker, the Studio export and this documentation are all derived from it.
- Roles, not values. Components read semantic and component tokens, never raw primitives. A theme or an accent is a remap of roles, not a rewrite of components.
- Variants are tokens. Preset, accent, typography, density, radius, button and card styles are token overrides keyed by a data attribute, so a variant works everywhere without bespoke CSS.
- Documentation shares the implementation. The playgrounds render the same component models the site renders. A documented property exists because the component supports it.
- Safeguards over freedom. Studio offers curated options validated at build time (contrast across every theme and accent). The inspector is isolated from the system it edits, and reset is always reachable.
- Motion is governed. Duration, easing, distance, scale and parallax speed are tokens, three motion tiers (reduced, subtle, expressive) and six Studio styles scale all of them.
System architecture
How a token becomes pixels, as the code actually works today.
src/tokens/*.tokens.json source of truth (DTCG-style JSON)
│ scripts/build-tokens.mjs validates references, compiles
▼
CSS custom properties + Tailwind theme + token index + downloads
│
├── semantic roles ── light / dark remaps
├── component tokens ── what components read
└── variants ── accent · type · density · radius · button · card · preset
▼
Astro components + React islands ──► portfolio · this library · System Studio
▲
System Studio store (data-* on <html>) ── the same attributes drive every page| Tier | Count | What it holds | Who reads it |
|---|---|---|---|
| Primitive | 125 | Raw values: palette, type scale, spacing steps, durations, easing | Semantic and component tokens only |
| Semantic | 112 | Roles: color.bg.page, space.section, motion.duration.reveal. Light and dark are remaps. | Components, pages, GSAP scenes |
| Component | 83 | Per-component decisions: button.size.md.min-height, card.shadow | Component CSS |
| Variants | 290 | Overrides selected by data-accent, data-card, data-radius and so on | Studio, presets, per-instance data-variant |
Relationship to the live portfolio
Each documented component is the component the portfolio uses. Where it appears today:
| Component | Used on the portfolio | Docs |
|---|---|---|
| Button | Hero actions · Studio section actions · Footer actions · Header: Customize this website · System Anatomy mock | Open |
| Card | Project panels in Selected Work (cinematic) · System Anatomy component plane | Open |
| Navigation | Site header on every page · Design-system documentation header | Open |
Use Inspect Mode in System Studio to select any of these on the live site and see its tokens and properties.
Implemented and proposed
This library documents what exists. Everything proposed is labelled and has no navigation entry.
implemented
- Foundations: colour, typography, spacing and geometry, iconography, motion
- Token explorer with dependency chains and live token editing
- Components: Button, Card, Navigation, each with a playground
- Accessibility, resources and downloads
- System Studio editor and Inspect Mode for the three components
proposed
- Components: inputs, checkboxes, radio buttons, switches, badges, tabs, tooltips, dropdowns, dialogs
- Patterns: forms, navigation patterns, data display, feedback, empty states, content layouts
- Presets: Brutalist, Modern Studio
- Per-component token editing in Studio
No adoption figures, team processes or governance workflows are claimed here, because none are being described: this is a single-author system for one product.