Skip to main content
skill CX Codex

tailwindcss · mindrally — Claude Code skill: utility-first styling rules

Tells the agent how to write TailwindCSS: utility classes in markup, mobile-first breakpoints, dark mode through the dark: variant.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Mindrally/skills --skill tailwindcss -a claude-code
Open on GitHub

What tailwindcss does

This skill makes the agent treat TailwindCSS as the default styling layer. Classes go straight into HTML or JSX, the @apply directive stays out of production, and spacing plus colour come from the framework scales instead of arbitrary values. Responsive work starts at the small screen and moves up through the sm:, md:, lg:, xl: and 2xl: prefixes.

Repeated class sets get pulled into a component rather than copied across files. There are integration notes for React and Next.js, including the cn() helper for conditional classes and pairing with Shadcn UI and Radix UI. Vue projects apply classes in the template with :class binding, Alpine.js uses x-bind:class.

The no-@apply-in-production rule is the sharp edge here. If your stylesheets lean on @apply layers, the agent will push code the other way, so it is worth checking before you install. Custom themes belong in the Tailwind config, not in one-off class edits.

What it helps with

  • lay out a responsive grid across breakpoints without hand-written media queries
  • add dark mode with the dark: variant
  • extract repeated class sets into a component
  • wire conditional classes in React through cn()
  • build a layout from flex and grid utilities

Example prompts for the agent

  • Build this product card with Tailwind, mobile first, then md: and lg:
  • Rewrite these styles from @apply to utility classes inside the JSX
  • Add dark mode to this block with dark: and check the contrast

How to install tailwindcss

1Skills CLI (Vercel)

npx skills add Mindrally/skills --skill tailwindcss -a claude-code

2Manually: put the files in place

~/.claude/skills/tailwindcss/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/tailwindcss/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about tailwindcss

How do I install tailwindcss in Claude?

Run npx skills add Mindrally/skills --skill tailwindcss -a claude-code. The skill file lands at ~/.claude/skills/tailwindcss/SKILL.md.

What does the tailwindcss skill do?

It gives the agent a set of TailwindCSS rules: utility classes in markup, mobile-first design, spacing and typography from the framework scales, dark mode via dark:.

Why does the skill avoid @apply?

Its rules keep @apply out of production, so styles stay utility-first inside the template. On a project built around @apply layers the agent will write against your existing code.

Source text

SKILL.md · Apache-2.0
---
name: tailwindcss
description: Expert in TailwindCSS utility-first styling with responsive design patterns
metadata:
  maintainer: Mindrally
  source: https://github.com/Mindrally/skills
---

# TailwindCSS

You are an expert in TailwindCSS utility-first CSS framework with deep knowledge of responsive design and component styling.

## Core Principles

- Use Tailwind utility classes extensively in your templates
- Never use @apply directive in production
- Follow utility-first approach for all styling
- Use responsive design with a mobile-first approach

## Usage Guidelines

- Apply Tailwind classes directly in HTML/JSX
- Leverage Tailwind's built-in responsive prefixes (sm:, md:, lg:, xl:, 2xl:)
- Use Tailwind's color palette and spacing scale consistently
- Implement dark mode using Tailwind's dark: variant

## Component Styling

- Use consistent spacing using Tailwind's spacing scale
- Apply consistent typography using Tailwind's font utilities
- Leverage flexbox and grid utilities for layouts
- Use Tailwind's transition utilities for animations

## Best Practices

- Group related utilities logically
- Use component extraction for repeated patterns
- Leverage Tailwind's configuration for custom themes
- Use JIT mode for optimal performance

## Integration Patterns

### With React/Next.js
- Use className prop for applying Tailwind classes
- Leverage cn() utility for conditional classes
- Integrate with Shadcn UI and Radix UI components

### With Vue
- Apply Tailwind classes in template sections
- Use :class binding for conditional styling

### With Alpine.js
- Combine with x-bind:class for reactive styling

## Responsive Design

- Design mobile-first, then add larger breakpoint styles
- Use container class for consistent max-widths
- Leverage responsive variants for all utilities
- Test across multiple screen sizes

© Mindrally · Apache-2.0 · Mindrally/skills

Similar skills

Everything for Frontend and UI →

tailwindcss by other authors comes first.

tailwindcss MengTo A skill that steers your coding agent through Tailwind CSS UI work: layout, typography, responsive variants, theming and component patterns. CX Codex +1 1,700installs tailwindcss Pedro Nauck Guides coding agents through Tailwind CSS v4 component styling using project tokens, explicit utility classes, and accessible layouts. CX Codex +1 447installs tailwindcss martinholovsky A skill that teaches AI agents to style the JARVIS assistant UI with Tailwind utility classes: dark HUD theme, responsive grids, animations, and tests before implementation. CX Codex +1 498installs tailwindcss-animations JosiahSiegel A Tailwind CSS skill covering built-in animation utilities, custom keyframes, transitions, reduced-motion and Framer Motion. CX Codex +1 2,400installs tailwindcss-mobile-first JosiahSiegel A skill that walks your coding agent through mobile-first responsive design with Tailwind CSS v4. Useful when breakpoints, fluid type and grids need to line up instead of fighting each other. CX Codex +1 2,100installs mobile-responsiveness hoodini Provides mobile-first responsive design patterns, touch gesture handlers, fluid typography rules, and safe area handling for web apps. CX Codex +1 1,400installs frontend-tailwind-best-practices sergiodxa Ten Tailwind CSS rules for frontend work: stack utilities, gap-based spacing, dark color schemes and className merging. Useful when an agent writes component styles. CX Codex +1 464installs good-css vojtaholik Replaces breakpoint ladders, layout wrappers and helper scripts with modern CSS. Works with plain CSS, Tailwind, StyleX and CSS-in-JS. CX Codex +1 1,500installs tailwindcss-development laravel Writes and fixes Tailwind classes in Blade, JSX and Vue templates. Triggers automatically when a message contains the word tailwind. CX Codex +1 942installs

From the same set214

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor