Skip to content

Instantly share code, notes, and snippets.

@eendeego
Created January 6, 2014 19:16
Show Gist options
  • Save eendeego/8288109 to your computer and use it in GitHub Desktop.
Save eendeego/8288109 to your computer and use it in GitHub Desktop.
A Pen by Luis Reis.
<div class="block c1"></div>
<div class="block c2"></div>
<div class="block c3"></div>
<div class="block c4"></div>
@import "compass";
$color: red;
$inverse: hsl(120deg, 100%, 100%);
.block {
display: inline-block;
width: 20px;
height: 20px;
}
.c1 { background-color: $color; }
.c2 { background-color: adjust-hue($color, 0.33 * (hue($inverse) - hue($color))); }
.c3 { background-color: adjust-hue($color, 0.67 * (hue($inverse) - hue($color))); }
.c4 { background-color: adjust-hue($color, 1.00 * (hue($inverse) - hue($color))); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment