toolkit-less-css

0.2.1 • Public • Published

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 = require("toolkit-less-css");
var less = require("less");
toolkit.loadFunctions(less);

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 = require("toolkit-less-css");
var less = require("gulp-less/node_modules/less");
toolkit.loadFunctions(less);

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 = require("toolkit-less-css");
toolkit.setBasePx(16);

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

Readme

Keywords

Package Sidebar

Install

npm i toolkit-less-css

Weekly Downloads

7

Version

0.2.1

License

MIT

Last publish

Collaborators

  • malucomarinero
  • weekends