walmartlabs/lumbar — Issue #20: Create stylus plugin
Author: kpdecker
Created: 2011-12-20 00:42:44+00:00
State: open

Add support for module-based stylesheets. This should follow the same behavior as javascript modules in terms of combine flags, etc.

Example config:
{
"modules": {
"base": {
"styles": [
{"src": "iphone.styl", "platform": "iphone"},
{"src": "android.styl", "platform": "android"},
"styles/base.styl",
"styles/header.styl"
]
},
"home": {
"styles": [
"styles/home.styl"
]
}
},

"styles": {
"pixelDensity": {
"android": [ 1, 1.5 ],
"iphone": [ 1, 2 ],
"web": [ 1, 2 ]
},
"includes": [
"nib",
"styles/global.styl"
]
}
}