Go to file
cloudhead 6778f51fc3 Added a couple colour functions
saturate, desaturate, lighten, darken, greyscale.
2010-04-23 13:36:50 -04:00
benchmark use puts instead of writeError, which was removed 2010-04-21 10:11:34 -04:00
bin use puts instead of writeError, which was removed 2010-04-21 10:11:34 -04:00
build Array.isArray compat 2010-04-01 22:37:29 -04:00
lib/less Added a couple colour functions 2010-04-23 13:36:50 -04:00
test Added a couple colour functions 2010-04-23 13:36:50 -04:00
index.js the e() LESS function 2010-04-22 19:42:02 -04:00
LICENSE moved to apache license 2010-03-04 14:46:41 -05:00
Makefile added compat.js and tree.js to build, it now builds in dist/ 2010-03-29 22:24:09 -04:00
package.json fixed typo in package.json 2010-03-19 20:17:04 -04:00
README.md usage info 2010-04-22 19:15:11 -04:00
VERSION VERSION file 2010-03-05 15:35:07 -05:00

less.js

about

less.js is the next evolution of LESS, eventually, it will become LESS 2.0. less.js is a complete rewrite of LESS in JavaScript, and will be able to run directly in the browser, as well as on the server, with node.js.

synopsis

in node.js

var less = require('less');

less.render(".class { width: 10px * 2 }", function (e, css) {
    sys.puts(css); // .class { width: 20px }
});

via the command-line (requires node)

bin/lessc style.less

in the browser

<link rel="less" href="/stylesheets/main.less" type="text/css">