Created
April 21, 2017 14:40
-
-
Save jonnymaceachern/4605cbd2c634a30ce8ef11543d325352 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
/** | |
* Get color based of $colors map | |
*/ | |
@function color($color) { | |
@return map-get($colors, $color ); | |
} | |
// Usage | |
.header { | |
background: color(primary); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment