bootstrap3-stylus

Twitter Bootstrap 3 CSS framework ported to stylus

bootstrap-stylus

A basic port of the Twitter Bootstrap CSS framework to stylus. Ideal for node.js apps using connect or express.

To learn more about using the framework see the bootstrap docs at http://twitter.github.com/bootstrap.

Javascript - add just like you'd use nib:

var bootstrap = require('bootstrap-stylus'),
       stylus = require('stylus');
 
function compile(strpath) {
  return stylus(str)
    .set('filename', path)
    .use(bootstrap());
}
 
app.use(stylus.middleware({
  src: __dirname + '/public',
  compile: compile
}));

in your .style files:

@import bootstrap

or set variables before importing:

$linkColor = red
@import bootstrap

You can also import individual files by specifying their filename:

@import reset

Mark Otto

  • http://twitter.com/mdo
  • http://github.com/markdotto

Jacob Thornton

  • http://twitter.com/fat
  • http://github.com/fat

Michael Prasuhn

  • http://twitter.com/mikey_p
  • https://github.com/mikeyp

Copyright 2011 Twitter, Inc.

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0