Colors
Semantic color tokens map design intent to CSS custom properties. They adapt to light and dark themes and should be preferred over primitive palette values in product code.
Use semantic tokens with var() in CSS or through utility classes documented on the Colors utilities page.
Product / accent
Section titled “Product / accent” Default accent accent foreground
--ro-colors-accent --ro-colors-accent-foreground Light accent light accent foreground light
--ro-colors-accent-light --ro-colors-accent-foreground-light Hover accent hover
--ro-colors-accent-hover Hover light accent hover light
--ro-colors-accent-hover-light Active accent active
--ro-colors-accent-active Active light accent active light accent active foreground light
--ro-colors-accent-active-light --ro-colors-accent-active-foreground-light Disabled accent disabled accent disabled foreground
--ro-colors-accent-disabled --ro-colors-accent-disabled-foreground Disabled light accent disabled light accent disabled foreground light
--ro-colors-accent-disabled-light --ro-colors-accent-disabled-foreground-light Secondary accent secondary accent secondary foreground
--ro-colors-accent-secondary --ro-colors-accent-secondary-foreground Success
Section titled “Success”--ro-colors-success --ro-colors-success-light --ro-colors-success-hover --ro-colors-success-hover-light Warning
Section titled “Warning”--ro-colors-warning --ro-colors-warning-light --ro-colors-warning-hover --ro-colors-warning-hover-light Danger
Section titled “Danger”--ro-colors-danger --ro-colors-danger-light --ro-colors-danger-hover --ro-colors-danger-hover-light --ro-colors-danger-active --ro-colors-danger-active-light Favorite
Section titled “Favorite”--ro-colors-favorite --ro-colors-favorite-hover --ro-colors-favorite-light --ro-colors-favorite-hover-light --ro-colors-favorite-active-light --ro-colors-text-primary --ro-colors-text-intermediate --ro-colors-text-secondary --ro-colors-text-inverted --ro-colors-text-deep --ro-colors-link --ro-colors-link-visited Borders
Section titled “Borders”--ro-colors-border-light --ro-colors-border-regular --ro-colors-border-accentuated Backgrounds
Section titled “Backgrounds”--ro-colors-bg-branding --ro-colors-bg-underlay --ro-colors-bg-container --ro-colors-bg-overlay --ro-colors-bg-overlay-inverted --ro-colors-bg-dark --ro-colors-bg-backdrop Surfaces
Section titled “Surfaces”--ro-colors-component-light --ro-colors-component-regular --ro-colors-component-accentuated --ro-colors-component-deep --ro-colors-component-inverted --ro-colors-component-opaque --ro-colors-component-transluent AI gradients
Section titled “AI gradients”--ro-gradients-ai --ro-gradients-ai-opacity-8 --ro-gradients-ai-opacity-20 --ro-gradients-ai-opacity-32 --ro-gradients-ai-opacity-40 Reference tokens directly in component styles:
.my-banner { color: var(--ro-colors-text-primary); background-color: var(--ro-colors-success-light); border: 1px solid var(--ro-colors-border-regular);}Switch between light and dark themes with [data-ro-mode="dark"] on a root element — semantic tokens resolve to the correct values automatically.