Ansora UI

Density

Comfortable and compact change the vertical rhythm and the type scale — nothing else.

Density is set with data-density on any ancestor. It changes row padding, section gaps, card padding, line height and the type scale. It never touches --spacing, and no control drops below 24 × 24 px in either density — the release gate measures every interactive element in a real browser at both.

TokenComfortableCompact
--row-py0.6875rem0.40625rem
--section-gap1.5rem1rem
--card-p1rem0.75rem
--line-height1.51.36
--nav-row-h2rem1.75rem
--fs-xs0.75rem0.75rem
--fs-sm0.875rem0.8125rem
--fs-base0.875rem0.8125rem
--fs-2xl1.5rem1.375rem