Skip to main content
The widget theme is built around CSS variables. Use variables before overriding individual Bootstrap or utility classes. Light theme values should be placed in :root. Dark theme values should be placed in [data-bs-theme="dark"].

Important: RGB channel variables

Some variables are used inside CSS functions such as rgb(var(--rdb-primary-color)) or rgba(var(--rdb-primary-color), 0.25). These variables must contain only RGB channels. Correct:
Incorrect:
If an AI assistant outputs --rdb-primary-color: #ca0000;, replace it with:
For most component variables, hex colors are fine:

Variables exposed in the UI customizer

These variables are part of the widget customizer allowlist.

Free customizer variables

Full customizer variables

Useful variable groups

Backgrounds

Text

Buttons

Forms and dropdowns

Chips, charts, alerts, and sizing

Full internal --rdb-* variable list

These variables are extracted from the current widget CSS. Some are lower-level implementation variables, so prefer the customizer variables above when possible.

Notes for AI assistants

  • Prefer variables that describe the result, such as --rdb-button-solid-bg, over low-level aliases such as --rdb-bg-darker.
  • Some variables expect RGB channel lists because they are used in rgb(var(...)), for example --rdb-primary-color: 202, 0, 0;.
  • Most color variables accept hex, RGB, RGBA, HSL, or another CSS variable.
  • Sizing variables should use CSS units such as px, rem, or %.