OSS TanbouSign in with GitHub

CSS-in-JS for React using tagged templates with scoped styles, theming, SSR, and React Native support

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
41,099
Primary language
TypeScript
License
MIT
Repository last updated
Sep 28, 2026
On this page

Overview

styled-components binds CSS to React components through tagged template literals, providing generated scoped class names, prop-driven dynamic styles, theming, global styles, and SSR. The same API family covers client components, server components, streaming SSR, and React Native.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Define React components and CSS together with styled.element

APIs such as styled.button support normal CSS features including pseudo-selectors, media queries, nesting, and keyframes inside template literals.

Sources: [1]

Compose variants and design tokens with props, ThemeProvider, and css

Props can drive dynamic styles, ThemeProvider shares design tokens, and the css helper extracts reusable style blocks.

Sources: [1]

Extend the same styling model to SSR, RSC, and React Native

The project explicitly targets server components, client components, streaming SSR, and React Native with runtime-specific support.

Sources: [1][2]

Best fit

Fits React design systems organized around component-level styling and variants

It is useful when teams prefer component abstractions, themes, and prop-driven variants over separately named CSS classes and files.

Sources: [1]

Before adoption

Version 6.5.3 requires React 16.8+ and Node 16+

Package metadata requires React and React DOM >=16.8.0 and Node >=16; React Native usage additionally requires React Native >=0.68.0.

Sources: [2]

Version 6.5.3 fixes a TypeScript data-* augmentation error

The patch fixes TypeScript errors in projects that augment React HTML props with a data-* template-literal index signature.

Sources: [3]

Official sources

  1. [1]styled-components 6.5.3 README(2026-10-05)
  2. [2]styled-components 6.5.3 package metadata(2026-10-05)
  3. [3]styled-components 6.5.3 release(2026-10-05)
  4. [4]styled-components MIT license(2026-10-05)
Supplemental curator note

Version 6 ships built-in TypeScript types and targets React Server Components and streaming SSR. Existing v5 codebases should review migration changes and runtime styling costs.

Try it in 3 steps

  1. 1

    Install pinned styled-components 6.5.3

    Create an isolated npm project with styled-components and exact React peer dependencies.

    demo=$(mktemp -d "${TMPDIR:-/tmp}/styled-components.XXXXXX") && cd "$demo" && npm init -y >/dev/null && npm install --save-exact styled-components@6.5.3 react@19.2.0 react-dom@19.2.0
  2. 2

    Verify the package version

    Require the installed package to match the reviewed version.

    test "$(node -e "console.log(JSON.parse(require('fs').readFileSync('node_modules/styled-components/package.json')).version)")" = '6.5.3'
  3. 3

    Check styled, theme, and css APIs

    Verify representative component, shared-style, and theming APIs without starting a browser.

    test "$(node --input-type=module -e "import styled,{css,ThemeProvider} from 'styled-components'; console.log(Boolean(styled.div&&css&&ThemeProvider))")" = 'true'
Check the official README

Growth

Growth trends · Last 30 days

41,099 Stars

Trend data is still being collected.

Development activity

Last 90 days · weekly

Commits (last 30 days)
3
Open PRs
12

Development activity is still being collected.

Built with

Categories and tags

Categories

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • react
  • css-in-js
  • styled-components
  • css
  • reactnative
  • rsc
Stars
41,099
Forks
2,672
Watchers
397
Open issues
12
Contributors
345
Owner type
Organization
Primary language
TypeScript
License
MIT
Repository last updated
Sep 28, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?