Created
October 31, 2018 15:44
-
-
Save picheli20/6179e0660f9debee39fd61d334219d5f to your computer and use it in GitHub Desktop.
Library with Angular 6+: The ultimate guide - mixing
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
/** | |
$color-pallete: ( | |
500: #fff, | |
contrast: ( | |
500: #000, | |
), | |
); | |
*/ | |
@mixin counter($color-pallete) { | |
$contrast: map-get($color-pallete, contrast); | |
.counter-button { | |
$level: 500; | |
color: map-get($contrast, $level); | |
background-color: map-get($color-pallete, $level); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment