
Tailwindcss
This is a comprehensive guide for Tailwind CSS v4 that does one thing really well: it enforces design token usage so your theme switching actually works. Pedro Nauck built this around practical rules like breaking long class strings into arrays, using bg-background instead of bg-white, and embracing mobile-first responsive patterns. It includes a validation checklist and covers v4-specific utilities like size-10 and h-dvh. The anti-patterns section is honest about what not to do, like avoiding @apply and never constructing classes dynamically. If you're building components with Tailwind and want consistent, theme-aware styling without the usual pitfalls, this gives you the patterns and guardrails to do it right.
- skills.sh installs
- 481
- GitHub stars
- 655
- last updated
- Aug 21, 2026
Install
$ npx -y skills add pedronauck/skills --skill tailwindcss --agent claude-codeInstalls into .claude/skills of the current project.
Files
Tailwind CSS v4
Prefer utilities for component styling. CSS still owns theme tokens, base rules, and styles that utilities do not express clearly. Use the installed Tailwind version and existing design system.
- Use semantic tokens for theme-aware colors, borders, and states. Use names from the project's token source and design documentation; do not assume a universal shadcn vocabulary.
- Keep class names complete and statically discoverable. Use lookup maps instead of interpolated fragments such as
bg-${color}-500. - Group long classes for readability; no character-count gate. Use the project's
cn/merge helper when composing variants or accepting overridingclassNamevalues. - Resolve specificity through the style design and class merging, avoiding
!important. Use@applyonly where the repository permits it. - Build responsive layouts from content needs, preserve visible keyboard focus, and select supported v4 utilities rather than copying older idioms.
- Validate through the repository's owning gates. Use its existing root/package commands and reuse valid evidence; styling does not add a separate lint/typecheck ritual.
Sponsors
Details
- Repository
- github.com/pedronauck/skills
- Categories
- Frontend Development, Documentation, Mobile Development, Design & UI/UX
- First seen
- Jun 3, 2026
More from pedronauck/skills
All 70- React480
- Skill Best Practices476
- Agent Browser471
- Electron Builder449
- Context7439
- Refactoring Analysis432
- Zod421
- Next Best Practices399
- Git Rebase398
- Systematic Debugging392
- Tanstack391
- Shadcn390
- Vitest383
- Zustand367
- Vercel React Best Practices364
- Hormozi Ad Factory363
- Brainstorming356
- A11y Testing355
- Humanizer352
- Brand Storytelling349
- Drizzle Safe Migrations347
- To Prompt346
- Evolution Api344
- Vercel Composition Patterns338