Tailwind CSS

98.1k GitHub starstailwindlabs/tailwindcss

Style a website by adding short, readable words like "rounded" or "text-lg" to each element. The styling tool AI coding assistants use most. Free, open source.

View on GitHub

Build a stack with Tailwind CSS

Pick parts from it and the projects that work well with it. We check the licences together and write a prompt for your AI.

Tailwind CSS
shadcn/ui
Vite
Astro
Payload
design-bites

Your stack

Tick the parts you want to use. Projects whose parts are not listed yet can be added whole; the prompt tells your AI to find the right pieces in their code.

Website (opens in a new tab)
More actions

Why we picked it

Tailwind CSS is how a huge share of new websites get their look, and it's the styling tool AI coding assistants reach for first. Instead of writing separate style files, you describe each element with short words like "bg-white", "p-4" and "rounded-lg", right where it is. That makes pages easy to read and change, for people and for AI. It keeps your colours, spacing and fonts consistent, works on phones out of the box, and only ships the styles you actually use, so sites stay fast. It's MIT licensed, so you can use it in work you sell.

About Tailwind CSS

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 page

Best 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)
Bootstrap

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
Plain 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.

What you can build with it

  • Styling a website or app quickly without writing separate style files
  • Keeping colours, spacing and fonts consistent across a whole site
  • Making pages that look right on phones, tablets and big screens
  • Letting an AI assistant change a page's look by editing one line
  • Turning a design from Figma into a real page

Building blocks

Tailwind CSS is made of parts you can use on their own in your project. Copy a prompt to have your AI assistant add one for you, and see the licence card for what you may do with them.

  • Styling for your website

    Free to use, even in closed products

    The Tailwind styling toolkit itself: style pages with short class names instead of writing CSS files.

    Use it to build

    • Any web front end
    • Design systems
    • Marketing sites
    View code
    Technical details
    Name
    tailwindcss
    What it is
    Code library
    How to use it
    Install it, then configure it
    Install
    npm i tailwindcss
    Licence
    MIT License (read from packages/tailwindcss/package.json (licence field))
  • Tailwind for Vite projects

    Free to use, even in closed products

    Adds Tailwind to projects built with Vite, such as SvelteKit, Astro or Remix, in one step.

    Use it to build

    • Vite, SvelteKit, Astro and Remix apps
    View code
    Technical details
    Name
    @tailwindcss/vite
    What it is
    Plugin
    How to use it
    Install it and use it
    Install
    npm i @tailwindcss/vite
    Licence
    MIT License (read from packages/@tailwindcss-vite/package.json (licence field))
  • Tailwind for Next.js

    Free to use, even in closed products

    Adds Tailwind to Next.js and other projects that already use PostCSS.

    Use it to build

    • Next.js apps
    • Existing PostCSS pipelines
    View code
    Technical details
    Name
    @tailwindcss/postcss
    What it is
    Plugin
    How to use it
    Install it and use it
    Install
    npm i @tailwindcss/postcss
    Licence
    MIT License (read from packages/@tailwindcss-postcss/package.json (licence field))
  • Tailwind without a build tool

    Free to use, even in closed products

    Builds your Tailwind styles from the command line, for simple sites with no JavaScript build step.

    Use it to build

    • Static sites
    • Server-rendered apps without a JS build
    View code
    Technical details
    Name
    @tailwindcss/cli
    What it is
    Command-line tool
    How to use it
    Install it and use it
    Install
    npm i @tailwindcss/cli
    Licence
    MIT License (read from packages/@tailwindcss-cli/package.json (licence field))

Works well with

  • shadcn/ui

    127k GitHub stars

    Beautiful, ready-made buttons, forms, menus and dashboards you copy into your app and change freely. The favourite starting point for AI-built websites.

    • UI components
    • MIT License
  • Vite

    83.5k GitHub stars

    Next generation frontend tooling. It's fast!

    • Build tools
    • MIT License
  • Astro

    63.5k GitHub stars

    The web framework for content-driven websites. ⭐️ Star to support our work!

    • Frameworks
    • Other license
  • Payload

    45.5k GitHub stars

    Build a website or app with a ready-made admin panel where your team edits content. Free, open source, and it lives inside your Next.js app.

    • Headless CMS
    • MIT License
  • design-bites

    91 GitHub stars

    270+ ready-made design guides from great websites like Linear, Stripe and Vercel. Drop one into your project and your AI assistant builds in that style.

    • Design & prototyping
    • Styling
    • MIT License

Comments

No comments yet. Be the first to share your thoughts.