Short answer
Learn Tailwind CSS by installing the package the docs show and styling with utility classes instead of a handwritten stylesheet. The docs site's blog lists v4.3 on May 8, 2026 as the latest version announcement. A later post, on September 9, 2026, is about the company joining Shopify and does not name a newer release. The Vite guide installs tailwindcss and the Vite plugin without pinning a number. Default breakpoints start at 40rem, which is 640 pixels.
Last verified against the sources listed below.
Key takeaways
- The docs say Tailwind scans your templates for class names and writes a static CSS file.
- The v4.3 post is dated May 8, 2026. The September 9, 2026 post does not announce a newer version number.
- Vite setup is create the project, install tailwindcss and @tailwindcss/vite, register the plugin, and import tailwindcss.
- Five default breakpoints start at 40rem, 48rem, 64rem, 80rem, and 96rem. Unprefixed classes apply at every width.
- v4.3 adds palette names mauve, olive, mist, and taupe, each with steps from 50 through 950.
How to learn tailwind css starts in the utility docs: install the package the way the site shows, then put single-purpose classes on the elements. The blog’s latest version announcement is v4.3, posted May 8, 2026.
What CSS is used for is the language those classes compile to. Tailwind does not replace that language. It chooses rules from it by the class names it finds.
What do the docs say the tool does?
It scans your templates for class names and writes the matching CSS into a static file.
The Vite install page says Tailwind CSS scans HTML files, JavaScript components, and other templates for class names, generates the styles, and writes them to a static CSS file. The docs index on that same site lists five install paths: Vite, PostCSS, the Tailwind CLI, framework guides, and the Play CDN. The steps below follow the Vite page, because that is the guide the docs site opened on.
The v4.3 announcement, dated May 8, 2026, says Tailwind CSS v4.3 is here and also covers what landed in v4.2. The blog index places a September 9, 2026 post above it.
That later post is about Tailwind Labs joining Shopify. It does not name a release newer than v4.3.
The install commands on the Vite page do not pin a version number. The v4.3 post’s upgrade lines use tailwindcss@latest with the matching plugin.
MDN describes CSS as a stylesheet language for the presentation of a document written in HTML or XML. It says there will not be a CSS3 or a CSS4 as a single version.
Modules have levels instead. The W3C CSS overview calls CSS a core language for adding style, such as fonts, colors, and spacing, and it lists CSS Snapshot 2026 as the latest stable snapshot.
How do you install it with Vite?
Create a Vite project, install the two packages, register the plugin, import Tailwind, and start the dev server.
The Vite page gives one action at a time if you split the commands it prints:
- Run npm create vite@latest my-project.
- Change into the my-project directory.
- Run npm install tailwindcss @tailwindcss/vite.
- Add the tailwindcss plugin from @tailwindcss/vite to the plugins list in vite.config.ts.
- Add @import “tailwindcss”; to your CSS file.
- Run npm run dev, or the command your package file already uses.
- Link that CSS from the document head and put a utility class on an element.
The page’s sample element uses the classes text-3xl, font-bold, and underline on a heading. The stylesheet link in the sample points at /src/style.css. If a framework injects the CSS for you, you still need the import. The page says framework setup can differ and points at the framework guides when the Vite steps do not match the tool you picked.
The v4.3 post prints a parallel upgrade for other setups: tailwindcss@latest with @tailwindcss/cli, with @tailwindcss/vite, with @tailwindcss/postcss, or with @tailwindcss/webpack. Those are upgrade commands on the announcement, not a second copy of the Vite walkthrough. Use the walkthrough when you are starting. Use @latest when the announcement tells you to move a project you already have.
How do utility classes work?
You put many single-purpose classes on the element, and variants such as hover: apply a class only in that state.
The utility classes page shows a card built from classes for flex layout, spacing, width, color, radius, and shadow. Its examples include flex, p-6, max-w-sm, mx-auto, bg-white, rounded-xl, shadow-lg, and text-xl. A state prefix is a variant. The page’s button example is bg-sky-500 with hover:bg-sky-700, so the darker background applies only while the pointer is over the control.
The page contrasts this with inline styles. Utilities come from a predefined set, so the values are not one-off numbers in each attribute.
Inline styles also cannot express hover or a media query. A responsive variant can.
The page’s small example stacks a profile on narrow screens and switches to a row at the sm breakpoint, using flex-col and sm:flex-row.
You still need the viewport meta tag. The responsive page says to put width=device-width, initial-scale=1.0 in the document head before the breakpoint classes will match the device the way you expect.
What are the default breakpoints?
There are five minimum widths, from 40rem to 96rem, and unprefixed utilities apply at every size.
Responsive design says every utility can take a breakpoint prefix. The prefix is the name, then a colon, then the class. The defaults are:
| Prefix | Minimum width | Media condition on the docs page |
|---|---|---|
| sm | 40rem (640px) | width at least 40rem |
| md | 48rem (768px) | width at least 48rem |
| lg | 64rem (1024px) | width at least 64rem |
| xl | 80rem (1280px) | width at least 80rem |
| 2xl | 96rem (1536px) | width at least 96rem |
Responsive web design is the same idea in CSS itself: the layout changes with the screen. Tailwind’s version is mobile-first.
An unprefixed class such as text-center applies everywhere. sm:text-left applies from 640 pixels upward.
The page warns that sm: does not mean phones. It means at the small breakpoint.
To style the narrow screen, use the class with no prefix, then override it at sm, md, and the wider steps.
A max- variant limits a style to below a breakpoint. max-sm applies when the width is under 40rem.
Stacking md:max-xl: keeps a class in a range. Custom breakpoints are theme variables such as —breakpoint-xs, set to a rem value.
The page says to keep one unit so the generated utilities sort in the order you expect. The defaults use rem.
Container queries are on the same page. The class @container marks an inline-size container, and variants such as @md: style children from the container’s width rather than the viewport. The v4.3 post adds @container-size for cases that need the block size, such as the cqb unit. That is a docs feature to read after the five breakpoints feel ordinary.
Which colors does v4.3 add?
v4.2, described in the same post, adds mauve, olive, mist, and taupe, with steps from 50 through 950.
The post shows those steps and does not print hex codes beside them in the section that names the palettes. It treats them as further neutrals next to gray, zinc, neutral, stone, and slate.
v4.3’s own list is scrollbar utilities, the size-container class, zoom utilities, tab utilities, stacked and compound variants, and default values for functional utilities. The scrollbar examples include scrollbar-thin and scrollbar-none.
The zoom examples include zoom-75, zoom-100, and zoom-125.
A Tailwind color palette generator can build a 50 to 950 scale from a color you pick. Use it to see steps. Then check the color names against the docs before you treat a generated hex as one of the named palettes. The announcement did not publish those hex values in the palette section.
The learning loop is short. Install with the Vite steps, put one utility on a real element, then add a breakpoint prefix and a hover prefix. When a class does something you cannot explain, open the utility page and the responsive page rather than guessing the pixel. The version to read against, from the blog index, is v4.3 until that index prints a later number.
Frequently asked questions
Which version do the docs call current?
The install pages do not stamp a version on the npm command. They say to install tailwindcss and the matching plugin. The blog index lists v4.3 on May 8, 2026, and that post says v4.3 is here. The newer note, dated September 9, 2026, is about joining Shopify and does not name a later release. Treat v4.3 as the latest version post on that index, and install with the command the guide prints.
Do utility classes replace CSS?
They generate CSS. The docs say the build scans HTML, JavaScript, and other templates for class names, then writes the matching styles into a static file. You still learn what the styles mean. MDN describes CSS as the language for presenting HTML or XML. The W3C calls CSS a core language for fonts, colors, and spacing, and it lists CSS Snapshot 2026 as the latest stable snapshot. Tailwind is a way to request those styles from markup. It is not a second browser.
What does the sm: prefix actually mean?
It means at the small breakpoint and above, not phones only. The responsive page sets sm at a minimum width of 40rem, which it also writes as 640 pixels. An unprefixed class applies at every size. A class with sm: starts at that minimum and stays on at larger widths. To center text on a narrow screen and left-align it from 640 pixels up, you put the centering class with no prefix and the left alignment behind sm:.
How many default breakpoints are there?
Five. The responsive page prints sm at 40rem or 640 pixels, md at 48rem or 768 pixels, lg at 64rem or 1024 pixels, xl at 80rem or 1280 pixels, and 2xl at 96rem or 1536 pixels. Each one is a minimum width. There is also a max variant for each, which applies below that width. You can change the set with breakpoint theme variables, and the page says to keep the same unit, which is rem for the defaults, so the generated order stays predictable.
Where did the extra gray palettes come from?
The May 8, 2026 post says v4.2 added mauve, olive, mist, and taupe. It lists the steps 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, and 950 for those palettes and does not print hex values in the section opened here. The same post says v4.3 adds scrollbar, zoom, and tab utilities, plus a size container class. Read the colors page on the docs site before you invent a hex code the announcement never showed.
Sources
- Installing Tailwind CSS with Vite · Tailwind CSS, 2026
- Responsive design · Tailwind CSS, 2026
- Styling with utility classes · Tailwind CSS, 2026
- Tailwind CSS v4.3 · Tailwind CSS, 2026
- Blog · Tailwind CSS, 2026
- CSS: Cascading Style Sheets · MDN, 2026
- Cascading Style Sheets · W3C, 2026
- HTML Living Standard · WHATWG, 2026