0.1.3 • Published 8 years ago

lost-stylus v0.1.3

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

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
  });