Skip to content

Popover theming ​

The values listed below are exposed as --rozie-popover-* custom properties, each with a built-in fallback, so Popover works with zero configuration and re-skins by remapping tokens. The structural rules compile per-leaf and are not consumer-overridable.

css
:root {
  --rozie-popover-z: 1000;
  --rozie-popover-max-width: calc(100vw - 16px);
  --rozie-popover-bg: #fff;
  --rozie-popover-color: inherit;
}

Tokens ​

TokenDefault
--rozie-popover-z1000
--rozie-popover-max-widthcalc(100vw - 16px)
--rozie-popover-bg#fff
--rozie-popover-colorinherit
--rozie-popover-border1px solid rgba(0, 0, 0, 0.12)
--rozie-popover-radius8px
--rozie-popover-shadow0 8px 24px rgba(0, 0, 0, 0.12)
--rozie-popover-padding8px 12px
--rozie-popover-arrow-size8px

Design-system bridges ​

Each package ships token presets that map Popover's tokens onto a known design system's published CSS variables — import base.css first, then a bridge:

ts
import '@rozie-ui/popover-react/themes/base.css';
import '@rozie-ui/popover-react/themes/bootstrap.css';
import '@rozie-ui/popover-react/themes/material.css';
import '@rozie-ui/popover-react/themes/shadcn.css';

See also ​

Pre-1.0 — APIs may change between minor versions.