Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Twitter Bootstrap with Stylus instead Less.
Latest commit c8d7d9a @edmellum Fix up Stylus API docs
Failed to load latest commit information.
bootstylus Initial commit. V0.1.0
.gitignore Initial commit. V0.1.0
LICENSE Initial commit. V0.1.0 Fix up Stylus API docs
index.js Initial commit. V0.1.0
package.json Initial commit. V0.1.0


A port of Twitter Bootstrap from Less to Stylus.


$ npm install bootstylus

JavaScript API

With a connect compatible framework, like express:

var connect = require('connect')
  , stylus = require('stylus')
  , bootstrap = require('bootstylus');

var server = connect();

function compile(str, path) {
  return stylus(str)
    .set('filename', path)
    .set('compress', true)

    src: __dirname
  , compile: compile

Stylus API

To get everything(except the responsive grid) @import 'bootstylus'

Using individual parts: @import 'bootstylus/grid

If you need the responsive grid: @import 'bootstylus/responsive


  • Use Nib for gradients and the like
  • Get rid of Stylus warnings
  • Clean up the Less to Stylus converter

Copyright and license

Copyright 2012 Twitter, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Something went wrong with that request. Please try again.