Design systemFoundations
Shape and surface
Corners soften from the inside out, and surfaces separate layers without heavy borders.
Sourcesrc/styles/app.css
rounded-full9999pxrounded-tile20pxrounded-panel24pxrounded-card28pxsurfaceCards. Flat in dark, white with a soft shadow in light.
glassFloating chrome: header, popups, menus.
bg-panelFlat fills such as pills and soft buttons.
bg-insetChips and fields that sit on a card.
Guidelines
Do
- Use a smaller radius for elements inside a card.
- Use glass only for chrome that floats over content.
Don't
- Write rounded-[28px]; use rounded-card.
- Nest cards inside cards inside cards.
Accessibility
- In high contrast mode, surfaces stay separated by edges, not shadow alone.