Day 1: custom properties and fallbacks

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
You can pass a second value to the var() CSS function which acts as a fallback for when the property has not been set.Fallbacks .demo { width: 5rem; height: 5rem; border: 5px solid; } .one { background-color: var(--not-set, #000); } .two { background-color: var(--not-set, var(--also-not-set, #00F)); } .three { background-color:...