Ross ROSS = Recommend OSS · open-source software intelligence for agents

ben-rogerson/twin.macro

🦹‍♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time. observed · 2026-08-28

github.com/ben-rogerson/twin.macro · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

56/100

  • Activity 73
  • Release rhythm 8
  • Longevity 100
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: 2387
  • days_rel: n/a
  • days_push: 164
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

8027 stars · 179 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Twin.macro is a Babel macro that compiles Tailwind CSS classes into CSS-in-JS objects at build time, supporting libraries like emotion, styled-components, stitches, and goober. It lets you style React and Solid components with Tailwind's `tw` prop and template literals without shipping a client-side Tailwind bundle.

Use cases

  • use tailwind classes with styled-components
  • style react components with tailwind and emotion
  • compile tailwind classes to css-in-js at build time
  • conditionally apply tailwind styles in javascript
  • avoid shipping tailwind runtime bundle
  • mix sass styles with tailwind utilities

When to choose

  • you use a css-in-js library and want tailwind's utility classes
  • you need conditional or dynamic tailwind styling in components
  • you want tailwind styles compiled at build time with no runtime css

When to avoid

  • you use plain tailwind without css-in-js
  • your bundler doesn't support babel macros
  • you prefer zero-runtime alternatives like vanilla tailwind or linaria

Facets

library · maturity active

css-framework build-tool ui-components frontend web-development web-design browser cross-platform tailwindcss css-in-js babel-macro styled-components emotion stitches goober react solidjs nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
ben-rogerson/twin.macromain56

For agents

markdown · JSON · MCP: product_card(name="ben-rogerson/twin.macro")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem