Back to Explore

vercel/styled-jsx

GitHub
2 watchersOpen source

Last release:

styled-jsx is a CSS-in-JSX solution for React that provides full, scoped, component-friendly CSS support, rendered on the server or the client. It helps isolate styles to components (using generated class names), supports global styles, and includes dynamic styles for values coming from props, state, or class toggling, plus options like source maps and vendor prefixing.

Project status

  • Maintenance status: The repo shows ongoing work (upstream push on 2026-05-21), but the most recent published updates in the provided history stop at v5.1.7 (2025-04-30), about 13 months ago, so it appears low-cadence rather than fast-moving.
  • Update cadence: From v5.1.7 (2025-04-30) back, the next updates are spaced widely (for example v5.1.6 and v5.1.5 in May 2024, then earlier fixes in 2023 and 2022). This suggests an intermittent cadence with occasional targeted patches.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v5.1.7

    v5.1.7 includes a bug fix intended to make styled-jsx work more reliably with React 18 hydration when using the useInsertionEffect hook. The fix adds logic to ensure registry insertion falls back to useLayoutEffect under certain conditions.

  • v5.1.6

    v5.1.6 is a small packaging-only release. The only documented change is moving TypeScript from runtime dependencies to devDependencies in package.json.

  • v5.1.5

    v5.1.5 is described as a small bug fix for declaration file typing context. The diff shows the project added a TypeScript type-checking step and modified several .d.ts files to adjust how the React JSX types are imported.

  • v5.1.4

    Release v5.1.4 contains a small type definition update described as using a scoped JSX namespace. The code diff only changes TypeScript declaration files, with no runtime implementation changes.

  • v5.1.3

    v5.1.3 primarily updates styled-jsx to declare compatibility with React 19 by widening the peerDependencies range. The code diff also includes a small dependency bump (loader-utils 1.4.1 to 1.4.2) and an update to the GitHub issue template.

  • v5.1.2

    v5.1.2 is a TypeScript typing-only patch release. The release notes describe a bug fix related to including global typings, and the code diff shows declaration-file reference wiring changes to ensure the package’s global types are included.

  • v5.1.1

    v5.1.1 contains a small change to the TypeScript typings for the styled-jsx macro module, described as a typo fix. The actual diff also includes dependency updates (loader-utils and its transitive emojis-list) that are not mentioned in the release notes.

  • v5.1.0

    v5.1.0 adds client-only handling for React Server Components (RSC) by importing the `client-only` package at module load time. The release notes only mention the RSC behavior change, but the actual diff also includes multiple dependency and lockfile updates.

    BreakingFeatures
  • v5.0.7

    v5.0.7 is a small bug fix release that adds a React context display name for better developer tooling output. No behavioral or API changes are evident from the code diff.

  • v5.0.6

    Release v5.0.6 contains a targeted change to how the Babel macro is loaded, shifting to dynamic loading of babel-plugin-macros. The code diff also shows structural changes in the macro entry point module export shape and some build dependency/version updates.