Created
May 21, 2015 21:02
-
-
Save kristoferjoseph/7ea2763d71144689448b to your computer and use it in GitHub Desktop.
Even better CSS4 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
:root { | |
--primary-color: #d12028; | |
} | |
/* fallback values in case a variable is not supplied FTW */ | |
body { | |
background: var(--primary-color, red); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment