Design system for a SaaS platform
The product covered many flows, from onboarding and purchases to an AI copilot. I turned its Figma file into a design system with tokens, components, states and Light and Dark themes, then documented it in a live site, so developers can copy it instead of guessing.
See how the system works
Every component, state and theme, live in your browser.

Project snapshot
Product: The creator community platform, a B2C and B2B product with web and mobile flows and an AI copilot. The product itself is under NDA, so you will not see its screens here. The product case study is behind an access code.
My role: Founding product designer. I designed the library in Figma, defined the tokens and wrote the usage rules. For this case I also built the code version: tokens, components and a small documentation site.
Scope: Design tokens, component library, states, Light and Dark themes, documentation, accessibility checks, developer handoff.
Why a design system
The platform is wide. The Figma file has separate pages for web, onboarding, purchase flows, notifications, menus, an AI copilot and wizard, shop and product, people, profiles and earnings. Those flows use the same buttons, fields, cards, tabs and tables again and again.
A product like that needs one place where each of those parts is defined once. Three reasons drove the work:
- Designers draw from the same parts. A new screen starts from components, not from a copy of an old screen.
- Developers get names and values, not screenshots. Each colour, size and state has a name they can paste into code.
- Both sides use the same words. A token called buttons bg/Primary CTA/bg hover in Figma becomes --buttons-bg-primary-cta-bg-hover in CSS.
What is in the system
These counts come straight from the Figma file.
- 432Figma variables in six collections: colour, alias, spacing, radius, typography and components
- 44text styles: Inter in eleven sizes and four weights
- 68 + 6colour styles and effect styles (shadows and blurs)
- 68component sets with variants and states
- 2themes. Component colours hold a Light and a Dark value
Step 1 · Structure the tokens
Three layers of tokens
A colour that is only a hex value tells nobody where to use it. So the tokens are Figma variables, grouped in six collections and built in layers, from raw values to meaning to parts.
- Palette75 raw colours as Figma variables: a grey scale, primary blue, secondary pink and a set of accents. Also 10 spacing steps and 6 radius steps. The values never change with the theme.
- Meaning45 alias variables that say what a colour is for, such as Neutral, Information, Error and Warning. They point at the palette.
- Component tokens290 variables for the parts of components, such as a button fill in hover or an input border when disabled. Each one holds a Light value and a Dark value.




Step 2 · Components and states
Every state is drawn, not implied
The library has 68 component sets: buttons, form controls, tabs, tags, cards, navigation, a data table, and loading, empty and error states. A developer cannot build a hover state from a default state, so each interactive part shows its states: default, hover, active and disabled. The same table exists in Light and in Dark, side by side.

A screen is not only its happy path. The library also covers the moments around it: skeletons while content loads, empty states for “nothing yet” and “no results”, and alerts and error pages for failures. Each is a component with variants, in Light and Dark.

- Themes are a mode, not a copy. Switching from Light to Dark changes a variable mode, so no component is redrawn.
- Gaps are visible. Where a style has no separate pressed design, the page says so and treats Active like Default, instead of inventing one.
Step 3 · Document it where designers work
One page that explains the whole system
A library nobody can read is only a pile of components. So the file has a “Design system” page that works as a handbook: a cover, colour, typography, spacing, radius and effects, the components in Light and Dark, accessibility with usage rules, and a developer handoff section.

Checking the library this way found things the eye misses. The Error state colour was white instead of red, which I fixed. Two pairs fall short of the contrast targets: the link blue on white (4.1 to 1) and the grey icons (2.5 to 1). I left them visible in the table instead of hiding them. They are next on my list.
Step 4 · Make it usable in code
From Figma names to CSS names
Developers should not have to retype values from Figma. Every token has a matching CSS name, and a small script turns the values exported from Figma into one tokens file. Change a value in Figma, re-export, run the script, and every component updates.

The components exist as plain HTML and CSS that use only those tokens. There is no framework and no build step, so developers can take them as they are, or translate them into whatever the product uses. Each example on the site shows the code behind it, with a Copy button. A switch in the header changes the theme, and the same code works in both.


Choices I made
- One source of truthFigma variables are the source. The CSS is generated from them, not typed again by hand.
- Names that survive the tripThe Figma name and the CSS name follow one rule, so a designer and a developer can find the same token.
- Show the gapsMissing states and weak contrast are listed on the page. A system that hides its gaps cannot be trusted.
- Accessible by defaultNative elements, a visible keyboard focus ring, and no information carried by colour alone.
Try the design system yourself
Switch between Light and Dark, press the buttons, open the code behind each example.
