flpbalada/fb-skills

tailwind-v4-configuration

Configure Tailwind CSS v4 with the CSS-first setup.

First seen May 4, 2026

Installation

$ npx skills add flpbalada/fb-skills --skill tailwind-v4-configuration

Summary

  • Configure Tailwind CSS v4 with the CSS-first setup.
  • Use when installing Tailwind v4, migrating from v3, setting up Vite, PostCSS, CLI, or framework integration, defining @theme tokens, using @source, configuring plugins, debugging content detection, or checking browser support.
  • For component-level utilities, variants, CVA, or tailwind-variants use code-architecture-tailwind-v4-best-practices.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from flpbalada/fb-skills · top by installs.

npx skills add flpbalada/fb-skills

Browse all from flpbalada/fb-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 7
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,432 B
  • docs SUMMARY.md 428 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 13 installs

SKILL.md

Tailwind CSS v4 Configuration

Goal

Use Tailwind v4's CSS-first configuration. Keep JavaScript config only when project tooling requires it.

Rules

  • Import Tailwind with @import "tailwindcss";.
  • Define theme tokens with @theme.
  • Rely on automatic content detection by default.
  • Use @source only for missed files or external packages.
  • Use CSS custom properties for theme values.
  • Check browser support before using v4 in legacy environments.
  • Do not copy v3 content config unless needed.
  • Do not use old @tailwind base/components/utilities in v4 setup.

Pattern

@import "tailwindcss";

@theme {
  --color-brand-primary: oklch(0.65 0.24 354.31);
  --font-display: "Satoshi", "sans-serif";
  --breakpoint-3xl: 1920px;
}

Key Changes

  • CSS-first config.
  • Single import.
  • Automatic content detection.
  • Native cascade layers.
  • Theme values as CSS variables.
  • Modern browser baseline.

Utility Changes

  • shadow-sm (v3) → shadow-xs (v4)
  • rounded-sm (v3) → rounded-xs (v4)
  • bg-gradient-to-r (v3) → bg-linear-to-r (v4)

Flow

  1. Identify project framework and build tool.
  2. Check existing Tailwind version.
  3. Add v4 package and integration.
  4. Create or update main CSS entry.
  5. Move tokens into @theme.
  6. Add @source only when detection misses files.
  7. Run build and visual check.

Browser Compatibility

  • Chrome/Edge 111+
  • Firefox 128+
  • Safari 16.4+

References

Output

  • Install or migration steps.
  • Main CSS config.
  • Build tool change.
  • Verification command.