Skip to content

Instantly share code, notes, and snippets.

@ffoodd
Last active February 19, 2021 12:53
Show Gist options
  • Save ffoodd/3ba670b42d92f7a6115ba568d18d3c79 to your computer and use it in GitHub Desktop.
Save ffoodd/3ba670b42d92f7a6115ba568d18d3c79 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@function tint-color($color, $weight) {
@return mix(white, $color, $weight);
}
@function shade-color($color, $weight) {
@return mix(black, $color, $weight);
}
@function shift-color($color, $weight) {
@return if($weight > 0, shade-color($color, $weight), tint-color($color, -$weight));
}
$link-color: #639;
$link-shade-percentage: -20%;
$link-hover-color: shift-color($link-color, $link-shade-percentage);
a {
color: $link-color;
&:hover {
color: $link-hover-color;
}
}
a {
color: #639;
}
a:hover {
color: #855cad;
}
{
"sass": {
"compiler": "dart-sass/1.26.11",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment