unistyle实现使用下一个版本的ECMAScript编写模块化和可扩展的CSS。
Why?
使用ES2015 和一些ES2016特性来编写CSS用JavaScript让其真正的模块化,可 扩展,让你很好地实践CSS前或后处理器的所有功能,无需求助于一个新的语言。
Unistyle?
The name is an abbreviation of Uniform Stylesheets. It is also somewhat related to Universal JavaScript or what you want to call it, because of the ability to share the same CSS code written in JavaScript between your frontend component’s inline styles and the application’s complete CSS.
Installation
Installunistyleusing npm:
- npm install --save unistyle
登录后复制
立即学习“前端免费学习笔记(深入)”;
CLI Usage
- $> unistyle --helpUsage: bin/unistyle [options] Options: -o, --output Output compiled CSS to specified file instead of to stdout [string] -h, --help Show help [boolean] -v, --version Show version number [boolean]Examples: bin/unistyle -o app.css src/styles.js Compile src/styles.js to app.css bin/unistyle -o style.css style Compile style/index.js to style.css
登录后复制
项目主页:http://www.open-open.com/lib/view/home/1441426543628
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。