ToolFoxToolFox

Tailwind CSS Cheat Sheet

Every utility class. Every version. Searchable. Copyable. Always current.

This cheat sheet covers 1,200+ Tailwind CSS utility classes across every major version from v0.x through v4.x. Use the version tabs to filter classes by the version your project runs on, and spot what's new, changed, or removed at a glance with color-coded badges.

Type any class name or CSS property into the search bar for instant results — including reverse CSS lookup (e.g. search "display: flex" to find the flex class). Click any class to copy it to your clipboard, or use "Copy All" to grab an entire section. Star your frequently-used classes for quick access later.

Sections span layout, flexbox, grid, spacing, typography, the full color palette with 50–950 shades, responsive breakpoints, state variants, dark mode, container queries, and more. Updated for Tailwind CSS v4.3.

Layout50 classes

Display, position, overflow, visibility, z-index, float, clear, object-fit, columns, aspect-ratio

blockdisplay: block
inline-blockdisplay: inline-block
inlinedisplay: inline
flexdisplay: flex
inline-flexdisplay: inline-flex
griddisplay: grid
inline-griddisplay: inline-grid
contentsdisplay: contents
tabledisplay: table
hiddendisplay: none
staticposition: static
fixedposition: fixed
absoluteposition: absolute
relativeposition: relative
stickyposition: sticky
visiblevisibility: visible
invisiblevisibility: hidden
collapsevisibility: collapse
overflow-autooverflow: auto
overflow-hiddenoverflow: hidden
overflow-visibleoverflow: visible
overflow-scrolloverflow: scroll
overflow-x-autooverflow-x: auto
overflow-y-autooverflow-y: auto
z-0z-index: 0
z-10z-index: 10
z-20z-index: 20
z-30z-index: 30
z-40z-index: 40
z-50z-index: 50
z-autoz-index: auto
isolateisolation: isolate
isolation-autoisolation: auto
object-containobject-fit: contain
object-coverobject-fit: cover
object-fillobject-fit: fill
object-noneobject-fit: none
object-scale-downobject-fit: scale-down
aspect-autoaspect-ratio: auto
aspect-squareaspect-ratio: 1 / 1
aspect-videoaspect-ratio: 16 / 9
box-borderbox-sizing: border-box
box-contentbox-sizing: content-box
float-rightfloat: right
float-leftfloat: left
float-nonefloat: none
clear-leftclear: left
clear-rightclear: right
clear-bothclear: both
clear-noneclear: none

Flexbox41 classes

Flex container and item utilities — direction, wrap, grow, shrink, order, gap, alignment

flex-rowflex-direction: row
flex-row-reverseflex-direction: row-reverse
flex-colflex-direction: column
flex-col-reverseflex-direction: column-reverse
flex-wrapflex-wrap: wrap
flex-wrap-reverseflex-wrap: wrap-reverse
flex-nowrapflex-wrap: nowrap
flex-1flex: 1 1 0%
flex-autoflex: 1 1 auto
flex-initialflex: 0 1 auto
flex-noneflex: none
growflex-grow: 1
grow-0flex-grow: 0
shrinkflex-shrink: 1
shrink-0flex-shrink: 0
order-firstorder: -9999
order-lastorder: 9999
order-noneorder: 0
justify-startjustify-content: flex-start
justify-endjustify-content: flex-end
justify-centerjustify-content: center
justify-betweenjustify-content: space-between
justify-aroundjustify-content: space-around
justify-evenlyjustify-content: space-evenly
items-startalign-items: flex-start
items-endalign-items: flex-end
items-centeralign-items: center
items-baselinealign-items: baseline
items-stretchalign-items: stretch
self-autoalign-self: auto
self-startalign-self: flex-start
self-endalign-self: flex-end
self-centeralign-self: center
self-stretchalign-self: stretch
gap-0gap: 0px
gap-1gap: 0.25rem
gap-2gap: 0.5rem
gap-3gap: 0.75rem
gap-4gap: 1rem
gap-6gap: 1.5rem
gap-8gap: 2rem

Grid34 classes

CSS Grid template columns/rows, span, auto-flow, gap, place utilities

