Design system
The parts Sangria is made of
Tokens, primitives, patterns and whole screens. The primitives are the app's own files, imported rather than rebuilt, so if one renders wrong here it renders wrong in the product.
- primitives
- 25
- primitives
- workspace themes
- 22
- workspace themes
- modes, both checked
- 2
- modes, both checked
Explore
Tokens
Semantic colour, surfaces, the accent helpers, type and every workspace theme.
Components
Every primitive from the app, each variant and state, rendered from source.
Patterns
Sidebar, message row, composer, toolbar and cards: how the primitives compose.
States
Rest, hover, selected and focus matrices across themes and both modes.
Wireframes
Whole screens at phone and desktop widths, stubbed.
Every workspace theme
Each theme's rail colour and its accent, read from shared/themes.ts.
Classic
Onyx
Aurora
Nebula
Forest
Ember
Slate
Rose
Monokai Pro
Dracula
Nord
Solarized Dark
Gruvbox Dark
One Dark
Material
Catppuccin Mocha
Tokyo Night
Night Owl
GitHub
GitLab
Gitea
Claude
How this stays true
The app owns the code; this repo holds a copy so it can build on its own. Copies rot, so the copy is checked.
- Step 1
Design here first
Variants, themes and states are explored on these pages, in both modes, before the app changes.
- Step 2
Port, then re-copy
The change lands in the app, which owns the code. The files are copied back here byte for byte.
- Step 3
check:sync keeps it honest
Every primitive, the theme file, the accent helpers, NativeSelect, the Tailwind config and the token layer are compared with the app. Any difference fails.
bun run check:sync