Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
giuseppe-trisciuoglio avatar

Tailwind Css Patterns

  • 14k installs
  • 314 repo stars
  • Updated June 22, 2026
  • giuseppe-trisciuoglio/developer-kit

Tailwind CSS Patterns is a skill providing reusable Tailwind CSS patterns and utilities for component development.

About

Tailwind CSS Patterns is a skill within the Developer Kit plugin system for Claude Code. It provides reusable Tailwind CSS patterns and best practices. Developers use it when building component-driven UIs with Tailwind CSS or needing pattern reference during frontend development.

  • Part of 150+ skills in Developer Kit plugin system
  • Tailwind CSS pattern library integrated with Claude Code
  • Auto-activation for .css and template files

Tailwind Css Patterns by the numbers

  • 13,988 all-time installs (skills.sh)
  • +248 installs in the week ending Jul 29, 2026 (Skillselion tracking)
  • Ranked #40 of 2,244 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 31, 2026 (Skillselion catalog sync)
At a glance

tailwind-css-patterns capabilities & compatibility

Capabilities
css patterns · component styling
Use cases
ui design · frontend
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill tailwind-css-patterns

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs14k
repo stars314
Security audit3 / 3 scanners passed
Last updatedJune 22, 2026
Repositorygiuseppe-trisciuoglio/developer-kit

How do you build accessible Tailwind CSS components?

Provide reusable Tailwind CSS patterns and best practices for frontend development.

Who is it for?

Frontend developers building component-based UIs with Tailwind

Skip if: Projects using CSS-in-JS, Bootstrap, or teams that outsource accessibility to a dedicated component library only.

When should I use this skill?

User asks for accessible Tailwind patterns, WCAG focus styles, skip links, or screen reader markup.

What you get

HTML snippets with WCAG AA focus styles, skip links, focus-visible rings, and screen-reader-friendly ARIA patterns.

  • Accessible Tailwind HTML snippets
  • ARIA-labeled component patterns

By the numbers

  • Documents WCAG AA focus ring patterns with focus:ring-4 utilities

Files

SKILL.mdMarkdownGitHub ↗

Tailwind CSS Development Patterns

Expert guide for building modern, responsive user interfaces with Tailwind CSS utility-first framework. Covers v4.1+ features including CSS-first configuration, custom utilities, and enhanced developer experience.

Overview

Provides actionable patterns for responsive, accessible UIs with Tailwind CSS v4.1+. Covers utility composition, dark mode, component patterns, and performance optimization.

When to Use

  • Styling React/Vue/Svelte components
  • Building responsive layouts and grids
  • Implementing design systems
  • Adding dark mode support
  • Optimizing CSS workflow

Quick Reference

Responsive Breakpoints

PrefixMin WidthDescription
sm:640pxSmall screens
md:768pxTablets
lg:1024pxDesktops
xl:1280pxLarge screens
2xl:1536pxExtra large

Common Patterns

<!-- Center content -->
<div class="flex items-center justify-center min-h-screen">
  Content
</div>

<!-- Responsive grid -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
  <!-- Items -->
</div>

<!-- Card component -->
<div class="bg-white rounded-lg shadow-lg p-6">
  <h3 class="text-xl font-bold">Title</h3>
  <p class="text-gray-600">Description</p>
</div>

Instructions

1. Start Mobile-First: Write base styles for mobile, add responsive prefixes (sm:, md:, lg:) for larger screens 2. Use Design Tokens: Leverage Tailwind's spacing, color, and typography scales 3. Compose Utilities: Combine multiple utilities for complex styles 4. Extract Components: Create reusable component classes for repeated patterns 5. Configure Theme: Customize design tokens in tailwind.config.js or using @theme 6. Verify Changes: Test at each breakpoint using DevTools responsive mode. Check for visual regressions and accessibility issues before committing.

Examples

Responsive Card Component

function ProductCard({ product }: { product: Product }) {
  return (
    <div className="bg-white rounded-lg shadow-lg overflow-hidden sm:flex">
      <img className="h-48 w-full object-cover sm:h-auto sm:w-48" src={product.image} />
      <div className="p-6">
        <h3 className="text-lg font-semibold">{product.name}</h3>
        <button className="mt-4 px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">
          Add to Cart
        </button>
      </div>
    </div>
  );
}

Dark Mode Toggle

<div class="bg-white dark:bg-gray-900 text-gray-900 dark:text-white">
  <h1 class="dark:text-white">Title</h1>
</div>

Form Input

<input
  class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"
  placeholder="you@example.com"
/>

Best Practices

1. Consistent Spacing: Use Tailwind's spacing scale (4, 8, 12, 16, etc.) 2. Color Palette: Stick to Tailwind's color system for consistency 3. Component Extraction: Extract repeated patterns into reusable components 4. Utility Composition: Prefer utility classes over @apply for maintainability 5. Semantic HTML: Use proper HTML elements with Tailwind classes 6. Performance: Ensure content paths include all template files for optimal purging 7. Accessibility: Include focus styles, ARIA labels, and respect user preferences (reduced-motion)

Troubleshooting

Classes Not Applying

  • Check content paths: Ensure all template files are included in content: [] in config
  • Verify build: Run npm run build to regenerate purged CSS
  • Dev mode: Use npx tailwindcss -o with --watch flag for live updates

Responsive Styles Not Working

  • Order matters: Responsive prefixes must come before non-responsive (e.g., md:flex not flex md:flex)
  • Check breakpoint values: Verify breakpoints match your design requirements
  • DevTools: Use browser DevTools responsive mode to test at each breakpoint

Dark Mode Issues

  • Verify config: Ensure darkMode: 'class' or 'media' is set correctly
  • Toggle implementation: Use document.documentElement.classList.toggle('dark') for class strategy
  • Initial flash: Add dark class to <html> before body renders

Constraints and Warnings

  • Class Proliferation: Long class strings reduce readability; extract into components
  • Content Paths: Misconfigured paths cause classes to be purged in production
  • Arbitrary Values: Use sparingly; prefer design tokens for consistency
  • Specificity Issues: Avoid @apply with complex selectors
  • Dark Mode: Requires correct configuration (class or media strategy)
  • Browser Support: Check Tailwind docs for compatibility notes

References

  • [references/layout-patterns.md](references/layout-patterns.md) — Flexbox, grid, spacing, typography, colors
  • [references/component-patterns.md](references/component-patterns.md) — Cards, navigation, forms, modals, React patterns
  • [references/responsive-design.md](references/responsive-design.md) — Responsive patterns, dark mode, container queries
  • [references/animations.md](references/animations.md) — Transitions, transforms, built-in animations, motion preferences
  • [references/performance.md](references/performance.md) — Bundle optimization, CSS optimization, production builds
  • [references/accessibility.md](references/accessibility.md) — Focus management, screen readers, color contrast, ARIA
  • [references/configuration.md](references/configuration.md) — CSS-first config, JavaScript config, plugins, presets
  • [references/reference.md](references/reference.md) — Additional reference materials

External Resources

Related skills

Forks & variants (1)

Tailwind Css Patterns has 1 known copy in the catalog totaling 31 installs. They canonicalize to this original listing.

How it compares

Use tailwind-css-patterns for utility-class accessibility snippets instead of full component frameworks.

FAQ

What WCAG level do tailwind-css-patterns target?

tailwind-css-patterns documents Tailwind utilities for WCAG AA compliance, including focus ring contrast via focus:ring-4, focus:ring-offset-2, and keyboard-only focus-visible indicators.

How do tailwind-css-patterns handle skip navigation?

tailwind-css-patterns provides skip links using sr-only that become visible on focus with focus:not-sr-only and absolute positioning, letting keyboard users jump directly to main content.

Is Tailwind Css Patterns safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.