Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A beginners introduction to using CSS Variables
/*------ Step One: ------*/
/* Setting a blue hex-code as our variable */
--favourite-blue: #464794;
/*------ Step Two: ------*/
/* Making the border of our website blue */
border-color: var(--favourite-blue);
/* Making all of the text on our website blue */
color: var(--favourite-blue);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.