Foundations
Radius & elevation
1 radius knob drives 7 steps. 3 shadows, with heavier versions in dark mode.
Radius
Every step is computed from --radius. Change it in a theme and the whole product gets rounder or sharper together.
rounded-sm
radius × 0.5
rounded-md
radius × 0.75
rounded-lg
radius
rounded-xl
radius × 1.5
rounded-2xl
radius × 2
rounded-3xl
radius × 2.5
rounded-4xl
radius × 3
[data-theme="forest"] {
--radius: 1rem;
}Elevation
Shadows are 2 layers, a tight one for the edge and a soft one for depth. Dark mode uses stronger opacity so they stay visible on dark surfaces.
shadow-sm
Inputs, small cards
shadow-md
Cards, popovers
shadow-lg
Dialogs, floating panels