grid-cols-1grid-template-columns: repeat(1, minmax(0, 1fr))
grid-cols-2grid-template-columns: repeat(2, minmax(0, 1fr))
grid-cols-3grid-template-columns: repeat(3, minmax(0, 1fr))
grid-cols-4grid-template-columns: repeat(4, minmax(0, 1fr))
grid-cols-6grid-template-columns: repeat(6, minmax(0, 1fr))
grid-cols-12grid-template-columns: repeat(12, minmax(0, 1fr))
grid-cols-nonegrid-template-columns: none
grid-cols-subgridgrid-template-columns: subgrid
NEWv4.x
grid-rows-1grid-template-rows: repeat(1, minmax(0, 1fr))
grid-rows-2grid-template-rows: repeat(2, minmax(0, 1fr))
grid-rows-3grid-template-rows: repeat(3, minmax(0, 1fr))
grid-rows-6grid-template-rows: repeat(6, minmax(0, 1fr))
grid-rows-nonegrid-template-rows: none
grid-rows-subgridgrid-template-rows: subgrid
NEWv4.x
col-autogrid-column: auto
col-span-1grid-column: span 1 / span 1
col-span-2grid-column: span 2 / span 2
col-span-3grid-column: span 3 / span 3
col-span-fullgrid-column: 1 / -1
row-autogrid-row: auto
row-span-1grid-row: span 1 / span 1
row-span-2grid-row: span 2 / span 2
row-span-3grid-row: span 3 / span 3
row-span-fullgrid-row: 1 / -1
grid-flow-rowgrid-auto-flow: row
grid-flow-colgrid-auto-flow: column
grid-flow-densegrid-auto-flow: dense
grid-flow-row-densegrid-auto-flow: row dense
grid-flow-col-densegrid-auto-flow: column dense
place-content-centerplace-content: center
place-items-centerplace-items: center
place-self-centerplace-self: center
place-items-startplace-items: start
place-items-stretchplace-items: stretch

Spacing38 classes

Padding and margin — all directions. Dynamic values in v4

p-0padding: 0px
p-1padding: 0.25rem
p-2padding: 0.5rem
p-3padding: 0.75rem
p-4padding: 1rem
p-6padding: 1.5rem
p-8padding: 2rem
px-0padding-left: 0px; padding-right: 0px
px-2padding-left: 0.5rem; padding-right: 0.5rem
px-4padding-left: 1rem; padding-right: 1rem
px-6padding-left: 1.5rem; padding-right: 1.5rem
py-0padding-top: 0px; padding-bottom: 0px
py-2padding-top: 0.5rem; padding-bottom: 0.5rem
py-4padding-top: 1rem; padding-bottom: 1rem
pt-4padding-top: 1rem
pr-4padding-right: 1rem
pb-4padding-bottom: 1rem
pl-4padding-left: 1rem
m-0margin: 0px
m-1margin: 0.25rem
m-2margin: 0.5rem
m-4margin: 1rem
m-automargin: auto
mx-automargin-left: auto; margin-right: auto
mx-4margin-left: 1rem; margin-right: 1rem
my-4margin-top: 1rem; margin-bottom: 1rem
my-8margin-top: 2rem; margin-bottom: 2rem
mt-4margin-top: 1rem
mb-4margin-bottom: 1rem
ml-4margin-left: 1rem
mr-4margin-right: 1rem
-mt-1margin-top: -0.25rem
-mt-4margin-top: -1rem
space-x-2margin-left: 0.5rem (children)
space-x-4margin-left: 1rem (children)
space-y-2margin-top: 0.5rem (children)
space-y-4margin-top: 1rem (children)
space-x-reverseflex-direction: row-reverse spacing

Sizing39 classes

Width, height, min/max dimensions, size shorthand

w-0width: 0px
w-1width: 0.25rem
w-4width: 1rem
w-8width: 2rem
w-16width: 4rem
w-32width: 8rem
w-48width: 12rem
w-64width: 16rem
w-autowidth: auto
w-1/2width: 50%
w-1/3width: 33.333333%
w-2/3width: 66.666667%
w-fullwidth: 100%
w-screenwidth: 100vw
w-fitwidth: fit-content
w-minwidth: min-content
w-maxwidth: max-content
h-0height: 0px
h-4height: 1rem
h-8height: 2rem
h-16height: 4rem
h-autoheight: auto
h-fullheight: 100%
h-screenheight: 100vh
h-dvhheight: 100dvh
NEWv4.x
h-fitheight: fit-content
min-w-0min-width: 0px
min-w-fullmin-width: 100%
max-w-smmax-width: 24rem
max-w-mdmax-width: 28rem
max-w-lgmax-width: 32rem
max-w-xlmax-width: 36rem
max-w-7xlmax-width: 80rem
max-w-nonemax-width: none
max-w-prosemax-width: 65ch
size-4width: 1rem; height: 1rem
NEWv4.x
size-6width: 1.5rem; height: 1.5rem
NEWv4.x
size-8width: 2rem; height: 2rem
NEWv4.x
size-fullwidth: 100%; height: 100%
NEWv4.x

Typography49 classes

Font family, size, weight, leading, tracking, text alignment, decoration, transform

text-xsfont-size: 0.75rem; line-height: 1rem
text-smfont-size: 0.875rem; line-height: 1.25rem
text-basefont-size: 1rem; line-height: 1.5rem
text-lgfont-size: 1.125rem; line-height: 1.75rem
text-xlfont-size: 1.25rem; line-height: 1.75rem
text-2xlfont-size: 1.5rem; line-height: 2rem
text-3xlfont-size: 1.875rem; line-height: 2.25rem
text-4xlfont-size: 2.25rem; line-height: 2.5rem
font-thinfont-weight: 100
font-lightfont-weight: 300
font-normalfont-weight: 400
font-mediumfont-weight: 500
font-semiboldfont-weight: 600
font-boldfont-weight: 700
font-extraboldfont-weight: 800
italicfont-style: italic
not-italicfont-style: normal
font-sansfont-family: ui-sans-serif, system-ui, …
font-seriffont-family: ui-serif, Georgia, …
font-monofont-family: ui-monospace, SFMono-Regular, …
text-lefttext-align: left
text-centertext-align: center
text-righttext-align: right
text-justifytext-align: justify
leading-noneline-height: 1
leading-tightline-height: 1.25
leading-normalline-height: 1.5
leading-relaxedline-height: 1.625
leading-looseline-height: 2
tracking-tighterletter-spacing: -0.05em
tracking-tightletter-spacing: -0.025em
tracking-normalletter-spacing: 0em
tracking-wideletter-spacing: 0.025em
tracking-widerletter-spacing: 0.05em
underlinetext-decoration-line: underline
overlinetext-decoration-line: overline
line-throughtext-decoration-line: line-through
no-underlinetext-decoration-line: none
uppercasetext-transform: uppercase
lowercasetext-transform: lowercase
capitalizetext-transform: capitalize
normal-casetext-transform: none
truncateoverflow: hidden; text-overflow: ellipsis; white-space: nowrap
text-ellipsistext-overflow: ellipsis
text-cliptext-overflow: clip
whitespace-nowrapwhite-space: nowrap
break-wordsoverflow-wrap: break-word
text-wraptext-wrap: wrap
NEWv4.x
text-balancetext-wrap: balance
NEWv4.x

Color Palette247 classes

Full Tailwind color scale — all named colors, 50–950 shades, gradient stops, opacity modifiers

