tailuicss
A semantic CSS-first layer on top of Tailwind CSS. Write class="ui-button ui-primary" instead of 40 utility classes.
1,366
| Install | |
|---|---|
npm install tailuicss |
|
| Latest Version: | 2.4.1 |
| License: | MIT |
| Last Updated: | Feb 21, 2026 |
| Links: | GitHub · npm |
Maintainer: codesenior
TailUI
The semantic CSS layer for Tailwind CSS
Stop writing 40 utility classes per element. Write ui-button ui-primary instead.
Why TailUI?
<!-- ❌ Before: Tailwind at scale -->
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg font-medium
transition-all hover:bg-blue-700 active:bg-blue-800 shadow-sm
disabled:opacity-50 disabled:cursor-not-allowed">
Save
</button>
<!-- ✅ After: TailUI -->
<button class="ui-button ui-primary">Save</button>
Same output. 80% less code. Zero runtime. Pure CSS.
Quick Start
npm install tailuicss
// tailwind.config.js
plugins: [require('tailuicss')()]
// postcss.config.js
plugins: {
'tailuicss/postcss': {},
tailwindcss: {},
}
That's it. Start using ui-button, ui-card, ui-input, and 20 more components.
Features
- 🎨 20 production-ready components — Button, Card, Modal, Input, Toast, and more
- 🌙 Dark mode built-in — One
data-theme="dark"attribute switches everything - 🔧 Full Tailwind power — Use
@apply, CSS variables, and all Tailwind utilities - 📦 Framework agnostic — React, Vue, Svelte, Angular, Astro, plain HTML
- 🤖 AI generation — Generate typed components with OpenAI, Claude, Gemini, or Mistral
- 🔄 Migration CLI — Convert existing Tailwind code to TailUI automatically
- ⚡ Zero JS runtime — Pure CSS, no bundle bloat
Documentation
👉 Read the full documentation →
AI & Editor Integration
TailUI provides a llms.txt file for AI assistants and code editors:
https://tailuicss.com/llms.txt
Add this to your Cursor rules, Windsurf, or any AI-powered editor for perfect TailUI code generation.
License
Related Packages
flyonui
The easiest, free and open-source Tailwind CSS component library with semantic c...
336,008
2,537
Version History
| Version | Released | License |
|---|---|---|
| 2.4.1 | MIT | |
| 2.4.0 | MIT | |
| 2.3.1 | MIT | |
| 2.3.0 | MIT | |
| 2.2.1 | MIT | |
| 2.2.0 | MIT | |
| 2.1.0 | MIT | |
| 2.0.0 | MIT | |
| 1.0.4 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT |