Created
August 30, 2023 13:54
-
-
Save cadoo/b77485f766fff002df0ba5a96f203cf5 to your computer and use it in GitHub Desktop.
OKLCH colors with fallback
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
html { | |
--brandYellow: hsl(53.81 97% 58%); | |
background: var(--brandYellow); | |
} | |
@supports (color: oklch(0% 0 0)) { | |
html { | |
--brandYellow: oklch(91.91% 0.22 102.16); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment