From the previous page we have learned that global variables can be accessed/used through the entire document, while local variables can be used only inside the selector where it is declared.
Look at the example from the previous page:
Assume we want a different color of blue for button elements. Then, we can re-declare the --blue variable inside the button selector. When we use var(--blue) inside this selector, it will use the local --blue variable value declared here..
We see that the local --blue variable will override the global --blue variable for the button elements:
If a variable is to be used at only one single place, we could also have declared a new local variable, like this: