Last active
November 13, 2018 11:42
-
-
Save vviikk/e16bc1591dbd8244b42b374822a3bdb7 to your computer and use it in GitHub Desktop.
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
:root { | |
/* Calculated properties in --kebab-case | |
Prefix the property name what it's affecting. i.e. `font-size`. | |
| | |
| Add some context of what it is. | |
| | | |
↓ ↓ */ | |
--font-size-min-px: calc(var(--FONT-SIZE-MIN) * 1px); | |
--font-size-max-px: calc(var(--FONT-SIZE-MAX) * 1px); | |
/* ^ suffix with the unit type (i.e. px, rem) */ | |
--font-size-difference: calc(var(--FONT-SIZE-DIFFERENCE)); | |
/* ^ unitless values don't have a unit as a suffix */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment