# Khan/aphrodite

Framework-agnostic CSS-in-JS with support for server-side rendering, browser prefixing, and minimum CSS generation

Repository: https://github.com/Khan/aphrodite
Canonical: https://ross.abutalabs.com/products/aphrodite
Language: JavaScript
License Family: other
Topics: javascript, css, aphrodite, css-in-js
Last push: 2025-07-24T18:52:57+00:00

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

## Adoption (not part of the score)
Stars 5339, forks 187 (observed 2026-08-28T04:09:15.820127+00:00)

## What it is
Aphrodite is a framework-agnostic CSS-in-JS library for JavaScript that lets you colocate styles with components using StyleSheet.create and a css() helper. It supports server-side rendering, automatic browser prefixing, media queries, pseudo-selectors, and injects only the minimal CSS needed into the DOM.

## Use cases
- style React components with colocated CSS-in-JS
- server-render styles without flash of unstyled content
- use pseudo-selectors like :hover without component state
- use media queries without window.matchMedia
- generate only the minimal CSS needed for a render
- use CSS-in-JS in non-React frameworks

## When to choose
- you want framework-agnostic CSS-in-JS that works with or without React
- you need server-side rendering support with minimal CSS injection
- you want automatic vendor prefixing and @font-face handling without a build step

## When to avoid
- you want a modern, actively developed CSS-in-JS solution with the latest ecosystem features
- you prefer static CSS extraction or utility-first CSS approaches
- your project requires a maintained library with ongoing community support

## Facets
- artifact type: library
- maturity: maintenance
- function: css-framework, ssr, ui-components
- domain: web-development, frontend
- platform: browser, cross-platform
- tags: css-in-js, inline-styles, react, style-injection, autoprefixing, nodejs

## Member repositories
- Khan/aphrodite (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:15.820127+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-29T17:58:50.367027+00:00, confidence not recorded.
  - readme: https://github.com/Khan/aphrodite (fetched 2026-08-28T04:09:15.820127+00:00, sha 6604f6d20511)
  - registry_npm: https://registry.npmjs.org/aphrodite (fetched 2026-08-29T08:53:32.400100+00:00, sha a81b8fdb802c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
