Material Style comes designed with a baseline theme that is adaptive to color modes and can be used as-is, straight out of the box or customized as per your need.
Theme colors are adaptive to color modes, meaning they change according to the color mode (for example, dark and light mode). Try switching to dark/light mode from the top navigation bar.
Each theme color has additional color variants:
We use these color variants across our components, which allows us to change the theme colors using CSS variables.
The primary color is used to derive roles for key components across the UI, such as the hyperlinks, prominent buttons, focus and active states.
--bs-primary
--bs-primary-rgb
--bs-primary-hover
--bs-primary-active
--bs-primary-subtle
--bs-primary-subtle-hover
--bs-primary-subtle-active
--bs-primary-emphasis
--bs-primary-emphasis-hover
--bs-text-on-primary
--bs-primary-border-subtle
The secondary color is used for less prominent components in the UI.
--bs-secondary
--bs-secondary-rgb
--bs-secondary-hover
--bs-secondary-active
--bs-secondary-subtle
--bs-secondary-subtle-hover
--bs-secondary-subtle-active
--bs-secondary-emphasis
--bs-secondary-emphasis-hover
--bs-text-on-secondary
--bs-secondary-border-subtle
The tertiary color is used to derive the roles of contrasting accents that can be used to balance primary and secondary colors or bring heightened attention to an element.
--bs-tertiary
--bs-tertiary-rgb
--bs-tertiary-hover
--bs-tertiary-active
--bs-tertiary-subtle
--bs-tertiary-subtle-hover
--bs-tertiary-subtle-active
--bs-tertiary-emphasis
--bs-tertiary-emphasis-hover
--bs-text-on-tertiary
--bs-tertiary-border-subtle
The success color is used for positive or successful actions and information.
--bs-success
--bs-success-rgb
--bs-success-hover
--bs-success-active
--bs-success-subtle
--bs-success-subtle-hover
--bs-success-subtle-active
--bs-success-emphasis
--bs-success-emphasis-hover
--bs-text-on-success
--bs-success-border-subtle
The info color is used for neutral and informative content.
--bs-info
--bs-info-rgb
--bs-info-hover
--bs-info-active
--bs-info-subtle
--bs-info-subtle-hover
--bs-info-subtle-active
--bs-info-emphasis
--bs-info-emphasis-hover
--bs-text-on-info
--bs-info-border-subtle
The warning color is used for non-destructive warning messages.
--bs-warning
--bs-warning-rgb
--bs-warning-hover
--bs-warning-active
--bs-warning-subtle
--bs-warning-subtle-hover
--bs-warning-subtle-active
--bs-warning-emphasis
--bs-warning-emphasis-hover
--bs-text-on-warning
--bs-warning-border-subtle
The danger color is used for errors and dangerous actions.
--bs-danger
--bs-danger-rgb
--bs-danger-hover
--bs-danger-active
--bs-danger-subtle
--bs-danger-subtle-hover
--bs-danger-subtle-active
--bs-danger-emphasis
--bs-danger-emphasis-hover
--bs-text-on-danger
--bs-danger-border-subtle
--bs-light
--bs-light-rgb
--bs-light-hover
--bs-light-active
--bs-light-subtle
--bs-light-subtle-hover
--bs-light-subtle-active
--bs-light-emphasis
--bs-light-emphasis-hover
--bs-text-on-light
--bs-light-border-subtle
--bs-dark
--bs-dark-rgb
--bs-dark-hover
--bs-dark-active
--bs-dark-subtle
--bs-dark-subtle-hover
--bs-dark-subtle-active
--bs-dark-emphasis
--bs-dark-emphasis-hover
--bs-text-on-dark
--bs-dark-border-subtle
--bs-body-bg
--bs-body-bg-rgb
--bs-body-color
--bs-body-color-rgb
--bs-surface-bg
--bs-surface-bg-rgb
--bs-surface-bg-hover
--bs-surface-color
--bs-surface-color-rgb
For higher contrast text. Not applicable for backgrounds.
--bs-emphasis-color
--bs-emphasis-color-rgb
--bs-muted-color
For component borders, dividers, and rules. Use --bs-border-color-translucent
to blend with backgrounds with an rgba()
value.
--bs-border-color