# microsoft/griffel

CSS-in-JS with ahead-of-time compilation ⚡️

Repository: https://github.com/microsoft/griffel
Canonical: https://ross.abutalabs.com/products/griffel
Homepage: https://griffel.js.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: css-in-js, react, css
Last push: 2026-08-25T14:18:11+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 1723, "days_push": 8, "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 1281, forks 80 (observed 2026-08-28T04:04:13.900036+00:00)

## What it is
Griffel is a CSS-in-JS library for React with near-zero runtime, ahead-of-time compilation, and atomic CSS output. It supports server-side rendering, optional build-time transforms via Webpack, and type-safe styles through csstype.

## Use cases
- style react components with javascript objects
- css-in-js with near-zero runtime
- server-side render styles in next.js
- precompile styles at build time
- avoid css specificity issues with atomic css
- extract css to stylesheets instead of runtime insertion
- debug css-in-js styles in chrome

## When to choose
- building react apps, especially with fluent ui or next.js
- you want type-safe styles and atomic css
- you need ssr support with minimal runtime cost

## When to avoid
- non-react projects
- you prefer plain css or utility-first frameworks like tailwind
- you need stable css extraction, which is still experimental

## Facets
- artifact type: library
- maturity: active
- function: css-framework, frontend-framework, build-tool, ssr
- domain: web-development, frontend, web-design
- platform: browser
- tags: css-in-js, atomic-css, react, ahead-of-time-compilation, type-safe-styles, webpack-plugin, browser-extension, nodejs, web-server

## Member repositories
- microsoft/griffel (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.900036+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-30T05:02:33.130058+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/griffel (fetched 2026-08-28T04:04:13.900036+00:00, sha f752f609869f)
  - homepage: https://griffel.js.org (fetched 2026-08-29T12:13:12.027158+00:00, sha 47b30e96befc)
  - site_page: https://griffel.js.org/react/install (fetched 2026-08-29T12:13:12.036800+00:00, sha d941d6063379)
- Data as of 2026-08-30T08:39:29.467469+00:00.
