# Utility Classes
Helper classes for common styling needs.
## Display & Layout
```html
Flexbox with gap (--gap, default 1rem)
Grid with gap (--gap, default 1rem)
Space-between flex with gap
Vertical split (top/bottom)
```
## Stack & Cluster
```html
Vertical flex with gap
Horizontal wrapping flex
```
See [Stack & Cluster](https://graffiti-ui.com/llms/stack-cluster.txt) for details.
## Readable Width
```html
Max-width 900px container
```
## List Reset
```html
No bullets, margin, or padding
```
## Spacing
```html
Adds vertical margin (--vs-m)
```
## Visibility
```html
Hidden visually, accessible to screen readers
Hidden when printing
```
## Shape
```html
Circular element (40px default)
```
Customize size:
```html
Larger circle
```
## Aspect Ratio
```html
1:1
16:9
4:3
21:9
```
Custom:
```html
2:1
```
## Auto Color
Automatically sets text color based on background:
```html
White text on blue
Black text on yellow
```
With tinted text:
```html
Slightly tinted text
```
## Validation States
Add to inputs or text:
```html
Error message
Success message
Warning message
```
## Full Bleed
Break out of `.layout-readable` container:
```html
Normal width content
Back to normal width
```
## Focus Ring
Consistent focus styling for interactive elements:
```html
```
## Transitions
Apply smooth transitions using the easing tokens:
```html
All properties, 0.2s, ease-smooth
All properties, 0.1s, ease-smooth
All properties, 0.4s, ease-smooth
All properties, 0.3s, ease-bounce
Disable transitions
```
## See Also
- [Variables](https://graffiti-ui.com/llms/variables.txt) - CSS custom properties
- [Typography](https://graffiti-ui.com/llms/typography.txt) - Font sizing