tailwind-patterns

Installation
SKILL.md

Tailwind Patterns

Core Approach

  • Utility-first: compose classes, don't write custom CSS
  • Extract components, not classes (use React components, not @apply)
  • Consistent spacing/color via design tokens

Component Patterns

Button Variants

const buttonVariants = {
  primary: 'bg-blue-600 hover:bg-blue-700 text-white',
  secondary: 'bg-gray-100 hover:bg-gray-200 text-gray-900',
  danger: 'bg-red-600 hover:bg-red-700 text-white',
  ghost: 'hover:bg-gray-100 text-gray-700',
}
Installs
3
GitHub Stars
31
First Seen
May 16, 2026