The published package exposes a typed KuiDensity union for compact, regular, and comfortable experiences.

NameTypeDefaultDescription
compactKuiDensityDense operational surfaces such as toolbars, tables, and high-frequency controls.
regularKuiDensityDefault application density and the safest choice for documentation examples.
comfortableKuiDensityTouch-heavy or spacious contexts where larger hit areas matter more than density.

Set density through theme seeds. Use provideKikitaUi defaults.size for app-wide control size, not for density.

import { DEFAULT_KUI_THEME, provideKikitaUi } from '@kikita-labs/ui';

provideKikitaUi({
  theme: {
    seeds: {
      ...DEFAULT_KUI_THEME.seeds,
      density: 'regular',
    },
  },
});

Height follows the size cascade. Density rebinds horizontal padding and spacing rhythm only.

NameTypeDefaultDescription
Control height (xs / sm / md / lg)28px / 32px / 40px / 44pxSet by local size inputs, component providers, or provideKikitaUi defaults.size. Density does not affect height.
Button x padding8px / 12px / 16pxHorizontal control padding across compact, regular, and comfortable density.

Density rebinds the padding tokens below; height tokens resolve from data-kui-size instead.

--kui-btn-px-compact
--kui-btn-px-regular
--kui-btn-px-comfortable