Full CSS support for JSX without compromises
MIT License
Bot releases are hidden (Show)
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!
package.json
: 634b05e72c568581c5aba8506d544c07bcf61315Huge thanks to @nikvm for his help!
cubic-bezier
: #124Huge thanks to @sheerun, @fatfisz, @adjohnson916 and @thysultan for their help!
Huge thanks to @arunoda for their help!
Published by rauchg almost 8 years ago
Simplify external API, fix flush
(zeit/next.js#496, PR #59) [@nkzawa]