# cxs-css/cxs

fast af css-in-js in 0.7kb

Repository: https://github.com/cxs-css/cxs
Canonical: https://ross.abutalabs.com/products/cxs
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2022-12-08T17:15:43+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3717, "days_push": 1364, "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 1182, forks 46 (observed 2026-08-28T04:03:54.269058+00:00)

## What it is
cxs is a minimal 0.7kb CSS-in-JS library that uses an atomic CSS approach for high performance and style deduplication. It is framework-independent with an optional React higher-order component API and supports server-side rendering via a static CSS string extraction method.

## Use cases
- generate css styles from javascript objects
- style react components without css files
- deduplicate repeated css rules for performance
- extract static css for server-side rendering
- add pseudoclasses and media queries in js
- create styled components with a tiny footprint

## When to choose
- you need an extremely small css-in-js solution with zero dependencies
- you want atomic css deduplication and dead-code elimination
- you need framework-independent styling with optional react support
- you want server-side rendered static css strings

## When to avoid
- you need client-side style rehydration for universal apps
- you want a full-featured styling solution with theming and advanced features
- you prefer tagged template literal css syntax
- you need an actively developed library with recent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: css-framework, ui-components, ssr
- domain: frontend, web-development
- platform: browser
- tags: css-in-js, atomic-css, react, tiny-library, zero-dependency, nodejs, web-server

## Member repositories
- cxs-css/cxs (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:54.269058+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-30T06:24:47.240103+00:00, confidence not recorded.
  - readme: https://github.com/cxs-css/cxs (fetched 2026-08-28T04:03:54.269058+00:00, sha 98187f56b36b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
