astroturfcss/astroturf
Better Styling through Compiling: CSS-in-JS for those that want it all. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3606
- days_rel: n/a
- days_push: 988
- n_releases_24m: 0
Adoption not part of the score
2284 stars · 57 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Astroturf is a zero-runtime CSS-in-JS library that lets you write CSS in template literals inside your JavaScript files while keeping styles fully static. It compiles styles through your existing CSS pipeline (Sass, PostCSS, Less) at build time with no runtime style parsing.
Use cases
- write css-in-js without runtime overhead
- keep component styles in the same file as the component
- use sass or postcss with css-in-js
- extract static css from javascript components
- style react components with zero runtime
- integrate existing css tooling with component-scoped styles
When to choose
- you want css-in-js ergonomics but static, extractable CSS files
- you already have a Sass/PostCSS/Less pipeline you want to keep
- runtime style injection is unacceptable for performance or CSP reasons
- you prefer colocating styles with components over separate CSS files
When to avoid
- you need fully dynamic runtime theming or style computation
- your project uses a framework or bundler without astroturf loader support
- you want a large ecosystem of styling primitives like styled-system
- the project appears to be in maintenance mode with infrequent releases
Facets
library · maturity maintenance
css-framework build-tool templating web-development frontend web-design cross-platform css-in-js zero-runtime static-css sass postcss less component-styling webpack nodejs web-server
2 sources
- readme: https://github.com/astroturfcss/astroturf · fetched 2026-08-28 · 0c3096c60ec6
- homepage: https://astroturfcss.github.io/astroturf/ · fetched 2026-08-29 · f5e9694a3067
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| astroturfcss/astroturf | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="astroturfcss/astroturf")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem