
This is your first stop when Tailwind classes aren't showing up in the browser or your v3 to v4 migration breaks. It walks through the usual suspects: dynamic class concatenation that JIT can't detect, PostCSS plugin configuration for v4 (it's @tailwindcss/postcss now, not the old setup), content path issues, and specificity conflicts. The debugging checklist is solid for narrowing down whether it's a build problem, a cache problem, or you're just concatenating strings wrong. Honestly most Tailwind debugging comes down to "stop doing `text-${color}-500`" but this covers the less obvious stuff too, like why IntelliSense stopped working or why your production build is missing half your styles.
$ npx -y skills add josiahsiegel/claude-plugin-marketplace --skill tailwindcss-debugging --agent claude-codeInstalls into .claude/skills of the current project.
v4 automatically detects content, but if styles are missing:
/* Explicitly specify sources */
@import "tailwindcss";
@source "./src/**/*.{html,js,jsx,ts,tsx,vue,svelte}";
<!-- WRONG - Dynamic class won't be detected -->
<div class={`text-${color}-500`}>
<!-- CORRECT - Use complete class names -->
<div class={color === 'blue' ? 'text-blue-500' : 'text-red-500'}>
# Restart dev server
npm run dev
# Clear cache and rebuild
rm -rf node_modules/.vite
npm run build
// OLD (v3)
export default {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
// NEW (v4)
export default {
plugins: {
'@tailwindcss/postcss': {}
}
}
/* v4 - Configure in CSS, not JS */
@import "tailwindcss";
@theme {
--color-primary: oklch(0.6 0.2 250);
}
Sponsors