--- description: Complete Tailwind CSS utility classes reference - Layout, spacing, typography, colors, borders, effects user-invocable: false --- # Tailwind CSS Utility Classes Complete reference for all Tailwind CSS utility classes organized by category. ## Layout Utilities ### Display ```html
Block
Inline
Flex
Grid
``` **Docs:** `display.mdx` ### Flexbox ```html
Flex item
Fixed
``` **Docs:** `flex.mdx`, `flex-direction.mdx`, `flex-wrap.mdx`, `justify-content.mdx`, `align-items.mdx`, `gap.mdx` ### Grid ```html
Item 1
Item 2 (spans 2 columns)
``` **Docs:** `grid-template-columns.mdx`, `grid-column.mdx`, `grid-row.mdx`, `gap.mdx` ### Position ```html
Absolute
Fixed
Sticky header
``` **Docs:** `position.mdx`, `top-right-bottom-left.mdx`, `z-index.mdx` ## Spacing Utilities ### Padding ```html
All sides
Horizontal & vertical
Individual sides
``` **Scale:** `0, 0.5, 1, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64` **Docs:** `padding.mdx` ### Margin ```html
All sides
Center horizontally
Negative margin
``` **Docs:** `margin.mdx` ### Gap ```html
Flex gap
Grid gap (x/y)
``` **Docs:** `gap.mdx` ## Typography Utilities ### Font Family ```html

Sans-serif

Serif

Monospace

``` **Docs:** `font-family.mdx` ### Font Size ```html

Extra small

Small

Base

Large

Extra large

2XL

3XL

``` **Docs:** `font-size.mdx` ### Font Weight ```html

Thin (100)

Normal (400)

Semibold (600)

Bold (700)

``` **Docs:** `font-weight.mdx` ### Text Alignment ```html

Left

Center

Right

Justify

``` **Docs:** `text-align.mdx` ### Line Height ```html

Tight (1.25)

Normal (1.5)

Relaxed (1.625)

``` **Docs:** `line-height.mdx` ## Color Utilities ### Text Color ```html

Black

Gray 500

Blue 600

Red (dark mode)

``` **Scale:** `50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950` **Docs:** `color.mdx`, `colors.mdx` ### Background Color ```html
White
Gray 100
Blue 500
``` **Docs:** `background-color.mdx` ### Border Color ```html
Gray border
Blue border
``` **Docs:** `border-color.mdx` ## Border Utilities ### Border Width ```html
Default (1px)
2px all sides
Top 4px
Horizontal 2px
``` **Docs:** `border-width.mdx` ### Border Radius ```html
Small (0.25rem)
Medium (0.375rem)
Large (0.5rem)
Full (9999px)
Top corners only
``` **Docs:** `border-radius.mdx` ## Effect Utilities ### Shadow ```html
Default shadow
Medium shadow
Large shadow
Extra large shadow
``` **Docs:** `box-shadow.mdx`, `text-shadow.mdx` ### Opacity ```html
Invisible
Half visible
Fully visible
``` **Docs:** `opacity.mdx` ### Filters ```html ``` **Docs:** `filter-*.mdx` (blur, brightness, contrast, etc.) ## State Variants ### Hover ```html ``` ### Focus ```html ``` ### Active ```html ``` ### Disabled ```html ``` **Docs:** `hover-focus-and-other-states.mdx` ## Documentation Index | Category | Files | |----------|-------| | Layout | `display.mdx`, `flex-*.mdx`, `grid-*.mdx`, `position.mdx` | | Spacing | `padding.mdx`, `margin.mdx`, `gap.mdx` | | Typography | `font-*.mdx`, `text-*.mdx`, `line-*.mdx` | | Colors | `color.mdx`, `background-color.mdx`, `border-color.mdx` | | Borders | `border-*.mdx`, `border-radius.mdx` | | Effects | `box-shadow.mdx`, `opacity.mdx`, `filter-*.mdx` | | States | `hover-focus-and-other-states.mdx` |