# airbnb/react-with-styles

Use CSS-in-JavaScript with themes for React without being tightly coupled to one implementation

Repository: https://github.com/airbnb/react-with-styles
Canonical: https://ross.abutalabs.com/products/react-with-styles
Language: JavaScript
License: MIT
License Family: permissive
Topics: react, css, css-in-js
Last push: 2024-04-12T15:00:31+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3662, "days_push": 873, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1690, forks 101 (observed 2026-08-28T04:05:22.580860+00:00)

## What it is
A React library for using CSS-in-JavaScript with shared theme support without coupling components to a specific CSS-in-JS implementation like Aphrodite, Radium, or React Native. It provides an abstraction layer with pluggable interfaces so components can access theme values while the underlying styling engine remains swappable.

## Use cases
- style React components with CSS-in-JS without vendor lock-in
- share theme colors and fonts across React components
- swap between Aphrodite, JSS, or React Native styling backends
- support RTL and LTR styling in themed React apps
- migrate a component library between CSS-in-JS implementations

## When to choose
- you maintain an existing Airbnb-style React codebase already using react-with-styles
- you need theme-aware styling decoupled from a specific CSS-in-JS engine
- you want one component codebase to work with both web and React Native styles

## When to avoid
- starting a new project - Airbnb itself moved to Linaria and this is in maintenance mode
- you are happy committing to a single modern CSS-in-JS or CSS solution
- you need actively maintained tooling with new React ecosystem features

## Facets
- artifact type: library
- maturity: maintenance
- function: css-framework, ui-components, theme
- domain: web-development, frontend
- platform: browser
- tags: css-in-js, react, theming, abstraction-layer, nodejs

## Member repositories
- airbnb/react-with-styles (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:22.580860+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-30T03:38:21.093197+00:00, confidence not recorded.
  - readme: https://github.com/airbnb/react-with-styles (fetched 2026-08-28T04:05:22.580860+00:00, sha 4949efdf3f91)
  - registry_npm: https://registry.npmjs.org/react-with-styles (fetched 2026-08-29T11:13:35.015705+00:00, sha f246dd04209a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
