Full CSS support for JSX without compromises
MIT License
Bot releases are visible (Hide)
We are excited to release the first beta of v2 🎉
optimizeForSpeed
mode for fast styles injection when in productioncss
Details at #288 and the README.
The following patch applies to previous 2.x versions as well.
module.exports
in external styles (#267)Huge thanks to @eliot-akira for discovering the issue and debugging #267 and @thysultan for the great work on Stylis!
Published by giuseppeg over 7 years ago
Thanks to @thysultan for the Stylis patches!
calc
is ignored (#223)Huge thanks to @thysultan for fixing the relevant bugs in Stylis and @soulchainer, @Larry850806 and @jaydenseric for the bug reports!
Published by giuseppeg over 7 years ago
Published by giuseppeg over 7 years ago
Published by giuseppeg over 7 years ago
// component.js
import styles from './styles'
export default () => (
<p>
Hello World â–²
<style jsx>{styles}</style>
</p>
)
// styles.js
const color = 'red'
export default `
p { color: ${color} }
`
:not()
does not seem to be adding prefix (#146) [@giuseppeg]global
breaks when the selector has a combinator (#144) [@thysultan];
instead of }
(#144) [@thysultan]styled-jsx/style
's flush
now returns a Map<styleId: number, component: React$Component>
instead of an Array
.Huge thanks to @phtoussaint, @timneutkens, @pixelass, and @xekri for improving the docs!