Skip to content
Browse library
Docs/Design System/Layers & theming
DESIGN SYSTEM · LAYERS & THEMING

Layers & theming

Predictable z-index stacking, React 19 style precedence, and clean CSS variable overrides for brand customization.

01 — STACKING ORDER

Z-index tiers

Base & contentz-index: 0 – 1
Standard cards, grids, calendar event blocks
Sticky chromez-index: 20
Site header, sticky calendar weekday headers
Floating overlaysz-index: 1000
DropdownMenu, Select, Popover, Tooltip, FilterMenu
Modal dialogsz-index: 1100
Dialog, AlertDialog, CommandMenu overlays
Notificationsz-index: 1200
Toaster status stack above modal backdrops
02 — STYLE PRECEDENCE & TAILWIND

CSS Cascade Layers & Tailwind CSS

Every BIU UI stylesheet is scoped inside standard @layer components sub-layers: components.biu-tokens → components.biu-base → components.biu-appearance → components.biu-theme.

Because Tailwind CSS v3 & v4 place utility classes in @layer utilities (above @layer components), you can override any component — including Portal overlays like Dialog, Popover, DropdownMenu, and Tooltip — directly with standard Tailwind classes in JSX, with zero !important and zero extra configuration:

<Dialog
  trigger={<Button className="rounded-full px-5">View details</Button>}
  className="rounded-lg shadow-none border border-neutral-200"
  title="Project details"
>
  <p>Standard Tailwind classes override BIU defaults cleanly.</p>
</Dialog>
03 — CUSTOMIZATION

Overriding Default tokens

Override any CSS custom property on :root or a scoped wrapper to adapt BIU UI to your brand:

:root {
  --biu-radius-control: 10px;
  --biu-radius-panel: 14px;
  --biu-color-focus: rgba(0, 96, 226, .75);
  --biu-font-sans: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}