bg-slate-50background-color: #f8fafc
bg-slate-100background-color: #f1f5f9
bg-slate-200background-color: #e2e8f0
bg-slate-300background-color: #cbd5e1
bg-slate-400background-color: #94a3b8
bg-slate-500background-color: #64748b
bg-slate-600background-color: #475569
bg-slate-700background-color: #334155
bg-slate-800background-color: #1e293b
bg-slate-900background-color: #0f172a
bg-slate-950background-color: #020617
bg-gray-50background-color: #f9fafb
bg-gray-100background-color: #f3f4f6
bg-gray-200background-color: #e5e7eb
bg-gray-300background-color: #d1d5db
bg-gray-400background-color: #9ca3af
bg-gray-500background-color: #6b7280
bg-gray-600background-color: #4b5563
bg-gray-700background-color: #374151
bg-gray-800background-color: #1f2937
bg-gray-900background-color: #111827
bg-gray-950background-color: #030712
bg-zinc-50background-color: #fafafa
bg-zinc-100background-color: #f4f4f5
bg-zinc-200background-color: #e4e4e7
bg-zinc-300background-color: #d4d4d8
bg-zinc-400background-color: #a1a1aa
bg-zinc-500background-color: #71717a
bg-zinc-600background-color: #52525b
bg-zinc-700background-color: #3f3f46
bg-zinc-800background-color: #27272a
bg-zinc-900background-color: #18181b
bg-zinc-950background-color: #09090b
bg-red-50background-color: #fef2f2
bg-red-100background-color: #fee2e2
bg-red-200background-color: #fecaca
bg-red-300background-color: #fca5a5
bg-red-400background-color: #f87171
bg-red-500background-color: #ef4444
bg-red-600background-color: #dc2626
bg-red-700background-color: #b91c1c
bg-red-800background-color: #991b1b
bg-red-900background-color: #7f1d1d
bg-red-950background-color: #450a0a
bg-orange-50background-color: #fff7ed
bg-orange-100background-color: #ffedd5
bg-orange-200background-color: #fed7aa
bg-orange-300background-color: #fdba74
bg-orange-400background-color: #fb923c
bg-orange-500background-color: #f97316
bg-orange-600background-color: #ea580c
bg-orange-700background-color: #c2410c
bg-orange-800background-color: #9a3412
bg-orange-900background-color: #7c2d12
bg-orange-950background-color: #431407
bg-amber-50background-color: #fffbeb
bg-amber-100background-color: #fef3c7
bg-amber-200background-color: #fde68a
bg-amber-300background-color: #fcd34d
bg-amber-400background-color: #fbbf24
bg-amber-500background-color: #f59e0b
bg-amber-600background-color: #d97706
bg-amber-700background-color: #b45309
bg-amber-800background-color: #92400e
bg-amber-900background-color: #78350f
bg-amber-950background-color: #451a03
bg-yellow-50background-color: #fefce8
bg-yellow-100background-color: #fef9c3
bg-yellow-200background-color: #fef08a
bg-yellow-300background-color: #fde047
bg-yellow-400background-color: #facc15
bg-yellow-500background-color: #eab308
bg-yellow-600background-color: #ca8a04
bg-yellow-700background-color: #a16207
bg-yellow-800background-color: #854d0e
bg-yellow-900background-color: #713f12
bg-yellow-950background-color: #422006
bg-green-50background-color: #f0fdf4
bg-green-100background-color: #dcfce7
bg-green-200background-color: #bbf7d0
bg-green-300background-color: #86efac
bg-green-400background-color: #4ade80
bg-green-500background-color: #22c55e
bg-green-600background-color: #16a34a
bg-green-700background-color: #15803d
bg-green-800background-color: #166534
bg-green-900background-color: #14532d
bg-green-950background-color: #052e16
bg-blue-50background-color: #eff6ff
bg-blue-100background-color: #dbeafe
bg-blue-200background-color: #bfdbfe
bg-blue-300background-color: #93c5fd
bg-blue-400background-color: #60a5fa
bg-blue-500background-color: #3b82f6
bg-blue-600background-color: #2563eb
bg-blue-700background-color: #1d4ed8
bg-blue-800background-color: #1e40af
bg-blue-900background-color: #1e3a8a
bg-blue-950background-color: #172554
bg-indigo-50background-color: #eef2ff
bg-indigo-100background-color: #e0e7ff
bg-indigo-200background-color: #c7d2fe
bg-indigo-300background-color: #a5b4fc
bg-indigo-400background-color: #818cf8
bg-indigo-500background-color: #6366f1
bg-indigo-600background-color: #4f46e5
bg-indigo-700background-color: #4338ca
bg-indigo-800background-color: #3730a3
bg-indigo-900background-color: #312e81
bg-indigo-950background-color: #1e1b4b
bg-purple-50background-color: #faf5ff
bg-purple-100background-color: #f3e8ff
bg-purple-200background-color: #e9d5ff
bg-purple-300background-color: #d8b4fe
bg-purple-400background-color: #c084fc
bg-purple-500background-color: #a855f7
bg-purple-600background-color: #9333ea
bg-purple-700background-color: #7e22ce
bg-purple-800background-color: #6b21a8
bg-purple-900background-color: #581c87
bg-purple-950background-color: #3b0764
bg-pink-50background-color: #fdf2f8
bg-pink-100background-color: #fce7f3
bg-pink-200background-color: #fbcfe8
bg-pink-300background-color: #f9a8d4
bg-pink-400background-color: #f472b6
bg-pink-500background-color: #ec4899
bg-pink-600background-color: #db2777
bg-pink-700background-color: #be185d
bg-pink-800background-color: #9d174d
bg-pink-900background-color: #831843
bg-pink-950background-color: #500724
bg-rose-50background-color: #fff1f2
bg-rose-100background-color: #ffe4e6
bg-rose-200background-color: #fecdd3
bg-rose-300background-color: #fda4af
bg-rose-400background-color: #fb7185
bg-rose-500background-color: #f43f5e
bg-rose-600background-color: #e11d48
bg-rose-700background-color: #be123c
bg-rose-800background-color: #9f1239
bg-rose-900background-color: #881337
bg-rose-950background-color: #4c0519
bg-emerald-50background-color: #ecfdf5
bg-emerald-100background-color: #d1fae5
bg-emerald-200background-color: #a7f3d0
bg-emerald-300background-color: #6ee7b7
bg-emerald-400background-color: #34d399
bg-emerald-500background-color: #10b981
bg-emerald-600background-color: #059669
bg-emerald-700background-color: #047857
bg-emerald-800background-color: #065f46
bg-emerald-900background-color: #064e3b
bg-emerald-950background-color: #022c22
bg-teal-50background-color: #f0fdfa
bg-teal-100background-color: #ccfbf1
bg-teal-200background-color: #99f6e4
bg-teal-300background-color: #5eead4
bg-teal-400background-color: #2dd4bf
bg-teal-500background-color: #14b8a6
bg-teal-600background-color: #0d9488
bg-teal-700background-color: #0f766e
bg-teal-800background-color: #115e59
bg-teal-900background-color: #134e4a
bg-teal-950background-color: #042f2e
bg-cyan-50background-color: #ecfeff
bg-cyan-100background-color: #cffafe
bg-cyan-200background-color: #a5f3fc
bg-cyan-300background-color: #67e8f9
bg-cyan-400background-color: #22d3ee
bg-cyan-500background-color: #06b6d4
bg-cyan-600background-color: #0891b2
bg-cyan-700background-color: #0e7490
bg-cyan-800background-color: #155e75
bg-cyan-900background-color: #164e63
bg-cyan-950background-color: #083344
bg-sky-50background-color: #f0f9ff
bg-sky-100background-color: #e0f2fe
bg-sky-200background-color: #bae6fd
bg-sky-300background-color: #7dd3fc
bg-sky-400background-color: #38bdf8
bg-sky-500background-color: #0ea5e9
bg-sky-600background-color: #0284c7
bg-sky-700background-color: #0369a1
bg-sky-800background-color: #075985
bg-sky-900background-color: #0c4a6e
bg-sky-950background-color: #082f49
bg-violet-50background-color: #f5f3ff
bg-violet-100background-color: #ede9fe
bg-violet-200background-color: #ddd6fe
bg-violet-300background-color: #c4b5fd
bg-violet-400background-color: #a78bfa
bg-violet-500background-color: #8b5cf6
bg-violet-600background-color: #7c3aed
bg-violet-700background-color: #6d28d9
bg-violet-800background-color: #5b21b6
bg-violet-900background-color: #4c1d95
bg-violet-950background-color: #2e1065
bg-fuchsia-50background-color: #fdf4ff
bg-fuchsia-100background-color: #fae8ff
bg-fuchsia-200background-color: #f5d0fe
bg-fuchsia-300background-color: #f0abfc
bg-fuchsia-400background-color: #e879f9
bg-fuchsia-500background-color: #d946ef
bg-fuchsia-600background-color: #c026d3
bg-fuchsia-700background-color: #a21caf
bg-fuchsia-800background-color: #86198f
bg-fuchsia-900background-color: #701a75
bg-fuchsia-950background-color: #4a044e
bg-lime-50background-color: #f7fee7
bg-lime-100background-color: #ecfccb
bg-lime-200background-color: #d9f99d
bg-lime-300background-color: #bef264
bg-lime-400background-color: #a3e635
bg-lime-500background-color: #84cc16
bg-lime-600background-color: #65a30d
bg-lime-700background-color: #4d7c0f
bg-lime-800background-color: #3f6212
bg-lime-900background-color: #365314
bg-lime-950background-color: #1a2e05
bg-stone-50background-color: #fafaf9
bg-stone-100background-color: #f5f5f4
bg-stone-200background-color: #e7e5e4
bg-stone-300background-color: #d6d3d1
bg-stone-400background-color: #a8a29e
bg-stone-500background-color: #78716c
bg-stone-600background-color: #57534e
bg-stone-700background-color: #44403c
bg-stone-800background-color: #292524
bg-stone-900background-color: #1c1917
bg-stone-950background-color: #0c0a09
bg-neutral-50background-color: #fafafa
bg-neutral-100background-color: #f5f5f5
bg-neutral-200background-color: #e5e5e5
bg-neutral-300background-color: #d4d4d4
bg-neutral-400background-color: #a3a3a3
bg-neutral-500background-color: #737373
bg-neutral-600background-color: #525252
bg-neutral-700background-color: #404040
bg-neutral-800background-color: #262626
bg-neutral-900background-color: #171717
bg-neutral-950background-color: #0a0a0a
from-{color}--tw-gradient-from: {color}
via-{color}--tw-gradient-via: {color}
to-{color}--tw-gradient-to: {color}
bg-red-500/50background-color: rgb(239 68 68 / 0.5)
text-blue-600/75color: rgb(37 99 235 / 0.75)

