Packages

styled-components

6.6.0 · 12 Oct 2026MIT14.8M / weekRepositoryHomepagenpmAtom feed

Your version

5.0.1

4 Feb 2020Where it was published

5.3.11 is the newest release of 5.x.

In short

2 new2 faster

Release note

  • Added useTheme hook to named exports for react native

  • Performance enhancements

    • Refactored hashing function that is a bit faster in benchmarks

    • Fixed a bitwise math issue that was causing SSR performance degradations due to how we allocate typed arrays under the hood

  • Added some helpful new dev-time warnings for antipatterns

    • Recommending against usage of css @import inside createGlobalStyle and what to do instead

    • Catching and warning against dynamic creation of styled-components inside other component render paths

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.