lost-stylus

0.1.3 • Public • Published

lost-stylus

Collection of mixins for Stylus intended for use with Lost. Makes Lost properties available without the lost- prefix, with the exception of lost-utility.

Example

<section>
  <div>1</div>
  <div>2</div>
  <div>3</div>
</section>
section
  lost-utility: clearfix

div
  column: 1/2

Usage

Use like any other Stylus plugin. Lost and PostCSS are not included although their usage is of course required. I've found poststylus to integrate PostCSS and Stylus rather nicely.

var stylus  = require('stylus'),
    lost    = require('lost-stylus'),
    postcss = require('poststylus');

stylus(str)
  .set('filename', 'app.css')
  .use(lost())
  .use(postcss([
    'lost'
  ])
  .render(function(err, css){
    // logic
  });

Readme

Keywords

Package Sidebar

Install

npm i lost-stylus

Weekly Downloads

11

Version

0.1.3

License

MIT

Last publish

Collaborators

  • zeekay