Created
October 31, 2018 18:22
-
-
Save colorful-tones/f33b5f8092c390d1a30786757539c19f to your computer and use it in GitHub Desktop.
CSS variables with fallback value
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
.foo { | |
color: var(--my-var, red); /* Red if --my-var is not defined */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment