Web 前端 UI 框架
RUI 是一套基础样式库
$ gulp watch
$ git clone https://github.com/r-ui/rui.git
$ git checkout gh-pages
JS 中引入模块。未上传npm,目前不能使用,如果使用,使用方法
$ git clone URL
进入cd rui
。npm link
添加软链,就相当于全局安装rui
。npm link rui
在该项目中进行添加软链,此时可以在项目中引用。var rui = require('rui'),
stylus = require('stylus');
function compile(str) {
return stylus(str)
.use(rui());
}
Stylus 中使用
@import 'rui/variables'
@import 'rui/mixins'
@import 'rui/alerts'