# styled-components/styled-components

Fast, expressive styling for React. Server components, client components, streaming SSR, React Native—one API.

Repository: https://github.com/styled-components/styled-components
Canonical: https://ross.abutalabs.com/products/styled-components
Homepage: https://styled-components.com
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, css-in-js, styled-components, css, reactnative, rsc
Last push: 2026-08-17T17:53:56+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 98, longevity 100
- inputs: {"age_days": 3669, "days_push": 16, "days_rel": 18, "gap_med": 10.5, "n_releases_24m": 29}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 41123, forks 2674 (observed 2026-08-28T04:12:08.462650+00:00)

## What it is
styled-components is a CSS-in-JS library for React that lets you write actual CSS in tagged template literals attached to components. It supports web React, React Native, server components, and streaming SSR with a single API.

## Use cases
- style react components with scoped css
- write css-in-js with props-based dynamic styles
- theme a react app with a theme provider
- share one styling api between web and react native
- server-side render styled react components
- extend and compose styled components

## When to choose
- you use React and want colocated, component-scoped styling
- you need dynamic styles driven by props or themes
- you target both web and React Native with one styling approach
- you need SSR or streaming SSR support

## When to avoid
- you prefer plain CSS, CSS modules, or utility-first frameworks like Tailwind
- your project does not use React
- you want zero runtime CSS in the browser

## Facets
- artifact type: library
- maturity: active
- function: css-framework, ui-components, frontend-framework, ssr
- domain: web-development, frontend, mobile-development
- platform: browser, cross-platform
- tags: css-in-js, react, react-native, react-server-components, theming, typescript, nodejs, web-server

## Member repositories
- styled-components/styled-components (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:08.462650+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:23:12.183463+00:00, confidence not recorded.
  - readme: https://github.com/styled-components/styled-components (fetched 2026-08-28T04:12:08.462650+00:00, sha 834de2d6bd2f)
  - homepage: https://styled-components.com (fetched 2026-08-29T07:46:38.203855+00:00, sha 900b2f85c3e7)
  - site_page: https://styled-components.com/docs (fetched 2026-08-29T07:46:38.213301+00:00, sha e2f44bc38f84)
  - site_page: https://styled-components.com/docs/compatibility (fetched 2026-08-29T07:46:38.215814+00:00, sha 39f1588ecdba)
  - site_page: https://styled-components.com/docs/advanced (fetched 2026-08-29T07:46:38.225081+00:00, sha 658e2cd81cf1)
  - site_page: https://styled-components.com/releases (fetched 2026-08-29T07:46:38.218656+00:00, sha f31acc69ac45)
- Data as of 2026-08-30T08:39:29.467469+00:00.
