Created
September 23, 2011 05:07
-
-
Save zachwill/1236779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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