Stack
Tool page
Style directly in the HTML: no more CSS files to manage, no more BEM naming.
Tailwind changed the way we write CSS. Once you adopt it, going back to classic CSS or Bootstrap feels laborious.
| Alternative | Why I did not keep it |
|---|---|
| CSS Modules | CSS Modules for teams that want clean separate files. Tailwind for iteration speed. Better at: Clean, readable HTML, native scoping, no classes to memorize Worse at: Separate CSS files to maintain, names to invent, slower to iterate |
| Bootstrap | Bootstrap to start very fast with components. Tailwind for a custom design. Better at: Ready-to-use pre-built components, exhaustive documentation, very well known Worse at: Uniform design that is hard to customize, heavier bundle, less flexible |
| styled-components / Emotion | CSS-in-JS for highly dynamic styles tied to props. Tailwind for the vast majority of cases. Better at: CSS-in-JS with dynamic props, perfect style/component colocation Worse at: Performance (runtime CSS), heavier bundle, more complex configuration |
The CSS framework that changed the industry. Once adopted, there's no going back.