Tessera UI
Design system and component library
Design tokens and 30 accessible React components that re-brand from one colour, with every accessibility and size claim measured on the build.
Concept project · fictional brand and sample dataApp in English
- 200
- automated tests passing
- 0
- axe violations across all stories and docs pages
- 53/53
- keyboard interactions from the WAI-ARIA practices, all tested
- 1.0 kB
- median gzipped JS per component, tree-shaken
The brief
Product teams rebuild the same buttons, inputs and dialogs in every app, each with its own shade of blue, its own focus ring and its own idea of what "accessible" means. Re-branding means touching hundreds of files, and nobody can say what a component costs in bundle size or whether its keyboard support is complete.
What I built
- 154 design tokens (colour, type, spacing, radius, shadow, motion) built with Style Dictionary into CSS variables for light, dark and system themes
- 30 themeable components, from Button and Select to DatePicker, Dialog, Menu and a sortable Table, that only read those variables
- Theming playground: pick a brand colour, radius, typeface and density, see the whole UI re-theme live and export the CSS
- Contrast report for every derived colour pair, with an AA guard that adjusts shades that would fail
- Storybook 8 with 114 stories, controls, an a11y panel and forced hover and focus states
- Docs site in a Bauhaus poster style: live previews, props tables from the TypeScript source, keyboard maps and ARIA notes
The decision that mattered
Every visual decision is a token
Components never hard-code a colour, a radius or a duration; they read CSS variables generated from one token source. That is what lets the theme generator turn a single brand colour and a radius into a complete theme, and what lets the tests check AA contrast for 18 semantic text pairs and 3 non-text pairs in both themes on every build, instead of trusting a designer's eye.