Skip to content

Resizable theming ​

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

css
:root {
  --rozie-resizable-font: inherit;
  --rozie-resizable-accent: #0066cc;
  --rozie-resizable-handle-size: 0.5rem;
  --rozie-resizable-size: 50%;
}

Tokens ​

typography ​

TokenDefault
--rozie-resizable-fontinherit

accent — the single color most consumers will set; the active handle + focus ring derive from it

TokenDefault
--rozie-resizable-accent#0066cc

the handle (the draggable divider) ​

TokenDefault
--rozie-resizable-handle-size0.5rem
--rozie-resizable-handle-bgrgba(0, 0, 0, 0.08)
--rozie-resizable-handle-hover-bgrgba(0, 0, 0, 0.16)

the first panel's basis along the split axis ​

TokenDefault
--rozie-resizable-size50%

the default grip (the short centered bar) ​

TokenDefault
--rozie-resizable-grip-bgrgba(0, 0, 0, 0.35)
--rozie-resizable-grip-thickness2px
--rozie-resizable-grip-length1.5rem

focus ring (keyboard focus on the handle) ​

TokenDefault
--rozie-resizable-focus-ring-width2px
--rozie-resizable-focus-ring-colorrgba(0, 102, 204, 0.5)

disabled ​

TokenDefault
--rozie-resizable-disabled-opacity0.55

Defaulted where Resizable reads them ​

Public, but declared nowhere by base.css: the fallback below applies only while no scope sets the token, and it is resolved at the component itself — so it follows a value set on any ancestor (a token it defaults to included).

TokenDefault
--rozie-resizable-handle-active-bgvar(--rozie-resizable-accent, #0066cc)

Design-system bridges ​

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

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

See also ​

Pre-1.0 — APIs may change between minor versions.