Skip to content

Instantly share code, notes, and snippets.

@samueljseay
Created March 12, 2015 01:05
Show Gist options
  • Save samueljseay/5f5408a16aee1477f858 to your computer and use it in GitHub Desktop.
Save samueljseay/5f5408a16aee1477f858 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class='color'></div>
<div class='color-20'></div>
<div class='color-40'></div>
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$color: #0062ae;
$color-20: shade($color, 20%);
$color-40: shade($color, 40%);
.color {
background-color: $color;
height: 50px;
width: 50px;
margin: 10px;
}
.color-20 {
background-color: $color-20;
height: 50px;
width: 50px;
margin: 10px;
}
.color-40 {
background-color: $color-40;
height: 50px;
width: 50px;
margin: 10px;
}
.color {
background-color: #0062ae;
height: 50px;
width: 50px;
margin: 10px;
}
.color-20 {
background-color: #004e8b;
height: 50px;
width: 50px;
margin: 10px;
}
.color-40 {
background-color: #003a68;
}
<div class='color'></div>
<div class='color-20'></div>
<div class='color-40'></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment