Frontend Tailwind Best Practices
Tailwind styling conventions covering custom stack layouts, gap spacing, color schemes, className merging, and responsive design.
- CCM score
- 58 of 100
- skills.sh installs
- 474
- GitHub stars
- 92
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers layout utilities, gap-based spacing, class-based dark color schemes, className merging with
cn(), and responsive text and breakpoints - Includes custom stack utilities (
v-stack,h-stack,z-stack,center,spacer,circle) that replace common flex class combinations - Enforces an anti-pattern table that flags raw
flex flex-col, non-neutral gray palettes, and inline arbitrary hex colors - Designed for frontend apps that use Tailwind with a shared
cn()utility and custom design tokens
Install
$ npx -y skills add sergiodxa/agent-skills --skill frontend-tailwind-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Tailwind CSS Best Practices
Styling patterns and conventions for frontend applications. Contains 10 rules covering layout utilities, affordances, color schemes, responsive design, and className handling.
When to Apply
Reference these guidelines when:
- Writing component styles with Tailwind
- Creating layouts (stacks, grids, centering)
- Handling responsive design
- Working with color schemes
- Merging className props
Rules Summary
Layout Utilities (CRITICAL)
layout-stack-utilities - @rules/layout-stack-utilities.md
Use custom stack utilities instead of flex classes.
// Bad
<div className="flex flex-col gap-4">
<div className="flex flex-row gap-4">
// Good
<div className="v-stack gap-4">
<div className="h-stack gap-4">
Available utilities:
Details
- Repository
- github.com/sergiodxa/agent-skills
- Category
- Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the frontend-tailwind-best-practices skill do?
frontend-tailwind-best-practices gives an agent Tailwind CSS patterns and conventions for frontend apps. It covers layout utilities, gaps, color schemes, className merging with cn(), affordance classes and responsive design rules.
How do I install frontend-tailwind-best-practices?
Run npx -y skills add sergiodxa/agent-skills --skill frontend-tailwind-best-practices -y in your project. Once installed, frontend-tailwind-best-practices lets the agent apply its Tailwind rules when writing component styles, layouts and className props.
Who is frontend-tailwind-best-practices for?
frontend-tailwind-best-practices suits developers writing component styles with Tailwind CSS. It helps when building stacks, grids and centered layouts, handling responsive design, working with color schemes, or merging className props.
Where does frontend-tailwind-best-practices sit in the Frontend & UI Code category?
frontend-tailwind-best-practices is listed in the Frontend & UI Code category on Claude Marketplaces. It focuses specifically on Tailwind class conventions, such as replacing flex classes with custom stack utilities.
More from sergiodxa/agent-skills
All 10- Frontend React Router Best Practices406
- Frontend Js Best Practices341
- Ruby On Rails Best Practices285
- Frontend Async Best Practices228
- Frontend Internationalization Best Practices196
- Frontend Testing Best Practices2.3K
- Owasp Security Check1.8K
- Frontend React Best Practices1.2K
- Frontend Accessibility Best Practices940
Similar to Frontend Tailwind Best Practices
More Frontend & UI Codetailwind-css-patternsgiuseppe-trisciuoglio/developer-kit18.5K installsModern Tailwind CSS v4.1 patterns for responsive layouts, components, dark mode, and accessibility.
tailwindcssmindrally/skills1.6K installsExpert TailwindCSS guidance for utility-first styling, mobile-first responsive layouts, and dark mode without @apply.
tailwind-best-practicesasyrafhussin/agent-skills1.1K installsTailwind CSS patterns for responsive, dark-mode, and v3-to-v4 work, with version detection first.
tailwind-4gentleman-programming/gentleman-skills290 installsOpinionated Tailwind CSS 4 guide that bans var() and hex colors in className and standardizes cn() usage.
tailwind-cssmanutej/luxor-claude-marketplace465 installsUtility-first CSS framework for building responsive, production-ready interfaces by composing single-purpose classes in markup.
ui-stylingnextlevelbuilder/ui-ux-pro-max-skill60.3K installsPragmatic styling guide pairing shadcn/ui components with Tailwind CSS and canvas-based visual design.