styled-jsx

Full CSS support for JSX without compromises

MIT License

Downloads
26.7M
Stars
7.6K
Committers
77

Bot releases are hidden (Show)

styled-jsx - 0.2.4

Published by rauchg almost 8 years ago

Patches

  • Comments work properly (#57, PR #58) [@giuseppeg]
styled-jsx - 0.2.3

Published by rauchg almost 8 years ago

Patches

  • Fix combinators usage in selectors (#50, PR #54) [@nkzawa]
  • Fix updated styles not being applied (zeit/next.js#475, zeit/next.js#495, PR #53) [@nkzawa]
styled-jsx - 0.2.2

Published by rauchg almost 8 years ago

Patch

  • Fix pseudo-selectors (#39, PR #48) [@nkzawa]
styled-jsx - 0.2.1

Published by rauchg almost 8 years ago

Patch

Add missing server export [@nkzawa]

styled-jsx - 0.2.0

Published by rauchg almost 8 years ago

Features

New APIs for server rendering styles that prevent duplication on the client when hydrating:

  • Adds styled-jsx/server
    • flush() (default) returns an array of React.Element for each <style>
    • flushToHTML returns an HTML string
  • Fixes #22, PR #46 [@rauchg]
styled-jsx - 0.1.3

Published by rauchg almost 8 years ago

Patches

Fix multiple occurrences of components per file (#12, PR #45) [@giuseppeg]

styled-jsx - 0.1.2

Published by rauchg almost 8 years ago

Patches

Fix multiple style occurrences by introducing styleId into <_JSXStyle> (PR #44) [@nkzawa]

styled-jsx - 0.1.1

Published by rauchg almost 8 years ago

Minor Changes

  • Make data-jsx use number literals instead of string literals for better memory / diff performance [@rauchg]

Patches

  • It's now possible to combine a global and scoped style in the same component (#41) [@rauchg]

    export default () => (
      <div>
        <p>hi</p>
        <style jsx global>{`
          body {
            background: red
          }
        `}</style>
        <style jsx>{`p { color: red; }`}</style>
      </div>
    )
    
styled-jsx -

Published by nkzawa almost 8 years ago

Minor Changes

  • Support targetting the root [@rauchg]
  • Support global style [@rauchg]
  • Remove unused styles (#31) [@nkzawa]

Patches

  • Add NPM version badge [@thisguychris]
  • Add support for whitespace inside <style> (#24) [@rauchg]
  • Fix tests [@rauchg]
  • Improve README [@leo, @rauchg ]
styled-jsx -

Published by leo almost 8 years ago

Patches

styled-jsx -

Published by leo almost 8 years ago

Patches

styled-jsx -

Published by leo almost 8 years ago

Patches

  • Exposed entire API: 5924ab0
styled-jsx -

Published by leo almost 8 years ago

Patches

styled-jsx -

Published by leo almost 8 years ago

Patches

  • Tell Babel to load the right file: 9d8ae9b
styled-jsx -

Published by leo almost 8 years ago

Patches

  • License added: d93ad1d
  • Badges for XO, zeit.chat and Travis CI added: becf0cb
  • Config file for testing on Travis CI: 42adc71
  • Use XO for linting: 65ff822
  • Added repository reference in package.json: https://github.com/zeit/styled-jsx/pull/10
  • Transpile code using Babel: fecfd33
  • Make test files read from the right directory: 427c79e and 6f190ae
  • Only publish important files to npm: 39c4d10
styled-jsx -

Published by leo almost 8 years ago

Hello, world! 🎁 🎅