Tailwindcss

by mindrally97184105b5daNo license269 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 5 weeks ago

Expert in TailwindCSS utility-first styling with responsive design patterns

AI-generated overview

Guides an agent in applying TailwindCSS utility-first styling, responsive design and component patterns across frameworks.

What it does
This skill provides guidance for styling user interfaces with the TailwindCSS utility-first CSS framework. It covers core principles such as applying utility classes directly in markup, avoiding the @apply directive in production, and using a mobile-first responsive approach. It also gives component styling advice on spacing, typography, flexbox and grid layouts, transitions, dark mode, and integration patterns for React/Next.js, Vue and Alpine.js.
When to use it
Use it when writing or reviewing front-end markup that is styled with TailwindCSS utility classes. It is suited to tasks involving responsive layouts, component styling, dark mode, or integrating Tailwind with React, Next.js, Vue or Alpine.js.
Requirements
No tools, packages or credentials are required; the skill is instructions only and ships no scripts.

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

Source and attribution

Source:mindrally/skillsintailwindcssat commit9718410

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal