# tailwind-patterns > Tailwind CSS utility patterns and best practices - Author: Bradley Taylor - Repository: the-answerai/alphaagent-team - Version: 20260125210708 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/the-answerai/alphaagent-team - Web: https://mule.run/skillshub/@@the-answerai/alphaagent-team~tailwind-patterns:20260125210708 --- --- name: tailwind-patterns description: Tailwind CSS utility patterns and best practices user-invocable: false --- # Tailwind Patterns Skill Patterns for using Tailwind CSS effectively. ## Layout Patterns ### Flexbox ```html
Centered content
Left
Right
Item 1
Item 2
Item 3
Fixed
Grows
``` ### Grid ```html
1
2
3
Card 1
Card 2
Card 3
Card 4
Wide
Normal
Normal
Auto-sized card
``` ### Container ```html
Content with max-width and horizontal padding
Content with specific max-width
``` ## Typography ### Text Styles ```html

Heading 1

Heading 2

Heading 3

Body text with comfortable line height

Caption text

Underlined

Strikethrough

Long text that gets truncated...

Text clamped to 3 lines...

``` ### Font Weights and Sizes ```html

100

300

400

500

600

700

800

``` ## Spacing ### Padding and Margin ```html
...
...
...
...
...
...
Item 1
Item 2
Item 3
``` ## Colors ### Background and Text ```html
...
...
50% opacity background
75% opacity text
Gradient background
Three-stop gradient
``` ### Borders ```html
...
...
Bottom border only
Left accent
Small radius
Large radius
Full (pill/circle)
Top only
``` ## Responsive Design ### Breakpoints ```html
Responsive text size
Visible on mobile only
...
...
``` ### Breakpoint Reference ``` sm: 640px @media (min-width: 640px) md: 768px @media (min-width: 768px) lg: 1024px @media (min-width: 1024px) xl: 1280px @media (min-width: 1280px) 2xl: 1536px @media (min-width: 1536px) ``` ## States ### Hover, Focus, Active ```html
Changes when parent is hovered
``` ### Disabled and Dark Mode ```html
Dark mode aware
``` ## Animation ### Transitions ```html
Grows on hover
...
``` ### Built-in Animations ```html
Spinning
Pinging
Pulsing
Bouncing
``` ## Integration Used by: - `frontend-developer` agent - `fullstack-developer` agent