Skip to content

Instantly share code, notes, and snippets.

@picheli20
Created October 31, 2018 15:44
Show Gist options
  • Save picheli20/6179e0660f9debee39fd61d334219d5f to your computer and use it in GitHub Desktop.
Save picheli20/6179e0660f9debee39fd61d334219d5f to your computer and use it in GitHub Desktop.
Library with Angular 6+: The ultimate guide - mixing
/**
$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