Created
August 4, 2015 07:08
-
-
Save charliewilco/7ea6b9c383fcd31dcbb1 to your computer and use it in GitHub Desktop.
PostCSS Variables Custom Selectors
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
@use cssnext; | |
:root { | |
--gotham: 'Gotham', 'Proxima Nova', 'Avenir Next', sans-serif; | |
--break__sm: 32rem; | |
} | |
@custom-media --vp-sm (width >= var(--break__sm)); | |
body { | |
font-family: var(--gotham); | |
font-size: 100%; | |
@media (--vp-sm) { font-size: 1rem; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment