</>PackageGraphPackageGraph

styled-jsx

npmv5.1.7TypeScript

Full CSS support for JSX without compromises

Adopt with care

styled-jsx is usable, with caveats. Last published 497 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 497 days ago.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 1007 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 3 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding styled-jsx to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

1007 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing styled-jsx, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >= 12.0.0
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the styled-jsx README.

export default () => (
  <div>
    <p>only this paragraph will get the style :)</p>

    {/* you can include <Component />s here that include
         other <p>s that don't get unexpected styles! */}

    <style jsx>{`
      p {
        color: red;
      }
    `}</style>
  </div>
)

styled-jsx vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
styled-jsxthis page01MIT1 year ago
postcss249.3M7MIT1 day ago
csstype142.8M2MIT1 day ago
diff124.1M4BSD-3-Clause1 day ago
react-style-singleton59.1M2MIT1 day ago
css.escape48.7M2MIT1 day ago

Dependencies

Declared by styled-jsx v5.1.7. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (31)

@babel/cli 7.18.10@babel/core 7.12.3@babel/plugin-proposal-object-rest-spread 7.12.1@babel/plugin-syntax-jsx 7.14.5@babel/plugin-transform-arrow-functions 7.12.1@babel/plugin-transform-modules-commonjs 7.12.1@babel/plugin-transform-runtime 7.12.1@babel/preset-env 7.12.1@babel/preset-react 7.12.5@babel/register 7.12.1@babel/runtime 7.12.5@babel/types 7.15.0@types/react 18.3.3ava 4.3.1babel-plugin-macros 2.8.0bunchee 2.1.5convert-source-map 1.7.0eslint 7.32.0eslint-config-prettier 4.0.0husky 4.3.0loader-utils 1.4.2prettier 1.16.4pretty-quick 3.1.0react 17.0.1react-dom 17.0.1semantic-release 17.2.2source-map 0.7.3string-hash 1.1.3stylis 3.5.4stylis-rule-sheet 0.0.10typescript ~5.0.0

Used by

Popular packages that depend on styled-jsx.

Relationship graph

Dependencies (left) and dependents (right) of styled-jsx.

client-onlyreactnextstyled-jsx
styled-jsx dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 21 days apart.

Recent versions of styled-jsx
VersionPublishedSizeLicense
5.1.7latest1 year ago1007 KBMIT
5.1.62 years ago1008 KBMIT
5.1.52 years ago1008 KBMIT
5.1.42 years ago1008 KBMIT
5.1.32 years ago1008 KBMIT
5.1.23 years ago1008 KBMIT
5.1.13 years ago1008 KBMIT
5.1.03 years ago986 KBMIT
5.0.74 years ago968 KBMIT
5.0.64 years ago968 KBMIT
5.0.54 years ago968 KBMIT
5.0.44 years ago848 KBMIT
5.0.34 years ago848 KBMIT
5.0.24 years ago847 KBMIT
5.0.14 years ago847 KBMIT

Overview

styled-jsx is an npm package that full CSS support for JSX without compromises. It has 1 known dependents in the graph. The latest version is 5.1.7, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need full CSS support for JSX without compromises and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (33 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use styled-jsx?

styled-jsx is usable, with caveats. Last published 497 days ago.

How do I install styled-jsx?

Run `npm install styled-jsx` to add styled-jsx to your npm project.

How many dependencies does styled-jsx have?

styled-jsx declares 33 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 1007 KB on disk.

What license is styled-jsx released under?

styled-jsx is distributed under the MIT license.

How popular is styled-jsx?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on styled-jsx.

Is styled-jsx still maintained?

The most recent release of styled-jsx (v5.1.7) was published 1 year ago.

Does styled-jsx run install scripts?

No. styled-jsx does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.