# gajus/react-css-modules

Seamless mapping of class names to CSS modules inside of React components.

Repository: https://github.com/gajus/react-css-modules
Canonical: https://ross.abutalabs.com/products/react-css-modules
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2019-11-02T09:55:04+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4026, "days_push": 2496, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5162, forks 212 (observed 2026-08-28T04:09:11.512868+00:00)

## What it is
A React library that automatically maps class names to CSS Modules inside React components, enabling locally scoped, modular CSS. It is deprecated in favor of the lighter babel-plugin-react-css-modules alternative.

## Use cases
- scope CSS class names in React components
- map style objects to CSS modules automatically
- use CSS Modules with webpack or Browserify
- compose and extend component styles with SASS or LESS
- handle multiple CSS modules per component

## When to choose
- maintaining a legacy React codebase already using react-css-modules
- needing runtime style mapping features not covered by babel-plugin-react-css-modules

## When to avoid
- starting a new React project - use babel-plugin-react-css-modules or native CSS Modules instead
- needing minimal bundle size or low performance overhead
- requiring active maintenance or modern React compatibility

## Facets
- artifact type: library
- maturity: abandoned
- function: css-framework, ui-components
- domain: frontend, web-development
- platform: browser, cross-platform
- tags: react, css-modules, deprecated, style-scoping, webpack, nodejs

## Member repositories
- gajus/react-css-modules (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:11.512868+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-29T18:01:53.522731+00:00, confidence not recorded.
  - readme: https://github.com/gajus/react-css-modules (fetched 2026-08-28T04:09:11.512868+00:00, sha 3645f1e442ba)
  - registry_npm: https://registry.npmjs.org/react-css-modules (fetched 2026-08-29T08:56:11.410620+00:00, sha f7e84fc48a3d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
