tw-in-js/twind

The smallest, fastest, most feature complete Tailwind-in-JS solution in existence.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 6 minutes ago
Type:Library / SDKCategory(s):CSS Frameworks & StylingWeb Development
Added to GitGenius on September 17th, 2026
Created on December 5th, 2020
Open Issues & Pull Requests: 13 (+0)
GitHub issues: Enabled
Number of forks: 103
Total Stargazers: 3,948 (+0)
Total Subscribers: 13 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 4.2 days
Mean response time: 41.5 days
90th percentile: 105.2 days
Tracked items: 17

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 2
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 240 days
Stale 30+ days: 2
Stale 90+ days: 2

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • 🛑 Abandoned (23)
  • 🐞 Bug (8)
  • 📚 Documentation (8)
  • ✨ Feature Request (5)

Most active issues this week

Sign in to see which issues are moving.

Detailed Description

Twind is a Tailwind-in-JS compiler that converts utility classes into CSS at runtime without requiring a build step.

The tool solves the problem of using Tailwind's utility-first CSS approach in environments where a traditional build pipeline is unavailable or undesirable. It works by compiling utility classes to CSS on the fly in the browser, Node.js, Deno, workers, or other JavaScript environments. This approach eliminates the need for PostCSS, configuration files, purging, or autoprefixing while maintaining feature parity with Tailwind v3. The compiler ships with the framework itself rather than pre-generated CSS, meaning any number of styles and variants incur only a single fixed runtime cost.

Twind suits projects that need Tailwind's constraints and design system without build tooling, including server-rendered applications and framework-agnostic setups. It works with any environment that runs HTML and JavaScript. The tool is fully tree-shakeable, allowing you to include only the features you need, and supports static extraction to eliminate runtime overhead when desired. It offers extended variants and rules beyond standard Tailwind, an escape hatch for arbitrary CSS, and optional class name hashing to prevent conflicts. The project is configurable for custom themes, rules, and variants, and can be extended via presets.

Development activity shows consistent engagement with community discussion channels including GitHub Discussions and Discord. The project maintains a contributing guide and has established migration documentation for version upgrades. The codebase is written in TypeScript and emphasizes type safety throughout.