Skip to content

Instantly share code, notes, and snippets.

@cukabeka
Created May 12, 2013 11:33
Show Gist options
  • Save cukabeka/5563253 to your computer and use it in GitHub Desktop.
Save cukabeka/5563253 to your computer and use it in GitHub Desktop.
LESS schemes
/*
http://designshack.net/articles/css/10-less-css-examples-you-should-steal-for-your-projects/
Mixin
*/
@base: #663333;
@complement1: spin(@base, 180);
@complement2: darken(spin(@base, 180), 5%);
@lighten1: lighten(@base, 15%);
@lighten2: lighten(@base, 30%);
/* Implementation */
.one {color: @base;}
.two {color: @complement1;}
.three {color: @complement2;}
.four {color: @lighten1;}
.five {color: @lighten2;}
/*
http://designshack.net/articles/css/10-less-css-examples-you-should-steal-for-your-projects/
Mixin */
@base: #663333;
@lighter1: lighten(spin(@base, 5), 10%);
@lighter2: lighten(spin(@base, 10), 20%);
@darker1: darken(spin(@base, -5), 10%);
@darker2: darken(spin(@base, -10), 20%);
/* Implementation */
.one {color: @base;}
.two {color: @lighter1;}
.three {color: @lighter2;}
.four {color: @darker1;}
.five {color: @darker2;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment