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.
:root
html
:root { property: value; }