coss ui | Design system for Figma by Rivi Thusharacoss ui | Design system for Figma by Rivi Thushara

coss ui | Design system for Figma

Portfolio project
Rivi Thushara
Free coss ui kit for Figma
Free coss ui kit for Figma
Role: Product designer · Type: Personal project, free community kit · Source: coss.com/ui (open source)
Unofficial. coss ui is built and maintained by the coss team. I rebuilt it in Figma as a free kit. Not affiliated with or endorsed by coss.

Overview

coss ui is an open-source component library built on Base UI and Tailwind CSS. It ships as code. There was no Figma file to design with.
So I built one. The whole system, one to one, in a single Figma library. Free for anyone.

The challenge

Code and Figma drift apart fast. Colors get eyeballed. States get skipped. Examples get pasted in as loose frames nobody can reuse.
I wanted the opposite. Same tokens as the code. Same states as the browser. Same spacing, down to the pixel. Everything a component.

Process

1. Tokens first.
545 variables in four collections: primitives, tokens, dimensions and typography. Every colour is an alias to a primitive, with a light and a dark value. Spacing and radius are variables too, so padding and corners are bound, never typed.
The result: one login block, two modes, zero duplicated frames. Flip the mode and every surface, border and text color follows.
The same login block in light and dark, driven by one set of tokens
The same login block in light and dark, driven by one set of tokens
2. Every state you can reach in code.
For each component I opened coss.com and clicked through it. Hover, focus, invalid, disabled, loading, open. If the real one can reach a state, the Figma one has it as a variant.
coss calls its examples particles. There are 940 in the kit, each one a component with the same name and ID as on coss.com. A destructive outline button, a status dot that says Online, a like button with a count, a filter group with a multi-select. Drag one in from Assets and pick the state from a menu.
Then I measured them. Every particle checked against the live site for padding, gaps and height, and fixed until it matched.
Button particles from the kit, each labelled with its coss ID
Button particles from the kit, each labelled with its coss ID
3. 68 charts, all on chart tokens.
Area, bar, line, pie, radar and radial, plus tooltips. Each chart is a variant, so switching from an interactive area chart to a radial one is a dropdown. All colored with chart tokens, so they switch mode with everything else.
Interactive area chart, radial chart with labels and interactive bar chart
Interactive area chart, radial chart with labels and interactive bar chart
4. Chat, down to the read receipt.
A full conversation pattern. Presence in the header, a Today divider, a new messages marker, replies, reactions, a typing indicator and delivery ticks. The composer has every state, and the emoji picker opens right where you react.
Chat window with replies, reactions, emoji picker, typing indicator and composer
Chat window with replies, reactions, emoji picker, typing indicator and composer
5. Components in context.
Components on their own only tell half the story. So the kit ships with ready-to-use examples. An alert, a message composer, a theme picker with visual options, a code snippet, an accordion. Real layouts you can drop into a screen and edit.
Plus 27 blocks for login, signup, sidebar and a full dashboard, built from the same components. Change Button once and it updates everywhere.
Examples from the kit: alert, message composer, theme picker, code snippet and accordion
Examples from the kit: alert, message composer, theme picker, code snippet and accordion

The solution

One Figma file that mirrors the code.
74 component pages, each with a Particles and a Components section
940 particles, every one a component
545 variables with light, dark, desktop and mobile modes
68 charts and 27 blocks
1,512 Phosphor icons in six weights
4,474 prototype interactions for hover, press and open

Outcome

From a library that only lived in code, to a Figma kit you can design with on day one. Drop in a block. Switch it to dark. Pick a state from a menu.
It's free. Grab it from my Contra products. If you build something with it, I'd love to see it.

6 likes · 9 views · Nov 21, 2026

The open-source coss ui, rebuilt one to one in Figma. 940 components, 68 charts, 27 blocks. Light and dark. Free.

Tags