plugins/tailwindcss/skills/tailwindcss-v4/SKILL.md
Tailwind CSS v4.1 core features, @theme, directives, migration guide
npx skillsauth add fusengine/agents tailwindcss-v4Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Namespace | Generated Utilities |
|-----------|-------------------|
| --color-* | bg-, text-, border-, fill- |
| --font-* | font-* |
| --text-* | text-xs, text-sm, text-base, etc. |
| --spacing-* | p-, m-, gap-, w-, h-* |
| --radius-* | rounded-* |
| --shadow-* | shadow-* |
| --breakpoint-* | sm:, md:, lg:, xl: |
| --animate-* | animate-spin, animate-bounce, etc. |
| --ease-* | ease-in, ease-out, ease-in-out |
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: { brand: '#3B82F6' }
}
}
}
@import "tailwindcss";
@theme {
--color-brand: #3B82F6;
}
@utility tab-4 {
tab-size: 4;
}
/* Usage: class="tab-4" */
.card {
@variant dark {
background: #1a1a2e;
}
}
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
/* Usage: dark:bg-gray-900 */
/* v3 */
@tailwind base;
@tailwind components;
@tailwind utilities;
/* v4 */
@import "tailwindcss";
| v3 | v4 |
|----|-----|
| shadow-sm | shadow-xs |
| shadow | shadow-sm |
| rounded-sm | rounded-xs |
| rounded | rounded-sm |
| outline-none | outline-hidden |
| ring | ring-3 |
bg-opacity-* → use bg-black/50text-opacity-* → use text-black/50flex-shrink-* → use shrink-*flex-grow-* → use grow-*/* v3 */
@layer utilities {
.tab-4 {
tab-size: 4;
}
}
/* v4 */
@utility tab-4 {
tab-size: 4;
}
<!-- v3 -->
<div class="bg-[--brand-color]"></div>
<!-- v4 -->
<div class="bg-(--brand-color)"></div>
<!-- v3 -->
<div class="!bg-red-500">
<!-- v4 -->
<div class="bg-red-500!">
npx @tailwindcss/upgrade
Requires Node.js 20+
npm install -D tailwindcss @tailwindcss/postcss
# or for Vite
npm install -D @tailwindcss/vite
# or for CLI
npm install -D @tailwindcss/cli
Adjust color opacity:
color: --alpha(var(--color-lime-300) / 50%);
Generate spacing values:
margin: --spacing(4);
Inline utility classes:
.btn {
@apply px-4 py-2 rounded-lg font-bold;
}
development
Use when optimizing entity-based / semantic SEO 2026. Covers entity maps, Google Knowledge Graph resolution, salience scoring, passage-level ranking, about/sameAs/knowsAbout schema, Cloud Natural Language API validation.
development
Use when running SEO, GEO, schema, Core Web Vitals, sitemap, hreflang, E-E-A-T, AI Overviews, technical SEO, or structured data tasks. Covers full-site audits, single-page analysis, schema markup, content quality, AI search optimization, local SEO, sitemap/robots, internal linking, semantic clustering, and search experience.
development
Use when optimizing search experience (SXO). Covers intent matching, user personas, user stories, page-type analysis, dwell time, scroll depth, pogo-sticking prevention.
development
Use when optimizing local SEO. Covers Google Business Profile, NAP consistency, citations, reviews acquisition, Local Pack ranking, location pages, LocalBusiness schema.