Tailwind CSS is a popular way to style websites. Instead of writing a separate stylesheet with rules like .hero-title, you add small classes straight to the HTML: text-3xl for a large heading, font-bold for weight, bg-primary for the background color. Each class does one job, which is why it is called utility-first.
It matters to founders even if they never write code, because it is the default styling choice of many AI website builders and coding agents. If an AI built your site, there is a good chance it is made of Tailwind classes.
How does Tailwind CSS work?
- Utility classes. Hundreds of small classes cover spacing, color, typography, layout and responsive behavior, such as md:flex to switch to a row layout on wider screens.
- A theme. Colors, fonts, spacing and breakpoints come from a theme. The classes are generated from it, so bg-primary only exists if the theme defines a primary color.
- Only what you use. At build time Tailwind scans your files and outputs CSS only for the classes that actually appear, which keeps the final stylesheet small.
Tailwind CSS v4 and theme tokens
In Tailwind CSS v4, the theme moved from a JavaScript config file into CSS. You declare design tokens as CSS variables inside an @theme block, for example --color-primary or --font-display, and Tailwind turns each one into utility classes such as bg-primary and font-display. Writing --color-*: initial first removes the built-in palette, so only your brand colors exist.
That last trick is the useful one for brands. If violet and indigo classes simply do not exist, neither a teammate nor an AI agent can reach for them. Our guide on giving Claude Code a brand includes a complete brand token file built this way.
Why it matters for your brand
- Defaults are everywhere. Tailwind's default palette and spacing are good, which is exactly why so many sites look alike. It is one root of the sameness we describe in why Claude Code landing pages look the same.
- Easy to rebrand. Because everything flows from the theme, swapping a few token values changes the whole site.
- Readable by AI. A short @theme block is one of the clearest ways to tell an AI coding agent what your brand is.
Tailwind CSS vs plain CSS
Plain CSS gives full freedom and keeps markup tidy, but styles drift as a site grows and nobody remembers which class does what. Tailwind trades longer class lists in the markup for consistency: every value comes from the same scale. Neither is better in general. For small teams and AI-built sites, Tailwind's constraints are usually an advantage.
How to put your brand into Tailwind
- Collect your brand colors and fonts with exact values. A brand kit from the Monstric studio gives you these.
- Create a CSS file with an @theme block and clear the default colors.
- Add role-based tokens: primary, ink, paper, muted, plus display and body fonts.
- Replace any hard-coded hex values in the site with the new classes.
- Tell your AI tools to use only those tokens.
Common mistakes
- Never changing the defaults. A site using the stock palette and fonts looks like a template, however good the layout is.
- Arbitrary values everywhere. Classes like text-[#3B82F6] bypass the theme and quietly break consistency.
- Mixing v3 and v4 instructions. Older tutorials configure the theme in tailwind.config.js; v4 projects use @theme in CSS. Check which version you are on.
