Last active
July 14, 2020 13:09
-
-
Save colabottles/491ef8394c706aa8f175a87846709efb to your computer and use it in GitHub Desktop.
Part of a stylesheet where I am trying to get custom variables to work on a background gradient using hue.
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
/* Define color intent */ | |
--backgroundColor: hsl(var(--hue) 50% 50%); | |
--hue: 100; | |
body { | |
background-color: var(--backgroundColor); | |
display: grid; | |
font-family: var(--bodyFont); | |
margin: 0; | |
padding-block: 4rem; | |
padding-inline: 2rem; | |
place-content: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment