Skip to content

Instantly share code, notes, and snippets.

View nickcooley's full-sized avatar

Nick Cooley nickcooley

View GitHub Profile
@function color-shift($color, $amount: 10%) {
@return if(lightness($color) > 50%,
darken($color, $amount),
lighten($color, $amount))
}
$my-bg-color: #333;
$my-fg-color: #c00;
.shifted {