Skip to content

Instantly share code, notes, and snippets.

@amrikarisma
Last active July 19, 2022 12:14
Show Gist options
  • Save amrikarisma/4e41a0389e2ad43083e54c508943183f to your computer and use it in GitHub Desktop.
Save amrikarisma/4e41a0389e2ad43083e54c508943183f to your computer and use it in GitHub Desktop.
auto mix color on hover
// Shade a color: mix a color with black
// Example : shade-color($color__btn-primary, 10%)
@function shade-color($color, $weight) {
@return mix(black, $color, $weight);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment