Skip to content
sergiodxa avatar

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
View on GitHub

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 -y

Installs 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

Similar to Frontend Tailwind Best Practices

More Frontend & UI Code