Last active
November 2, 2017 06:44
-
-
Save robwierzbowski/c24c1806166a8fd5fcf08c9b3f458126 to your computer and use it in GitHub Desktop.
PostCSS mixin example
This file contains hidden or 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
/* type.css */ | |
@import 'vars.css'; | |
@define-mixin header { | |
font-family: $font-sans; | |
font-weight: 600; | |
letter-spacing: -0.01em; | |
} | |
@define-mixin header-one { | |
@mixin header; | |
font-size: 1.475rem; | |
line-height: 1.3; | |
} | |
/* component style.css */ | |
@import 'vars.css'; | |
@import 'type.css'; | |
.firstName { | |
@mixin header-one; | |
margin-bottom: 1rem; | |
color: $off-black; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment