Implementing CSS Variables


CSS variables (custom properties) can be set to store specific values for reuse throughout your stylesheet.

Source Code

:root {
    --main-color: blue;
}
body {
    color: var(--main-color);
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments