npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

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

Keywords

install

npm i toolkit-less-css

Downloadsweekly downloads

24

version

0.2.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability