Skip to content

Instantly share code, notes, and snippets.

@jasontcrabtree
Last active June 1, 2019 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasontcrabtree/2ce934513ce317cf97de22f0de8aba34 to your computer and use it in GitHub Desktop.
Save jasontcrabtree/2ce934513ce317cf97de22f0de8aba34 to your computer and use it in GitHub Desktop.
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