Skip to content
Projects

Component Library

A small, accessible component library shared by three internal PHP apps, with its own tokens and docs.

Grid of buttons, inputs and badges from the library in their default states

Overview

Year
2024—2025
Role
Frontend lead

Challenge

TODO: Three internal apps had each grown their own buttons, forms and colours. The same control behaved three different ways, and accessibility fixes had to be made three times.

Solution

TODO: One set of design tokens and a dozen components, each with documented states and keyboard behaviour, published as a package the apps could adopt one screen at a time.

Outcome

TODO: Describe adoption honestly: how many screens moved over, which accessibility issues disappeared, and what the teams said about it.

Stack

Language
TypeScript · CSS
Framework
Web Components · Storybook
Tooling
Vite · Vitest · Playwright · Changesets

Design system

TODO: How the token layers were split between palette and semantic names, why spacing was a 4px scale, and the one component that took longest to get right.

  • Ink#1d1d1f
  • Accent#0b57d0
  • Success#1a7f37
  • Warning#9a6700
  • Surface#f6f8fa

TODO: The quick brown fox jumps over the lazy dog

  • Button component in filled, tinted and plain variants, each with hover and focus states
  • Form field showing its label, hint text and an inline error message
  • Token reference page listing colour and spacing values