Tailwind CSS is a free tool for styling websites. Every website uses CSS, the language that sets colours, sizes, spacing and layout. Normally you write that CSS in separate files and give things names. Tailwind takes a different approach: it gives you thousands of small, ready-made style words, called classes, that you add straight onto each element.
For example, class="bg-blue-600 text-white px-4 py-2 rounded-lg" makes a blue button with white text, some padding and rounded corners. You can see exactly how something looks just by reading it. It's made by Tailwind Labs, led by Adam Wathan, and is now on version 4.
What it can do
- Style things where they are. No jumping between files or inventing names. The look of each element is written right on it.
- Keeps everything consistent. Colours, spacing, font sizes and shadows come from one shared scale, so your site doesn't end up with 20 slightly different greys.
- Works on every screen size. Add
md: or lg: in front of a class to change how something looks on bigger screens, like md:flex. Dark mode works the same way with dark:. - Fits your brand. Set your own colours, fonts and spacing once in your CSS file with
@theme, and every class follows them. - Keeps sites fast. It scans your project and ships only the styles you use. A whole site's styling is often just a few kilobytes.
- Quick to set up and quick to run. Version 4 needs one line,
@import "tailwindcss";, and rebuilds styles almost instantly as you work. - Keeps up with modern design. Recent versions added container queries, 3D transforms, new colour palettes, and styles for scrollbars.
- Works with almost everything. Next.js, Vite, Astro, Svelte, Laravel and plain HTML pages.
Where you'll meet it
Tailwind is the styling behind shadcn/ui and most AI-built websites, because AI assistants find it easy to read and change. It works well with Vite, Astro and Svelte, and with Payload or Supabase behind the scenes. Give your assistant a style file from design-bites and it can turn that into Tailwind settings for your project.
Tailwind CSS, Bootstrap or plain CSS?
All three can style a website. The difference is how much is made for you and how much you decide yourself.
Tailwind CSSThis pageBest forCustom designs and websites built with AI assistants
Small style words you combine on each element to build any look. No ready-made buttons or menus, so pair it with a kit like shadcn/ui. Pages can look busy with lots of classes at first.
- What you get
- Thousands of style classes and a design scale
- Open source
- Yes (MIT)
- Cost
- Free, with optional paid templates (Tailwind Plus)
BBootstrap
Best forGetting a standard-looking site up fast
The long-time classic, with ready-made buttons, menus, cards and a grid. Quick to start, but sites tend to look like Bootstrap unless you put in work to change it.
- What you get
- Ready-made components and a layout grid
- Open source
- Yes (MIT)
- Cost
- Free
PPlain CSS
Best forSmall sites, or teams who want full control with no extra tools
The language every browser understands, with nothing to install. Modern CSS is powerful, but you set up your own naming, colours and spacing rules and keep them tidy yourself.
- What you get
- Complete freedom, no shortcuts
- Open source
- It's a web standard
- Cost
- Free
A quick way to choose: building with an AI assistant, or want your own look? Use Tailwind CSS, often with shadcn/ui on top. Need a plain, working site fast with ready-made parts? Bootstrap. Small site, or you enjoy writing styles yourself? Plain CSS is still great.
Good to know
- Tailwind gives you styles, not finished parts. For ready-made buttons, forms and menus, add a kit like shadcn/ui.
- Your page code gets longer, because the styles live on each element. Most people stop minding after a day, and AI assistants handle it well.
- Version 4 works in modern browsers only: Safari 16.4, Chrome 111 and Firefox 128 or newer. If you must support very old browsers, stay on version 3.
- Tailwind Plus is a separate paid collection of templates and components from the same team. You don't need it: Tailwind itself is free.
- Licence: MIT. You can use it for free, including in paid products.