Themes and styling

Apply a shared theme and adjust design tokens within the required scope.

Design tokens#

Design tokens are CSS custom properties. To change a Primary Button's background, for example, set the state-specific tokens used by that component.

CSS
.brand-theme {
  --button-primary-background-enabled: #1677ff;
  --button-primary-background-hover: #4096ff;
  --button-primary-background-active: #0958d9;
  --button-primary-background-focus: #1677ff;
}