Styles applications using Tailwind CSS v4 utilities. Activates when adding styles, restyling components, working with gradients, spacing, layout, flex, grid, responsive design, dark mode, colors, typography, or borders; or when the user mentions CSS, styling, classes, Tailwind, restyle, hero section, cards, buttons, or any visual/UI changes.
Activate this skill when:
Use search-docs for detailed Tailwind CSS v4 patterns and documentation.
corePlugins is not supported in Tailwind v4.In Tailwind v4, configuration is CSS-first using the @theme directive — no separate tailwind.config.js file is needed:
In Tailwind v4, import Tailwind with a regular CSS @import statement instead of the @tailwind directives used in v3:
Tailwind v4 removed deprecated utilities. Use the replacements shown below. Opacity values remain numeric.
| Deprecated | Replacement |
|---|---|
| bg-opacity-* | bg-black/* |
| text-opacity-* | text-black/* |
| border-opacity-* | border-black/* |
| divide-opacity-* | divide-black/* |
| ring-opacity-* | ring-black/* |
| placeholder-opacity-* | placeholder-black/* |
| flex-shrink-* | shrink-* |
| flex-grow-* | grow-* |
| overflow-ellipsis | text-ellipsis |
| decoration-slice | box-decoration-slice |
| decoration-clone | box-decoration-clone |
Use gap utilities instead of margins for spacing between siblings:
If existing pages and components support dark mode, new pages and components must support it the same way, typically using the dark: variant:
@tailwind directives instead of @import "tailwindcss"tailwind.config.js instead of CSS @theme directive