Last active
June 1, 2019 17:48
-
-
Save jasontcrabtree/2ce934513ce317cf97de22f0de8aba34 to your computer and use it in GitHub Desktop.
A beginners introduction to using CSS Variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*------ 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