skills/tailwind-validator/SKILL.md
Validate Tailwind CSS v4 configuration and detect/prevent Tailwind v3 patterns. Use this skill when setting up Tailwind, auditing CSS configuration, or when you suspect outdated Tailwind patterns are being used. Ensures CSS-first configuration with @theme blocks.
npx skillsauth add shipshitdev/library tailwind-validatorInstall 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.
Ensures:
tailwind.config.js patterns are detected and flagged@theme blocks are used instead of JS configpython3 scripts/validate.py --root .
python3 scripts/validate.py --root . --suggest-fixes
python3 scripts/validate.py --root . --strict
| Check | Good (v4) | Bad (v3) |
|---|---|---|
| Package version | "tailwindcss": "^4.0.0" | "^3.4.0" |
| CSS config | @import "tailwindcss"; + @theme { --color-primary: ...; } | @tailwind base/components/utilities; |
| Config files | none - config lives in CSS | tailwind.config.{js,ts,mjs,cjs} (deprecated in v4) |
| PostCSS | plugins: { '@tailwindcss/postcss': {} } only | tailwindcss + autoprefixer as separate plugins |
| Imports | @import "tailwindcss/preflight" / .../utilities | @tailwind directives |
See references/full-guide.md (§ What Gets Checked, § Validation Output) for full GOOD/BAD examples and a sample validation report.
tailwindcss/autoprefixer, add tailwindcss@latest + @tailwindcss/postcsspostcss.config.js at the @tailwindcss/postcss plugin onlytailwind.config.js theme/extend values into an @theme { --color-*, --font-*, ... } block in CSS@tailwind directives with @import "tailwindcss"tailwind.config.{js,ts,mjs,cjs}See references/full-guide.md (§ Migration Guide, § CI/CD Integration) for the exact before/after code per step and a CI workflow snippet.
| v3 Pattern | v4 Replacement |
|------------|----------------|
| @tailwind base | @import "tailwindcss" |
| @tailwind utilities | @import "tailwindcss/utilities" |
| tailwind.config.js | @theme block in CSS |
| theme.extend.colors | --color-* CSS variables |
| theme.extend.spacing | --spacing-* CSS variables |
| theme.extend.fontFamily | --font-* CSS variables |
| content: ['./src/**/*.tsx'] | Not needed (auto-detected) |
| plugins: [require('@tailwindcss/forms')] | @plugin "@tailwindcss/forms" |
See references/full-guide.md (§ v4 @theme Reference, § Using with shadcn/ui) for a full @theme token example and shadcn/ui token setup.
@theme instead.@import "tailwindcss". The old directives are not supported in v4.@tailwindcss/postcss.content config entirely.development
Coordinates a weekly engineering review of board accuracy, recent code changes, operational health, and scoped cleanup. Use for a recurring repository health review or a review of the last several days.
testing
Audits project board configuration and prepares explicitly requested setup, copy, or normalization changes while preserving the existing workflow and provider boundaries. Use when inspecting a board's fields, columns, scope, or configuration.
testing
Reconciles a project board with current work and delivery evidence, reports incomplete coverage and metadata gaps, and applies only approved provider-supported field changes. Use when auditing board drift, reviewing blocked work, or assessing upcoming delivery.
development
Walk through how a subsystem works. Use for "how does X work", code walkthroughs before changing something, and placement or ownership questions. Explains architecture, runtime flow, and onboarding mental models. Can critique architecture. Use why for motivation.