【文件属性】:
文件名称:react-styles-parser:用于在 React Styles 中编写漂亮样式的解析器
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-21 15:45:08
JavaScript
React样式解析器
这个包的目的是允许开发人员/设计人员使用他们熟悉的语法为 React Styles 编写样式。 使用这个解析器,我们可以让任何人像编写 scss 一样编写样式。
例如:
// Style Examples
// You can even use variables in the template string.
// Just define/import the variables above and use them
// like background: ${backgroundColor} in the string.
module . exports = `
h1 {
background: blue;
minWidth {
320 {
background: lightblue
}
【文件预览】:
react-styles-parser-master
----src()
--------parser.js(1KB)
--------vendor()
----gulpfile.js(400B)
----__tests__()
--------parser-test.js(2KB)
----README.md(2KB)
----dist()
--------parser.js(2KB)
--------vendor()
----.gitignore(36B)
----index.js(78B)
----package.json(730B)