Backgrounds28 classes

Background color, gradients, position, size, repeat, attachment, clip

bg-transparentbackground-color: transparent
bg-blackbackground-color: #000
bg-whitebackground-color: #fff
bg-inheritbackground-color: inherit
bg-currentbackground-color: currentColor
bg-autobackground-size: auto
bg-coverbackground-size: cover
bg-containbackground-size: contain
bg-centerbackground-position: center
bg-topbackground-position: top
bg-bottombackground-position: bottom
bg-leftbackground-position: left
bg-rightbackground-position: right
bg-repeatbackground-repeat: repeat
bg-no-repeatbackground-repeat: no-repeat
bg-repeat-xbackground-repeat: repeat-x
bg-repeat-ybackground-repeat: repeat-y
bg-fixedbackground-attachment: fixed
bg-localbackground-attachment: local
bg-scrollbackground-attachment: scroll
bg-clip-borderbackground-clip: border-box
bg-clip-paddingbackground-clip: padding-box
bg-clip-contentbackground-clip: content-box
bg-clip-textbackground-clip: text
bg-gradient-to-rbackground-image: linear-gradient(to right, ...)
bg-gradient-to-bbackground-image: linear-gradient(to bottom, ...)
bg-gradient-to-brbackground-image: linear-gradient(to bottom right, ...)
bg-nonebackground-image: none

Borders & Outlines41 classes

Border width, color, style, radius, outline, ring, divide

borderborder-width: 1px
border-0border-width: 0px
border-2border-width: 2px
border-4border-width: 4px
border-tborder-top-width: 1px
border-bborder-bottom-width: 1px
border-lborder-left-width: 1px
border-rborder-right-width: 1px
border-solidborder-style: solid
border-dashedborder-style: dashed
border-dottedborder-style: dotted
border-doubleborder-style: double
border-noneborder-style: none
border-blackborder-color: #000
border-whiteborder-color: #fff
border-transparentborder-color: transparent
border-inheritborder-color: inherit
rounded-noneborder-radius: 0px
rounded-smborder-radius: 0.125rem
roundedborder-radius: 0.25rem
rounded-mdborder-radius: 0.375rem
rounded-lgborder-radius: 0.5rem
rounded-xlborder-radius: 0.75rem
rounded-2xlborder-radius: 1rem
rounded-3xlborder-radius: 1.5rem
rounded-fullborder-radius: 9999px
rounded-t-lgborder-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem
rounded-b-lgborder-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem
divide-xborder-left-width: 1px (children)
divide-yborder-top-width: 1px (children)
divide-x-0border-left-width: 0px (children)
divide-y-reversereverse divide direction
outline-noneoutline: 2px solid transparent; outline-offset: 2px
outlineoutline-style: solid
outline-dashedoutline-style: dashed
outline-offset-2outline-offset: 2px
ringbox-shadow: 0 0 0 3px …
ring-0box-shadow: 0 0 0 0px …
ring-1box-shadow: 0 0 0 1px …
ring-2box-shadow: 0 0 0 2px …
ring-insetbox-shadow: inset 0 0 0 …

Effects & Filters10 classes

Shadow, opacity, blend modes, blur, brightness, contrast, backdrop filters

shadow-smbox-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05)
shadowbox-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), …
shadow-mdbox-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), …
shadow-lgbox-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), …
shadow-nonebox-shadow: 0 0 #0000
opacity-0opacity: 0
opacity-50opacity: 0.5
opacity-100opacity: 1
blur-smfilter: blur(4px)
blur-mdfilter: blur(12px)

Transitions & Animation10 classes

Transition property, duration, timing, delay, keyframe animations

transitiontransition-property: color, background-color, …
transition-alltransition-property: all
transition-nonetransition-property: none
duration-150transition-duration: 150ms
duration-300transition-duration: 300ms
ease-intransition-timing-function: cubic-bezier(0.4, 0, 1, 1)
ease-outtransition-timing-function: cubic-bezier(0, 0, 0.2, 1)
animate-spinanimation: spin 1s linear infinite
animate-pinganimation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite
animate-pulseanimation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite

Transforms8 classes

Scale, rotate, translate, skew, transform origin, perspective

scale-50transform: scale(.5)
scale-100transform: scale(1)
scale-150transform: scale(1.5)
rotate-45transform: rotate(45deg)
rotate-90transform: rotate(90deg)
translate-x-4transform: translateX(1rem)
translate-y-4transform: translateY(1rem)
origin-centertransform-origin: center

Interactivity8 classes

Cursor, pointer-events, resize, user-select, scroll behavior, touch-action, scroll snap

cursor-pointercursor: pointer
cursor-defaultcursor: default
cursor-not-allowedcursor: not-allowed
pointer-events-nonepointer-events: none
pointer-events-autopointer-events: auto
select-noneuser-select: none
select-alluser-select: all
scroll-smoothscroll-behavior: smooth

SVG13 classes

Fill color, stroke color, stroke width

fill-currentfill: currentColor
fill-nonefill: none
fill-inheritfill: inherit
fill-transparentfill: transparent
fill-blackfill: #000
fill-whitefill: #fff
stroke-currentstroke: currentColor
stroke-nonestroke: none
stroke-inheritstroke: inherit
stroke-transparentstroke: transparent
stroke-0stroke-width: 0
stroke-1stroke-width: 1
stroke-2stroke-width: 2

Accessibility2 classes

Screen reader utilities, forced-colors

sr-onlyposition: absolute; width: 1px; height: 1px; …
not-sr-onlyposition: static; width: auto; height: auto; …

Tables12 classes

Table layout, border-collapse, border-spacing, caption-side

table-autotable-layout: auto
table-fixedtable-layout: fixed
border-collapseborder-collapse: collapse
border-separateborder-collapse: separate
border-spacing-0border-spacing: 0px
border-spacing-1border-spacing: 0.25rem
border-spacing-2border-spacing: 0.5rem
border-spacing-4border-spacing: 1rem
border-spacing-x-2border-spacing: 0.5rem 0
border-spacing-y-2border-spacing: 0 0.5rem
caption-topcaption-side: top
caption-bottomcaption-side: bottom

Responsive Design12 classes

Breakpoint prefixes: sm, md, lg, xl, 2xl, max-* variants

sm:{utility}@media (min-width: 640px)
md:{utility}@media (min-width: 768px)
lg:{utility}@media (min-width: 1024px)
xl:{utility}@media (min-width: 1280px)
2xl:{utility}@media (min-width: 1536px)
max-sm:{utility}@media (max-width: 639px)
NEWv4.x
max-md:{utility}@media (max-width: 767px)
NEWv4.x
max-lg:{utility}@media (max-width: 1023px)
NEWv4.x
max-xl:{utility}@media (max-width: 1279px)
NEWv4.x
max-2xl:{utility}@media (max-width: 1535px)
NEWv4.x
containerwidth: 100%; max-width: breakpoint
mx-automargin-left: auto; margin-right: auto

Dark Mode9 classes

dark: variant, color-scheme utilities, strategy configuration

dark:{utility}@media (prefers-color-scheme: dark) | .dark &
scheme-lightcolor-scheme: light
NEWv4.x
scheme-darkcolor-scheme: dark
NEWv4.x
scheme-light-darkcolor-scheme: light dark
NEWv4.x
dark:bg-gray-900background-color: #111827 (in dark)
dark:text-whitecolor: #fff (in dark)
dark:border-gray-700border-color: #374151 (in dark)
/* media strategy */prefers-color-scheme: dark
/* selector strategy */.dark & or [data-theme=dark] &
CHANGED

State Variants22 classes

hover, focus, active, disabled, checked, group-hover, peer-*, has-*

hover:{utility}&:hover { … }
focus:{utility}&:focus { … }
active:{utility}&:active { … }
focus-within:{utility}&:focus-within { … }
focus-visible:{utility}&:focus-visible { … }
visited:{utility}&:visited { … }
disabled:{utility}&:disabled { … }
checked:{utility}&:checked { … }
indeterminate:{utility}&:indeterminate { … }
required:{utility}&:required { … }
invalid:{utility}&:invalid { … }
valid:{utility}&:valid { … }
NEWv4.x
read-only:{utility}&:read-only { … }
placeholder-shown:{utility}&:placeholder-shown { … }
autofill:{utility}&:autofill { … }
group-hover:{utility}.group:hover & { … }
group-focus:{utility}.group:focus & { … }
peer-checked:{utility}.peer:checked ~ & { … }
peer-focus:{utility}.peer:focus ~ & { … }
peer-invalid:{utility}.peer:invalid ~ & { … }
has-[selector]:{utility}&:has(selector) { … }
NEWv4.x
not-[selector]:{utility}&:not(selector) { … }
NEWv4.x

Structural & Positional26 classes

first, last, odd, even, nth-*, group, peer, scroll snap, accent color

first:{utility}&:first-child { … }
last:{utility}&:last-child { … }
odd:{utility}&:nth-child(odd) { … }
even:{utility}&:nth-child(even) { … }
only:{utility}&:only-child { … }
first-of-type:{utility}&:first-of-type { … }
last-of-type:{utility}&:last-of-type { … }
only-of-type:{utility}&:only-of-type { … }
empty:{utility}&:empty { … }
nth-[3n+1]:{utility}&:nth-child(3n+1) { … }
NEWv4.x
nth-last-[2]:{utility}&:nth-last-child(2) { … }
NEWv4.x
group/{name}/* named group context */
peer/{name}/* named peer context */
in-[selector]:{utility}selector & { … }
NEWv4.x
snap-xscroll-snap-type: x mandatory
snap-yscroll-snap-type: y mandatory
snap-mandatoryscroll-snap-type: … mandatory
snap-proximityscroll-snap-type: … proximity
snap-startscroll-snap-align: start
snap-centerscroll-snap-align: center
snap-endscroll-snap-align: end
snap-align-nonescroll-snap-align: none
accent-autoaccent-color: auto
accent-inheritaccent-color: inherit
accent-currentaccent-color: currentColor
accent-blue-500accent-color: #3b82f6

Pseudo-Element Variants10 classes

before, after, placeholder, marker, selection, file, first-line, backdrop

