Loopwise Design System
One switch. Every screen.
A design system I made for a B2B workspace where teams plan, assign and ship. Every value is a token, so Dark mode costs nothing. This page is built from it: try the switch at the top.
Token architecture
Components never touch a raw color
Three layers: primitives hold values, semantic tokens name a role, components use only the roles. Dark mode is the same component with its roles pointed at different primitives.
slate/0slate/900color/bg/surfaceslate/900slate/50color/text/primaryslate/200slate/800color/border/defaultviolet/600violet/600color/bg/brand
The same frame, one mode switch
The example screen in Figma, built only from instances. Setting its Color collection to Dark re-themes all of it. Nothing is recolored by hand.

LightDarkAccessible by default
17 of 17 pairs pass, in both modes
Every text and background pair the components use, measured in Light and Dark. WCAG AA asks for 4.5:1 for body text; the line marks it. The tightest is white on the dark brand hover, at 4.7.
text/primarybg/surfacetext/secondarybg/surfacetext/tertiarybg/surfacetext/brandbg/surfacetext/primarybg/canvastext/secondarybg/subtletext/on-brandbg/brandtext/on-brandbg/brand-hovertext/on-brandbg/danger-solidtext/inversebg/inversetext/brand-inversebg/inversetext/brandbg/selectedtext/successbg/successtext/warningbg/warningtext/dangerbg/dangertext/infobg/infotext/on-accentbg/accent34 components, 235 variants
Change one token. Watch everything follow.
These are the components, coded from the same tokens. Switch the mode or swap the brand primitive: one value changes, and every component that uses its role follows.
Text Field
Selection
Badge
Stat Card
Table
LOOP-1042Write launch checklistIn reviewSRLOOP-1038Pricing page copyDoneMKLOOP-1047Onboarding emailsAt riskJDAlert and Toast
Progress and Spinner
Avatar Stack and Menu
Loopwise UI
Then into code, on shadcn and Radix
Loopwise UI puts the tokens on shadcn, the Radix version, in a Next.js and Tailwind app: Button, Tabs and Dialog with every state, in Light and Dark. Below they run on the same Radix primitives, so try them, and try the mode switch too.
--primary: var(--lw-color-bg-brand);--primary-hover: var(--lw-color-bg-brand-hover);--destructive: var(--lw-color-bg-danger-solid);--ring: var(--lw-color-border-focus);--lw-dialog-enter: var(--lw-duration-base) /* 200ms */;--lw-dialog-exit: var(--lw-duration-fast) /* 120ms */;- shadcn names point at Loopwise tokensAny shadcn component added later is on brand straight away.
- Hover and pressed are named tokensDesigned for each theme and checked for contrast, not primary/80.
- A loading button keeps its focus and widtharia-disabled instead of disabled, and the label stays in place, so nothing jumps.
- One sliding tab indicatorIt shows where you came from. The bold width is reserved, so neighbors never move.
- Dialog opens in 200ms, closes in 120msThe user has already decided to leave. Its motion has its own tokens.
Still open: motion tokens, button loading and tab focus and disabled states are in code but not in Figma yet, and screen readers, Safari and Firefox are not tested.
Version 0.1.0, complete
Foundations, components, documentation on every page, and one example screen in both modes. The library QA script reports zero issues on it.
- 195
- tokens in 6 collections
- 34
- components
- 235
- variants
- 64
- icons
- 22
- text styles
- 0
- QA issues
Five principles
- 01
Tokens first
Components bind every fill, stroke, gap, padding, radius and height to a variable. Nothing is a loose value.
- 02
Dark mode for free
Components use semantic tokens only, so switching the Color collection re-themes any frame.
- 03
One component, many states
States and sizes are variants; icons and text are properties. Nobody detaches to change something.
- 04
Accessible by default
Text pairs pass WCAG AA in both modes, focus is always visible, status never relies on color alone.
- 05
Named for people
Button, Badge, Page Header: the words the team already uses, with variants that read Property=Value.
Designed by me, produced with Claude
I set the brand, the token architecture, the component APIs and the standards, and wrote them down as rules. Claude built the file to those rules, one call at a time, and every release ends with a QA script and a Changelog row. The same way of working I use on Kinnect’s design system, here in a brand of my own.