# Tailwind CSS Layout Patterns
## Layout Utilities
### Flexbox Layouts
Basic flex container:
```html
```
Responsive flex direction:
```html
```
Common flex patterns:
```html
Left
Right
```
### Grid Layouts
Basic grid:
```html
Column 1
Column 2
Column 3
```
Responsive grid:
```html
Item 1
Item 2
Item 3
Item 4
```
Auto-fit columns:
```html
```
### Container & Max Width
Centered container with max width:
```html
```
Responsive max width:
```html
```
---
## Spacing
### Padding & Margin
Uniform spacing:
```html
Padding all sides
Margin all sides
```
Individual sides:
```html
```
Axis-based spacing:
```html
```
Responsive spacing:
```html
```
Space between children:
```html
```
---
## Typography
### Font Size & Weight
```html
Large Heading
Subheading
Body text
Small text
```
Responsive typography:
```html
Responsive Heading
```
### Line Height & Letter Spacing
```html
Text with relaxed line height and wide letter spacing
```
### Text Alignment
```html
Left aligned on mobile, centered on tablet+
```
---
## Colors
### Background Colors
```html
Blue background
Light gray background
Gradient background
```
### Text Colors
```html
Dark text
Blue text
Error text
```
### Opacity
```html
Semi-transparent blue
```
---
## Responsive Breakpoints Reference
| Prefix | Min Width | CSS Equivalent |
|--------|-----------|----------------|
| `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)` |