before:{utility}&::before { … }
after:{utility}&::after { … }
placeholder:{utility}&::placeholder { … }
marker:{utility}&::marker { … }
selection:{utility}&::selection { … }
file:{utility}&::file-selector-button { … }
first-line:{utility}&::first-line { … }
first-letter:{utility}&::first-letter { … }
backdrop:{utility}&::backdrop { … }
before:content-['']content: ''
CHANGED

Arbitrary Values & Modifiers18 classes

Bracket notation, CSS variables, data attributes, !important modifier, content utility

w-[137px]width: 137px
h-[50vh]height: 50vh
bg-[#1da1f2]background-color: #1da1f2
text-[#ff6347]color: #ff6347
grid-cols-[200px_1fr]grid-template-columns: 200px 1fr
text-[17px]font-size: 17px
m-[7px]margin: 7px
p-[clamp(1rem,3vw,2rem)]padding: clamp(1rem, 3vw, 2rem)
[mask-type:luminance]mask-type: luminance
[--my-color:red]--my-color: red
bg-[var(--brand)]background-color: var(--brand)
text-[var(--heading)]color: var(--heading)
!font-boldfont-weight: 700 !important
!p-4padding: 1rem !important
data-[active]:bg-green-500&[data-active] { background-color: … }
data-[size=lg]:text-xl&[data-size=lg] { font-size: 1.25rem }
content-['']content: ''
content-[attr(data-tip)]content: attr(data-tip)

Container Queries13 classes

@container, @sm:, @md:, @lg:, named containers (v4)

@containercontainer-type: inline-size
NEWv4.x
@container-normalcontainer-type: normal
NEWv4.x
@container/{name}container-name: {name}
NEWv4.x
@sm:{utility}@container (min-width: 24rem)
NEWv4.x
@md:{utility}@container (min-width: 28rem)
NEWv4.x
@lg:{utility}@container (min-width: 32rem)
NEWv4.x
@xl:{utility}@container (min-width: 36rem)
NEWv4.x
@2xl:{utility}@container (min-width: 42rem)
NEWv4.x
@3xl:{utility}@container (min-width: 48rem)
NEWv4.x
@4xl:{utility}@container (min-width: 56rem)
NEWv4.x
@5xl:{utility}@container (min-width: 64rem)
NEWv4.x
@max-sm:{utility}@container (max-width: 23.9375rem)
NEWv4.x
@max-md:{utility}@container (max-width: 27.9375rem)
NEWv4.x

Logical Properties31 classes

Inline/block direction utilities for internationalization — ms, me, ps, pe, start, end (v4)

ms-0margin-inline-start: 0
NEWv4.x
ms-1margin-inline-start: 0.25rem
NEWv4.x
ms-2margin-inline-start: 0.5rem
NEWv4.x
ms-4margin-inline-start: 1rem
NEWv4.x
ms-automargin-inline-start: auto
NEWv4.x
me-0margin-inline-end: 0
NEWv4.x
me-1margin-inline-end: 0.25rem
NEWv4.x
me-2margin-inline-end: 0.5rem
NEWv4.x
me-4margin-inline-end: 1rem
NEWv4.x
me-automargin-inline-end: auto
NEWv4.x
ps-0padding-inline-start: 0
NEWv4.x
ps-1padding-inline-start: 0.25rem
NEWv4.x
ps-2padding-inline-start: 0.5rem
NEWv4.x
ps-4padding-inline-start: 1rem
NEWv4.x
pe-0padding-inline-end: 0
NEWv4.x
pe-1padding-inline-end: 0.25rem
NEWv4.x
pe-2padding-inline-end: 0.5rem
NEWv4.x
pe-4padding-inline-end: 1rem
NEWv4.x
inset-x-0inset-inline: 0
NEWv4.x
start-0inset-inline-start: 0
NEWv4.x
end-0inset-inline-end: 0
NEWv4.x
text-starttext-align: start
NEWv4.x
text-endtext-align: end
NEWv4.x
border-s-0border-inline-start-width: 0
NEWv4.x
border-sborder-inline-start-width: 1px
NEWv4.x
border-e-0border-inline-end-width: 0
NEWv4.x
border-eborder-inline-end-width: 1px
NEWv4.x
rounded-ss-mdborder-start-start-radius: 0.375rem
NEWv4.x
rounded-se-mdborder-start-end-radius: 0.375rem
NEWv4.x
rounded-es-mdborder-end-start-radius: 0.375rem
NEWv4.x
rounded-ee-mdborder-end-end-radius: 0.375rem
NEWv4.x

Frequently Asked Questions

Common questions about Tailwind CSS utility classes, versions, and usage.

Related Tools

More developer tools from ToolFox — explore layouts, colors, and more.