Create and expand using real-time CSS variables

Maximize the potential of CSS variables for global theme styles, individual components, and utilities. Micro’s variables cover color, font sizes, and more – putting you in the driver’s seat.

Customizing via CSS variables

Utilize Bootstrap global :root variables to create new styles. CSS variables follow the var(--variableName) syntax and can be inherited by child elements.

Copied!

body {
  line-height: 1.5;
  font-size: $font-size;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: var(--bs-primary);
  &:hover {
    color: tint-color(theme-color('primary'), .10);
  }
}
            

Learn more about CSS variables.