Tailwind or Plain CSS?

Tailwind fans say they will never go back. Plain CSS fans say modern CSS removed the need for it. Both have a point, and the right answer depends on your project and your team.

Tailwind or Plain CSS? — Troiana insight cover

In short

Use Tailwind if you're building an app with a team and want fast, consistent styling, with design limits built in, particularly when using components. Use plain CSS for simple sites, long-lived projects with few dependencies, or when you want clean HTML and full use of modern CSS. Both produce small, fast sites when done well. Consistency and tokens matter more than this choice.

The same button, both ways

Tailwind styles elements with utility classes in your HTML:

<button class="rounded-md bg-teal-700 px-4 py-2 font-semibold text-white hover:bg-teal-800 focus-visible:outline-2">
  Save
</button>

Plain CSS uses a separate class, with its own rules:

<button class="button">Save</button>
.button {
  background: var(--color-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
}
.button:hover { background: var(--color-primary-dark); }
.button:focus-visible { outline: 2px solid currentColor; }

Neither is automatically “cleaner”. One keeps styles next to the markup, and the other keeps them separate.

Comparison

TailwindPlain CSS
SetupA build step, in most projectsNone
Speed of writingFast, once learnedDepends on experience
ConsistencyBuilt-in scaleRequires tokens and discipline
HTMLLong class listsShort and readable
NamingNot needed for most thingsYou need a naming approach
Unused CSSRemoved automaticallyCan build up over time
DependenciesOne more to maintainNone
KnowledgeFramework, plus CSSCSS
Complex selectors and animationPossible but less neatNatural

Why people like Tailwind

The Tailwind CSS website, titled 'Tailwind CSS - Rapidly build modern websites without ever leaving your HTML.'.
The Tailwind CSS website on 4 November 2026. Source: tailwindcss.com
  • No switching files, and no time spent naming things
  • Design constraints. A shared scale nudges people towards consistent spacing and colour.
  • Styles are safe to change. Delete a component, and its styles go with it. You don't have to wonder whether something else relies on them.
  • Small CSS files, as only the classes you use are generated.
  • Works well with components, where the repetition lives inside one file.
  • Popular. Many libraries and templates use it, including shadcn/ui.

Why people like plain CSS

  • No build step or dependency, which means less to break, particularly on a site that'll live for ten years
  • Clean, readable HTML
  • Full power. All selectors, layers, animations and features, with no translation needed
  • Portable skills. It's what browsers really run, so what you learn lasts. See the state of CSS in 2026.
  • Global design changes can often be made in one place
  • Easier with a CMS, where you can't always add classes to content

See how to write CSS that doesn't fight you.

Modern CSS has changed the argument

Many of the reasons for adopting CSS tools in the past have gone away, with features that now work in current browsers:

With these, a small team can write maintainable CSS with no framework. That doesn't make Tailwind obsolete, as Tailwind builds on many of these too, including its use of CSS variables in recent versions. But “CSS doesn't scale” is less true than it was.

Performance

Neither one has a clear advantage if you use it properly. Tailwind generates only what you use, keeping files small, and class names in HTML compress well. Plain CSS can be very small on a simple site, and it can also bloat if nobody removes old rules. Your images and JavaScript will almost always matter more. See a complete guide to web performance.

Team and long-term concerns

Tailwind is easier for mixed teams in one way: everyone uses the same scale and patterns, and there's less scope for clever, conflicting CSS.

Plain CSS needs a system. Without tokens and agreed conventions, it tends to decay into overrides and !important. See what CSS-in-JS is for another approach to the same problem.

Long class lists can become hard to read. Extract repeated patterns into components, not long strings copied everywhere. Don't overuse @apply, as this recreates the problem it was meant to solve.

Upgrades: Tailwind's major versions sometimes require migration work. Plain CSS doesn't really have versions.

Accessibility is your job in both. Neither gives you focus states or contrast automatically. See focus states that actually work.

With AI tools

AI coding tools tend to generate Tailwind by default, partly because it's so common in their training material, and because styles sit next to markup, which suits generated code. This has real advantages. But it also explains the default look of many AI-built sites. See why vibe-coded apps look the same.

Whichever you use, tell your agent the rules: “Use only these tokens”, or “Use the classes in tokens.css. No inline colours”. See how to write an AGENTS.md file. Check that it hasn't invented values, such as arbitrary sizes.

How to choose

Your projectLean towards
Component-based app, with a teamTailwind
Fast prototypeTailwind
Using shadcn/ui, or similarTailwind
Simple marketing or brochure sitePlain CSS
Static site, no build stepPlain CSS
WordPress or CMS theme with editors' contentPlain CSS, or a mix
Project that must last with minimal upkeepPlain CSS
Team already fluent in oneThat one

If you've been using a framework like Bootstrap, see Tailwind vs Bootstrap.

You can mix them

It's fine to use Tailwind for layouts and components, with plain CSS for complicated animation or long-form content styles. Use @layer to keep them under control, and write down which goes where.

The thing that matters more

Whichever you pick, the quality of your CSS depends on a clear design system: a small number of colours, a defined type scale, a spacing scale and consistent components. A messy plain-CSS project and a messy Tailwind project are equally painful. Don't rewrite a working project merely to switch. See the real cost of technical debt.

If you'd like help setting up a front end that stays maintainable, book a call.

Common questions

Is Tailwind better than plain CSS?

Neither is better overall. Tailwind suits component-based apps and teams that want consistency and speed. Plain CSS suits simple sites, and projects that value no build step and few dependencies. Both can produce fast, maintainable sites when used with clear rules.

Do I still need Tailwind with modern CSS?

Not necessarily. Custom properties, nesting, layers and container queries solve many old problems. Tailwind still offers speed, built-in constraints and easy removal of unused styles. It's now a preference and team decision, rather than a necessity.

Is Tailwind bad for performance?

No. It generates only the classes you use, so the CSS is usually small, and repeated class names compress well. Long class lists do make your HTML larger, but images and JavaScript usually matter far more to page speed.

Should beginners learn Tailwind or CSS first?

Learn CSS first. Tailwind's classes map onto CSS properties, so knowing the box model, flexbox, grid and the cascade makes you effective with either. Without that, you'll struggle to debug layouts, or to fix what an AI tool generates.

Have something worth building right?