postcss-jsx
postcss-jsx copied to clipboard
PostCSS syntax for parsing CSS in JS literals
If not, maybe one of the bigger communities (stylelint, styled-components, emotion, other css-in-js projects, a coalition of multiple communities) can take over?
Failing test cases for #53.
Ref: https://github.com/stylelint/stylelint/issues/4247
Hi, I am one of maintainers of [stylelint-processor-styled-components](https://github.com/styled-components/stylelint-processor-styled-components). Before stylelint supports `syntax: css-in-js`, users lint styles with the processor. As discussed in [stylelint-processor-styled-components#278](https://github.com/styled-components/stylelint-processor-styled-components/issues/278), `postcss-jsx` analyzes the whole AST more completely...
Syntax incorrectly parse, and then stringify complicated CSS-in-JS, where tagged template literal has css`` template literal inside. Input: ```js import styled, { css } from 'styled-components'; const Message = styled.p`...
Hello, First of all, thank you for maintaining this library, it seems like a very interesting concept. I started looking into solutions like this after I discovered [stylis][stylis], which is...
JSXAttribute: (path) => { if (/^(?:css|style)$/.test(path.node.name.name)) { addObjectJob(path.get("value.expression")); } }, 目前看只支持css合style属性,能否增加一个配置项去解析自定义的props,一些组件传样式过去还挺常见的,比如bodyStyle