Tailwind CSS Cheat Sheet
A quick reference guide for common Tailwind CSS utility classes.
Layout
Container
container mx-auto px-4Display
block | flex | grid | hiddenPosition
relative | absolute | fixed | stickyZ-Index
z-0 | z-10 | z-50Flexbox
Flex Row/Col
flex-row | flex-colJustify
justify-start | justify-center | justify-betweenAlign
items-start | items-center | items-stretchGap
gap-4 | gap-x-2 | gap-y-4Spacing
Padding
p-4 | px-4 | py-2 | pt-0Margin
m-4 | mx-auto | my-2 | mb-8Space Between
space-x-4 | space-y-4Typography
Font Size
text-sm | text-lg | text-xl | text-4xlFont Weight
font-light | font-medium | font-boldText Color
text-blue-500 | text-slate-900Text Align
text-left | text-center | text-rightColors
Background
bg-white | bg-slate-900 | bg-blue-500Gradient
bg-gradient-to-r from-blue-500 to-cyan-500Border
border-slate-200 | border-blue-500Effects
Shadow
shadow-sm | shadow-md | shadow-xlOpacity
opacity-50 | opacity-100Blur
blur-sm | blur-lg