Skip to content

Instantly share code, notes, and snippets.

@colorful-tones
Created October 31, 2018 18:22
Show Gist options
  • Save colorful-tones/f33b5f8092c390d1a30786757539c19f to your computer and use it in GitHub Desktop.
Save colorful-tones/f33b5f8092c390d1a30786757539c19f to your computer and use it in GitHub Desktop.
CSS variables with fallback value
.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