Documentation
Colors

Color Variables

You can customize any CSS Color variable in Theme Styles.

Webframe colors look great in both Light and Dark modes because, by default, colors invert in Dark mode:

Variable Light mode Dark modeDescription
--...-darkdarker toneslighter tonesluminance modifier
--...-lightlighter tonesdarker tonesluminance modifier
--...-hardmore opaquemore opaqueopacity modifier
--...-softless opaqueless opaqueopacity modifier
--shadedarkens colorlightens colorfor overlay effect
--tintlightens colordarkens colorfor overlay effect

Inverted colors result in similar level of contrast in both modes. Style in your favorite theme mode, meet the accessibility standards, and it will automagically work for the other modes.

This documentation is built using the same principle. Try it for yourself - toggle between Light and Dark modes.

Theme Colors

Example

Alert / Callout / Notification

Example

Shades, Tones & Tints

Example

Foreground Colors

Example

Other Colors

Example