Design Systems

Perspective Design System

A themeable React component library with design tokens generated from Figma variables.

Role
Designer, solo developer
Foundations
Three-tier tokens · light and dark modes · swappable themes
Tools Used
Figma, Storybook, React, TypeScript, Tailwind CSS, Vite
Core challenge

Keep Figma and code from drifting apart: token names match the Figma variables, the token files are generated from Figma, and re-theming never touches a component.

Tokens

Three tiers: primitives (raw values), component tokens (--token-*, where dark mode lives), and components, which read tokens only. Names match Figma, so surface/page becomes --token-surface-page-default.

Theming

data-theme sets the brand and data-mode sets light or dark. A theme is one small CSS file that overrides primitives, and every theme appears in the Storybook toolbar. A teal theme ships as an example.

Components

Button, input, chip, checkbox, radio, switch, dropdown, card, table and icons, each documented in Storybook with a consistent variant API.

Tooling

React, TypeScript, Vite and Tailwind v4, with Storybook (accessibility addon, theme switcher), Vitest and Chromatic. Source on GitHub.