# threepointone/glamor

inline css for react et al

Repository: https://github.com/threepointone/glamor
Canonical: https://ross.abutalabs.com/products/glamor
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2023-12-21T09:00:30+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": 3698, "days_push": 986, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3668, forks 199 (observed 2026-08-28T04:08:13.436857+00:00)

## What it is
Glamor is a CSS-in-JS library that lets you define styles as JavaScript objects and attach them to DOM elements via generated classes or data attributes. It supports pseudo-classes, media queries, keyframes, vendor prefixing, and server-side rendering, and is framework-independent though designed with React in mind.

## Use cases
- write component styles in javascript instead of css files
- generate scoped css class names from style objects in react
- handle hover states and media queries in inline styles
- do server-side rendered styling for a react app
- merge and compose style rules dynamically
- add vendor prefixes automatically to css properties

## When to choose
- you want a lightweight, framework-agnostic css-in-js runtime
- you need server-side rendering support with extracted styles
- you prefer object-based style definitions with rule merging

## When to avoid
- you are starting a new project - modern alternatives like emotion or stitches are actively maintained
- you want zero-runtime or build-time css extraction
- you need a large ecosystem or ongoing updates

## Facets
- artifact type: library
- maturity: maintenance
- function: css-framework, ui-components, templating
- domain: web-development, frontend, web-design
- platform: browser, cross-platform
- tags: css-in-js, react, inline-styles, style-management, server-side-rendering, nodejs

## Member repositories
- threepointone/glamor (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:13.436857+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:31:21.926996+00:00, confidence not recorded.
  - readme: https://github.com/threepointone/glamor (fetched 2026-08-28T04:08:13.436857+00:00, sha 8bd50a851f23)
  - registry_npm: https://registry.npmjs.org/glamor (fetched 2026-08-29T09:25:42.697708+00:00, sha f28c0dc45aba)
- Data as of 2026-08-30T08:39:29.467469+00:00.
