Skip to content

Instantly share code, notes, and snippets.

@zachwill
Created September 23, 2011 05:07
Show Gist options
  • Save zachwill/1236779 to your computer and use it in GitHub Desktop.
Save zachwill/1236779 to your computer and use it in GitHub Desktop.
// An example of mixing colors using the Less CSS parser.
// This specific example warms the color #222 with a yellow.
var parser = new(less.Parser);
function print_tree(event, tree) {
console.log(tree.toCSS());
}
parser.parse('@dark: #222; @yellow: #fcd20a; .my{ color: mix(@yellow, @dark, 6%); }', print_tree);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment