使用下一个版本的ECMAScript编写模块化和可扩展的CSS:unistyle_html/css_WEB-ITnose

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:

  1. npm install --save unistyle

登录后复制

立即学习“前端免费学习笔记(深入)”;

CLI Usage

  1. $> 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

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

点点赞赏,手留余香

给TA打赏
共0人
还没有人赞赏,快来当第一个赞赏的人吧!
    编程技术

    css3实现垂直居中-flex_html/css_WEB-ITnose

    2025-3-29 8:57:22

    编程技术

    部分浏览器上a标签包裹的dom元素显示不正常_html/css_WEB-ITnose

    2025-3-29 8:57:31

    0 条回复 A文章作者 M管理员
    欢迎您,新朋友,感谢参与互动!
      暂无讨论,说说你的看法吧
    个人中心
    购物车
    优惠劵
    今日签到
    私信列表
    搜索