Toolkit for Less CSS
Install
npm install toolkit-less-css
Functions
Functions must be loaded directly onto the less
module being used for
rendering to add custom functions, at least until an API is exposed for this in
standard less.render
options. Loading onto less
directly:
var toolkit = ;var less = ;toolkit;
If you use a tool like gulp-less
or grunt-contrib-less
you will need to
require the less
module inside it's node_modules
. For example:
var toolkit = ;var less = ;toolkit;
Functions documented in index.js.
Some functions use a base pixel size, which defaults to 16px. You may set the base to something else using:
var toolkit = ;toolkit;
Less
Code is annotated, read that instead.
Contributors
Dominic Whittle James Rakich
License
Copyright (c) 2014 Offsider, used under The MIT License (MIT)
License provided in LICENSE.md