CSS variables help to make the reuse of stylings a lot easier. All you have to do is declare it once and call it anywhere that you want to use it. If our variable, --main-color cannot be used, then the browser should then use blue. The value is optional and is known as a fallback value.
Table of contents
PrerequisitesWhat are CSS Variables?The ScopeThe SyntaxThe Fallback ValueInheritanceSpecificityValidityRecapSort: