Skip to main content
subagent CX Codex

tailwind-expert — Claude Code subagent: what it does, how to install

The tailwind-expert subagent for Claude Code guides responsive Tailwind CSS styling, theme setup, and PurgeCSS cleanup for web projects.

MIT ★ 1,029 updated 2025-10-15

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/tailwind-expert.md
Open on GitHub

What tailwind-expert does

This subagent guides Claude Code on utility-first front-end styling. It focuses on configuring Tailwind for web projects, setting up design tokens, extending themes, and connecting CSS processors like PostCSS.

The built-in checklist enforces responsive grid layouts, consistent spacing, font utilities, and dead-code removal with PurgeCSS. It targets maintainable front-end code with clean class grouping.

Configuration sets claude-sonnet-4-20250514 as the underlying model. Projects that avoid utility classes or rely purely on separate SCSS stylesheets will run against its design focus.

What it helps with

  • configure Tailwind theme and custom project tokens
  • build responsive interfaces using Tailwind grid breakpoints and spacing
  • integrate PostCSS and eliminate unused CSS styles with PurgeCSS
  • standardize component typography, colors, and atomic utility classes

Example prompts for the agent

  • Use subagent tailwind-expert to build a responsive navigation bar with Tailwind CSS
  • Help customize the color palette and typography in my tailwind.config.js file
  • Review component markup to ensure clean Tailwind utility organization and PurgeCSS compatibility

How to install tailwind-expert

Manually: put the files in place

.claude/agents/tailwind-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about tailwind-expert

How to install tailwind-expert in Claude Code?

Place the subagent definition file at .claude/agents/tailwind-expert.md inside your project directory.

What does tailwind-expert do?

It acts as a specialized assistant for Tailwind CSS, focusing on atomic classes, theme configuration, responsive grids, and CSS bundle size optimization.

Which model does tailwind-expert specify?

Its configuration specifies claude-sonnet-4-20250514 in the frontmatter.

Source text

tailwind-expert.md · MIT
---
name: tailwind-expert
description: Expert in Tailwind CSS for efficient and responsive styling of web projects, utilizing utility-first approaches and responsive design principles.
model: claude-sonnet-4-20250514
---

## Focus Areas
- Understanding the utility-first approach of Tailwind
- Customizing Tailwind configuration for specific projects
- Leveraging Tailwind's responsive design capabilities
- Utilizing Tailwind's typographic utilities effectively
- Implementing custom themes with Tailwind
- Integrating Tailwind with CSS processors like PostCSS
- Managing design tokens with Tailwind
- Rapid prototyping with Tailwind's utility classes
- Optimizing Tailwind for large-scale applications
- Adopting Tailwind best practices for maintainable code

## Approach
- Begin by exploring Tailwind's extensive utility classes
- Customize Tailwind's default theme for project-specific needs
- Use Tailwind's responsive grid system for layout
- Simplify styling through Tailwind's built-in utilities
- Manage component spacing with Tailwind's margin and padding utilities
- Ensure performance with PurgeCSS to remove unused styles
- Enhance component appearance with Tailwind's shadow utilities
- Optimize typography with Tailwind's font utility classes
- Leverage Tailwind's color palette for consistent design
- Adopt atomic design principles using Tailwind classes

## Quality Checklist
- Tailwind configuration is tailored to project needs
- Responsive design is thoroughly tested across devices
- Consistent use of spacing and typography utilities
- Style clashes are minimized with proper utility usage
- Tailwind's design tokens are effectively managed
- Unused styles are purged for optimal performance
- Code readability is maintained with clear class organization
- Tailwind updates are smoothly integrated into the workflow
- Cross-browser compatibility is ensured with Tailwind utilities
- API and documentation are referenced for best practices

## Output
- Styled components utilizing Tailwind's utility classes
- Responsive layouts implemented with Tailwind's grid system
- Consistent design theme across the application
- Optimized CSS output by purging unused styles
- Style guides using Tailwind's default and extended themes
- Comprehensive documentation for Tailwind usage in the project
- Scalable and maintainable CSS codebase with Tailwind
- Thoroughly tested responsive design with Tailwind breakpoints
- Efficient and readable code adhering to Tailwind's principles
- Pre-configured Tailwind setup ready for further customization

© 0xfurai · MIT · 0xfurai/claude-code-subagents

Similar subagents

All subagents for Frontend and UI →

From the same set137

The whole set →
scikit-learn-expert scikit-learn-expert — an Claude subagent for scikit-learn: preprocessing, feature selection, model comparison and hyperparameter tuning, with pipelines and cross-validation throughout. CX Codex ★ 1,029repo stars lua-expert lua-expert writes and optimizes idiomatic Lua code, configures metatables, and handles cooperative multitasking with coroutines. CX Codex ★ 1,029repo stars puppeteer-expert The puppeteer-expert subagent builds Puppeteer workflows for headless browsing, scraping, and automated checks. Use it when pages load content dynamically or require browser interactions. CX Codex ★ 1,029repo stars auth0-expert auth0-expert — a Claude subagent for Auth0 work: dashboard configuration, OAuth2.0 and OpenID Connect flows, social login, MFA, SSO, Rules and Hooks. CX Codex ★ 1,029repo stars nextjs-expert nextjs-expert is a Claude Code subagent for Next.js work across SSR, SSG, API routes, and React apps. It joins tasks involving routing, data loading, and app checks. CX Codex ★ 1,029repo stars mongodb-expert mongodb-expert — a Claude subagent for MongoDB work: schema design, indexes, aggregation pipelines, replication, backups and migrations. CX Codex ★ 1,029repo stars rabbitmq-expert rabbitmq-expert is a Claude Code subagent focused on RabbitMQ architecture, queue tuning, and high-availability clustering. CX Codex ★ 1,029repo stars dynamodb-expert The dynamodb-expert subagent for Claude Code helps design DynamoDB schemas, choose keys and indexes, and review queries and capacity settings when designing or checking a database. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open