Stableflow
Design System
Tokens and primitives for dense USDC flow intelligence. Every token switches with the theme, so flip it from the sidebar to compare light and dark.
Semantic tokens
Flow semantics
Typography
Surfaces and elevation
Page · surface-0
Panel · glass
Well · surface-2
surface-3 · selected- --surface-0Page canvas
- --glassPanels, header, sidebar
- --surface-1Cards, popovers, dialogs
- --surface-2Wells, inputs, hover
- --surface-3Selected and active items
Elevation
Each theme defines its own --elevation-* values: dark needs deep shadows to register, light keeps them faint so surfaces separate by lightness instead.
Protocol categories
Chains and assets
Component primitives
Layers
- z-raised10
- z-overlay50
- z-modal100
- z-popover200
- z-tooltip300
- z-toast400
Stack with these utilities instead of raw numbers. Dialogs use z-modal for both overlay and content, so the overlay always covers the sticky sidebar.
Motion
Entrances only; everything is disabled under prefers-reduced-motion.
Usage rules
Use semantic tokens like bg-card, text-foreground, border-border, and ring-ring.
Nest surfaces in order: panels on the page, surface-2 wells inside panels, surface-3 for the selected item.
Route new colors through tokens.css before using them in components or charts.
Use component primitives for panels, KPIs, live rows, tags, entities, and amounts.