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 Dynamic colors
Section titled “Dynamic colors”Each palette exposes three semantic tokens: foreground and bg for text and light surfaces; expressive bg for saturated fills. Pair expressive backgrounds with --ro-colors-expressive-fg for text.
Yellow foreground bg expressive bg
--ro-colors-yellow-foreground --ro-colors-yellow-bg --ro-colors-yellow-expressive-bg Orange foreground bg expressive bg
--ro-colors-orange-foreground --ro-colors-orange-bg --ro-colors-orange-expressive-bg Brown foreground bg expressive bg
--ro-colors-brown-foreground --ro-colors-brown-bg --ro-colors-brown-expressive-bg Red foreground bg expressive bg
--ro-colors-red-foreground --ro-colors-red-bg --ro-colors-red-expressive-bg Pink foreground bg expressive bg
--ro-colors-pink-foreground --ro-colors-pink-bg --ro-colors-pink-expressive-bg Purple foreground bg expressive bg
--ro-colors-purple-foreground --ro-colors-purple-bg --ro-colors-purple-expressive-bg Blue foreground bg expressive bg
--ro-colors-blue-foreground --ro-colors-blue-bg --ro-colors-blue-expressive-bg Green foreground bg expressive bg
--ro-colors-green-foreground --ro-colors-green-bg --ro-colors-green-expressive-bg Grey foreground bg expressive bg
--ro-colors-grey-foreground --ro-colors-grey-bg --ro-colors-grey-expressive-bg 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.
Changelog
Recent updates in @ringover/styles. See the full
package changelog
.
-
- Darkened the webapp light mode accent color for improved contrast.
- Raised dark mode primary text color opacity (80% to 94% white) for improved contrast.
-
- Documented dynamic color semantic tokens (foreground, bg, expressive bg).
- Refined webapp accent token mapping for improved contrast on active states.