emeth:css模块的主题

时间:2021-02-17 20:20:54
【文件属性】:
文件名称:emeth:css模块的主题
文件大小:472KB
文件格式:ZIP
更新时间:2021-02-17 20:20:54
TypeScript Emeth Emeth是一个使CSS模块更易于处理的超级简单的小工具。 它允许以类为主题,而无需进行额外的工作,并且可以轻松地找到未使用CSS类。 演示版 看到它在行动 或运行它 git clone git@github.com:jspears/emeth.git cd emeth npm install npm run start & open http://localhost:8082 安装 $ npm install emeth 用法 使用emeth有三件事。 首先是CSS模块,它对它们有帮助,但是从技术上讲,您不需要它们。 他们被“安装”了主题功能。 要访问主题CSS,请将您的类传递给themeClass,它将返回一个可用于注入类的函数 安装主题 像这样在模块中设置组件。 theme.js import './YourComponent.less' ;
【文件预览】:
emeth-master
----.travis.yml(276B)
----docs()
--------0.2819dcd2d26343a696f2.style.css.map(614B)
--------0.2819dcd2d26343a696f2.style.css(597B)
--------index.js(131KB)
--------index.js.map(323KB)
--------9b6fbf52b6b8494fb2ed.style.css(240B)
--------index.html(427B)
--------index-9b6fbf52b6b8494fb2ed.js(739KB)
----package.json(1KB)
----test()
--------index-test.ts(1KB)
----Readme.md(1KB)
----src()
--------types.ts(244B)
--------index.ts(3KB)
----.npmignore(50B)
----tsconfig.json(6KB)
----.gitignore(62B)
----plugin.js(166B)
----.npmrc(36B)
----public()
--------blue()
--------Switcher.tsx(1KB)
--------red()
--------tsconfig.json(6KB)
--------App.tsx(720B)
--------theme()
--------index.ts(72B)
----yarn.lock(388KB)

网友评论