You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
cloudhead dfd3e2471f
(build) 1.0.40
14 years ago
benchmark benchmark script can be passed files. also use optimization level 2, cause 3 doesn't exist anymore 14 years ago
bin Fix bin/lessc 14 years ago
build (doc) comments 14 years ago
dist (build) 1.0.40 14 years ago
lib/less (dist) version bump to 1.0.40 14 years ago
test fixed @media and @page parsing problem 14 years ago
LICENSE moved to apache license 15 years ago
Makefile (dist) new dist commands to Makefile 14 years ago
README.md (dist doc) version bump and README update 14 years ago
package.json (dist) version bump to 1.0.40 14 years ago

README.md

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.

where do I get it?

The latest builds are in the dist/ folder.

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

Get the pre-built version from the dist/ folder, and include it as such:

<link rel="stylesheet/less" href="main.less" type="text/css">
<script src="less.js" type="text/javascript"></script>

Note the rel="stylesheet/less" for all stylesheets you want to parse with LESS.

installation

In node:

$ npm install less