Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Stylus (CSS) code wrapper for SocketStream 0.3
Latest commit 351b93f @paulbjensen paulbjensen Merge pull request #9 from louh/master
Bump stylus@0.49.2 and nib@1.0.4
Failed to load latest commit information.
.gitignore first commit 0.1.6 Updated version and README
package.json Bump stylus@0.49.2 and nib@1.0.4
wrapper.js Read config and set parameters. resolves #3

Stylus (CSS) wrapper for SocketStream 0.3

Allows you to use Stylus files (.styl) in your SocketStream project.


Add ss-stylus to your application's package.json file and then add this line to app.js:


Nib is included by default. To use this in your app add:

@import 'nib'

at the top of your .styl file.

JavaScript variable injection

The ss-stylus wrapper allows you use JavaScript variables within your Stylus code.

This can be useful if you need to serve assets from a CDN in production. For example:

var ssStylus = require('ss-stylus');
var assetsPath = '';

ssStylus.prependStylus('$assetsPath = \'' + assetsPath + '\'');

Including CSS imports

To include CSS imports, pass these options to loading the ss-stylus library:

ss.client.formatters.add(require('ss-stylus'), { 'include css' : true });
Something went wrong with that request. Please try again.