Skip to content

Instantly share code, notes, and snippets.

@CheetoMao
Created October 10, 2014 02:42
Show Gist options
  • Save CheetoMao/f23d8b279c5a9b6ba8e5 to your computer and use it in GitHub Desktop.
Save CheetoMao/f23d8b279c5a9b6ba8e5 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<body>
<div class="base">Base Color</div>
<div class="secondary">Complement Color</div>
<div class="tertiary">Adjust Hue 180</div>
</body>
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
$base-color: #f1c40f;
$secondary-color: complement($base-color);
$tertiary-color: adjust-hue( $base-color, 180% );
body { background: #E0E0E0; }
div {
border: 2px solid #FFF;
color: white;
float: left;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;;
height: 100px;
margin: 0 2px;
padding: 2rem;
text-align: center;
width: 100px;
&.base {
background: $base-color;
}
&.secondary {
background: $secondary-color;
}
&.tertiary {
background: $tertiary-color;
}
}
body {
background: #E0E0E0;
}
div {
border: 2px solid #FFF;
color: white;
float: left;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
height: 100px;
margin: 0 2px;
padding: 2rem;
text-align: center;
width: 100px;
}
div.base {
background: #f1c40f;
}
div.secondary {
background: #0f3cf1;
}
div.tertiary {
background: #0f3cf1;
}
<body>
<div class="base">Base Color</div>
<div class="secondary">Complement Color</div>
<div class="tertiary">Adjust Hue 180</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment