Skip to content

Instantly share code, notes, and snippets.

@smlombardi
Created January 11, 2015 22:19
Show Gist options
  • Save smlombardi/0a723c559aa8b6554c8d to your computer and use it in GitHub Desktop.
Save smlombardi/0a723c559aa8b6554c8d to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<h1 class="foo">Foo</h1>
<h1 class="bar">Foo</h1>
<h1 class="baz">Foo</h1>
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
@function tint($color, $percentage) {
@return mix($color, white, $percentage);
}
@function shade($color, $percentage) {
@return mix($color, black, $percentage);
}
$color: violet;
.foo {
color: mix($color, black, 90%);
}
.bar {
color: shade($color,60%);
}
.baz {
color: tint($color,90%);
}
.foo {
color: #d675d6;
}
.bar {
color: #8e4e8e;
}
.baz {
color: #ef8eef;
}
<h1 class="foo">Foo</h1>
<h1 class="bar">Foo</h1>
<h1 class="baz">Foo</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment