Skip to content
العربية
Foundations

Spacing, radius, layers

Radius, density, elevation and z-index.

Radius

rounded-field · 12px
rounded-card · 24px
rounded-panel · 28px
rounded-pill · 999px
rounded-sm · 0.25rem
rounded-md · 0.375rem
rounded-lg · 0.5rem
rounded-xl · 0.75rem

Density

Websites use comfortable controls. Apps set data-density="compact" on a container.

comfortable
48px
compact
40px

Layers

z-(--p-z-base) · 0z-(--p-z-sticky) · 20z-(--p-z-header) · 40z-(--p-z-overlay) · 50z-(--p-z-toast) · 60z-(--p-z-cursor) · 70

Elevation

Flat. Only overlays have a shadow (shadow-overlay).

Spacing is the Tailwind 4 px scale. Page gutter: 5vw (px-(--p-gutter)). Breakpoints: 640, 768, 1024, 1280, 1536.