:root

The :root pseudo-class defines the root element of a document. In HTML, this selector always matches the html element, but in styles, :root takes precedence over the html selector.

Syntax



:root {
  property: value;
}