catom:JS库中的0运行时CSS

原子0运行时CSS js CSS工具阶段:Pre Alpha() Catom允许您在javascript / typescript文件中编写CSS并从中创建高度优化CSS。每个规则都会在其中创建一个唯一的类定义,它为您提供了100%的自由度来放置生成CSS包。您的javascript代码具有对任何样式的0个引用,剩下的只是已编译的散列clasnames作为字符串。它与框架无关,因为它发出纯CSS并仅保留类名例App.js中的某个位置import { css } from "catom" ; const styledButton = css ( { color : "#ff0000" , borderRadius : "5px" , padding : "4px" , } ) ; const styledDiv = css ( { color : "blue" , borderRadius : "5px" , padding : "4px" } ) ; function App ( ) { return ( < div className
zip
catom-master.zip 预估大小:15个文件
folder
catom-master 文件夹
file
package.json 1KB
file
LICENSE 1KB
folder
src 文件夹
file
babelPlugin.ts 1KB
folder
plugin 文件夹
file
astObject.ts 3KB
file
cssTransform.ts 3KB
file
hash.ts 2KB
file
constants.ts 548B
file
css.ts 507B
file
index.ts 412B
file
tsconfig.json 328B
file
.gitignore 1KB
file
babelPlugin.js 48B
file
README.md 3KB
file
yarn.lock 10KB
file
css.js 40B
zip 文件大小:14.52KB