Nefarious Plastic Mannequins
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

sprity-customless

1.0.8 • Public • Published

sprity-customless

NPM version Build Status Dependencies

A less custom style processor for sprity sprity This is a copy and modify of Alexander Slansky module - alexander@slansky.net - alexander@slansky.net

Requirements

Install

Install with npm

npm install sprity sprity-customless --save

If you want to use sprity-less with the command line interface of sprity install it globally.

npm install sprity sprity-customless -g

Usage

On commandline:

sprity out/ src/*.png -s style.less -p less

In JavaScript:

var sprite = require('sprity');
sprite.create({
  ...
  style: 'style.less',
  processor: 'customless'
  ...
}, function () {
  console.log('done');
});

less usage example

@import 'sprite'; // the generated style file (sprite.less) 
 
// camera icon (camera.png in src directory) 
.icon-camera {
  .sprite(@camera);
}
 
// cart icon (cart.png in src directory) 
.icon-cart {
  .sprite(@cart);
}

More

See sprity documentation


Gitter

Install

npm i sprity-customless

DownloadsWeekly Downloads

2

Version

1.0.8

License

none

Last publish

Collaborators

  • avatar