# gregberge/twc

Create reusable React + Tailwind CSS components in one line ✨

Repository: https://github.com/gregberge/twc
Canonical: https://ross.abutalabs.com/products/twc
Homepage: https://react-twc.vercel.app
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, styled-components, tailwindcss
Last push: 2025-12-14T20:10:06+00:00

## Health v2 (maintenance only)
Score: 54/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 57, release rhythm 40, longevity 71
- inputs: {"age_days": 999, "days_push": 262, "days_rel": 411, "gap_med": 17, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1417, forks 32 (observed 2026-08-28T04:04:40.004392+00:00)

## What it is
TWC is a lightweight (0.49kb) TypeScript library for creating reusable React components styled with Tailwind CSS in a single line, using a styled-components-like tagged template API. It supports prop-based styling, the asChild pattern, React Server Components, and first-class tailwind-merge and cva integration.

## Use cases
- create reusable tailwind css react components in one line
- reduce boilerplate when wrapping tailwind classes in react components
- merge tailwind classes with class name overrides
- style components based on props with tailwind
- use tailwind components in react server components
- reuse component markup with asChild pattern

## When to choose
- you use React with Tailwind CSS and want styled-components ergonomics without runtime CSS-in-JS
- you want a tiny library with editor autocompletion and RSC compatibility
- you already use tailwind-merge or cva and want first-class integration

## When to avoid
- you don't use Tailwind CSS or React
- you need full CSS-in-JS with dynamic runtime styles rather than utility classes
- your team prefers plain clsx/cva helpers without an extra abstraction

## Facets
- artifact type: library
- maturity: active
- function: ui-components, css-framework, frontend-framework, templating
- domain: web-development, frontend, developer-tools
- platform: cross-platform
- tags: tailwindcss, react, styled-components, typescript, component-styling, tailwind-merge, cva, nodejs, web-server

## Member repositories
- gregberge/twc (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:40.004392+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-30T04:38:01.581817+00:00, confidence not recorded.
  - readme: https://github.com/gregberge/twc (fetched 2026-08-28T04:04:40.004392+00:00, sha 1d79fad1382c)
  - homepage: https://react-twc.vercel.app (fetched 2026-08-29T11:50:50.398798+00:00, sha d8f122004366)
- Data as of 2026-08-30T08:39:29.467469+00:00.
