Tailwind CSS Reference
Quick reference for common Tailwind CSS utility classes with search, filter, and copy-to-clipboard
Layout28 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
block | display: block; | Block-level element | |
inline-block | display: inline-block; | Inline-block element | |
inline | display: inline; | Inline element | |
flex | display: flex; | Flexbox container | |
inline-flex | display: inline-flex; | Inline flexbox | |
grid | display: grid; | Grid container | |
inline-grid | display: inline-grid; | Inline grid | |
hidden | display: none; | Hide element | |
container | max-width: 100%; @media(min-width) { max-width: ... } | Responsive container | |
float-left | float: left; | Float left | |
float-right | float: right; | Float right | |
clearfix | clear: both; | Clear floats | |
overflow-auto | overflow: auto; | Auto overflow scroll | |
overflow-hidden | overflow: hidden; | Hide overflow | |
overflow-scroll | overflow: scroll; | Always show scrollbar | |
overflow-visible | overflow: visible; | Overflow visible | |
relative | position: relative; | Relative positioning | |
absolute | position: absolute; | Absolute positioning | |
fixed | position: fixed; | Fixed positioning | |
sticky | position: sticky; | Sticky positioning | |
static | position: static; | Static positioning (default) | |
inset-0 | top: 0; right: 0; bottom: 0; left: 0; | All sides set to 0 | |
top-0 | top: 0px; | Top offset 0 | |
right-0 | right: 0px; | Right offset 0 | |
bottom-0 | bottom: 0px; | Bottom offset 0 | |
left-0 | left: 0px; | Left offset 0 | |
z-10 | z-index: 10; | Z-index 10 | |
z-50 | z-index: 50; | Z-index 50 |
Flexbox29 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
flex-row | flex-direction: row; | Horizontal layout (default) | |
flex-row-reverse | flex-direction: row-reverse; | Horizontal reversed | |
flex-col | flex-direction: column; | Vertical layout | |
flex-col-reverse | flex-direction: column-reverse; | Vertical reversed | |
flex-wrap | flex-wrap: wrap; | Allow wrapping | |
flex-nowrap | flex-wrap: nowrap; | No wrapping | |
flex-1 | flex: 1 1 0%; | Equal flex grow | |
flex-auto | flex: 1 1 auto; | Flex based on content | |
flex-none | flex: none; | No flex grow/shrink | |
flex-grow | flex-grow: 1; | Allow growing | |
flex-shrink | flex-shrink: 1; | Allow shrinking | |
flex-shrink-0 | flex-shrink: 0; | Prevent shrinking | |
justify-start | justify-content: flex-start; | Justify start | |
justify-center | justify-content: center; | Justify center | |
justify-end | justify-content: flex-end; | Justify end | |
justify-between | justify-content: space-between; | Justify space-between | |
justify-around | justify-content: space-around; | Justify space-around | |
justify-evenly | justify-content: space-evenly; | Justify space-evenly | |
items-start | align-items: flex-start; | Items start | |
items-center | align-items: center; | Items center | |
items-end | align-items: flex-end; | Items end | |
items-stretch | align-items: stretch; | Items stretch | |
items-baseline | align-items: baseline; | Items baseline | |
self-start | align-self: flex-start; | Self start | |
self-center | align-self: center; | Self center | |
self-end | align-self: flex-end; | Self end | |
gap-4 | gap: 1rem; | Gap 1rem | |
gap-x-4 | column-gap: 1rem; | Column gap 1rem | |
gap-y-4 | row-gap: 1rem; | Row gap 1rem |
Grid14 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
grid-cols-1 | grid-template-columns: repeat(1, minmax(0, 1fr)); | 1 column grid | |
grid-cols-2 | grid-template-columns: repeat(2, minmax(0, 1fr)); | 2 column grid | |
grid-cols-3 | grid-template-columns: repeat(3, minmax(0, 1fr)); | 3 column grid | |
grid-cols-4 | grid-template-columns: repeat(4, minmax(0, 1fr)); | 4 column grid | |
grid-cols-6 | grid-template-columns: repeat(6, minmax(0, 1fr)); | 6 column grid | |
grid-cols-12 | grid-template-columns: repeat(12, minmax(0, 1fr)); | 12 column grid | |
grid-cols-none | grid-template-columns: none; | No explicit columns | |
col-span-2 | grid-column: span 2 / span 2; | Span 2 columns | |
col-span-full | grid-column: 1 / -1; | Span full row | |
col-start-1 | grid-column-start: 1; | Start at column 1 | |
row-span-2 | grid-row: span 2 / span 2; | Span 2 rows | |
grid-rows-2 | grid-template-rows: repeat(2, minmax(0, 1fr)); | 2 row grid | |
auto-cols-fr | grid-auto-columns: minmax(0, 1fr); | Auto columns fill | |
auto-rows-fr | grid-auto-rows: minmax(0, 1fr); | Auto rows fill |
Spacing26 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
m-0 | margin: 0px; | Margin 0 | |
m-1 | margin: 0.25rem; | Margin 0.25rem | |
m-2 | margin: 0.5rem; | Margin 0.5rem | |
m-4 | margin: 1rem; | Margin 1rem | |
m-auto | margin: auto; | Auto margin (center) | |
mx-auto | margin-left: auto; margin-right: auto; | Horizontal center | |
mx-4 | margin-left: 1rem; margin-right: 1rem; | Horizontal margin 1rem | |
my-4 | margin-top: 1rem; margin-bottom: 1rem; | Vertical margin 1rem | |
mt-4 | margin-top: 1rem; | Margin top 1rem | |
mr-4 | margin-right: 1rem; | Margin right 1rem | |
mb-4 | margin-bottom: 1rem; | Margin bottom 1rem | |
ml-4 | margin-left: 1rem; | Margin left 1rem | |
-m-4 | margin: -1rem; | Negative margin -1rem | |
p-0 | padding: 0px; | Padding 0 | |
p-1 | padding: 0.25rem; | Padding 0.25rem | |
p-2 | padding: 0.5rem; | Padding 0.5rem | |
p-4 | padding: 1rem; | Padding 1rem | |
px-4 | padding-left: 1rem; padding-right: 1rem; | Horizontal padding 1rem | |
py-4 | padding-top: 1rem; padding-bottom: 1rem; | Vertical padding 1rem | |
pt-4 | padding-top: 1rem; | Padding top 1rem | |
pr-4 | padding-right: 1rem; | Padding right 1rem | |
pb-4 | padding-bottom: 1rem; | Padding bottom 1rem | |
pl-4 | padding-left: 1rem; | Padding left 1rem | |
space-x-4 | > * + * { margin-left: 1rem; } | Child horizontal spacing 1rem | |
space-y-4 | > * + * { margin-top: 1rem; } | Child vertical spacing 1rem | |
space-x-reverse | direction: rtl; | Reverse horizontal spacing direction |
Sizing33 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
w-0 | width: 0px; | Width 0 | |
w-1 | width: 0.25rem; | Width 0.25rem | |
w-4 | width: 1rem; | Width 1rem | |
w-1/2 | width: 50%; | Width 50% | |
w-1/3 | width: 33.333%; | Width 33.3% | |
w-2/3 | width: 66.667%; | Width 66.7% | |
w-full | width: 100%; | Width 100% | |
w-screen | width: 100vw; | Viewport width | |
w-min | width: min-content; | Min-content width | |
w-max | width: max-content; | Max-content width | |
w-fit | width: fit-content; | Fit-content width | |
w-auto | width: auto; | Auto width | |
min-w-0 | min-width: 0px; | Min width 0 | |
min-w-full | min-width: 100%; | Min width 100% | |
max-w-xs | max-width: 20rem; | Max width 20rem | |
max-w-sm | max-width: 24rem; | Max width 24rem | |
max-w-md | max-width: 28rem; | Max width 28rem | |
max-w-lg | max-width: 32rem; | Max width 32rem | |
max-w-xl | max-width: 36rem; | Max width 36rem | |
max-w-2xl | max-width: 42rem; | Max width 42rem | |
max-w-full | max-width: 100%; | Max width 100% | |
max-w-none | max-width: none; | No max width limit | |
max-w-prose | max-width: 65ch; | Max width 65 characters | |
h-0 | height: 0px; | Height 0 | |
h-4 | height: 1rem; | Height 1rem | |
h-full | height: 100%; | Height 100% | |
h-screen | height: 100vh; | Viewport height | |
h-auto | height: auto; | Auto height | |
min-h-0 | min-height: 0px; | Min height 0 | |
min-h-full | min-height: 100%; | Min height 100% | |
min-h-screen | min-height: 100vh; | Min viewport height | |
max-h-full | max-height: 100%; | Max height 100% | |
max-h-screen | max-height: 100vh; | Max viewport height |
Typography57 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
text-xs | font-size: 0.75rem; line-height: 1rem; | Extra small text 12px | |
text-sm | font-size: 0.875rem; line-height: 1.25rem; | Small text 14px | |
text-base | font-size: 1rem; line-height: 1.5rem; | Base text 16px | |
text-lg | font-size: 1.125rem; line-height: 1.75rem; | Large text 18px | |
text-xl | font-size: 1.25rem; line-height: 1.75rem; | Extra large text 20px | |
text-2xl | font-size: 1.5rem; line-height: 2rem; | 2x large text 24px | |
text-3xl | font-size: 1.875rem; line-height: 2.25rem; | 3x large text 30px | |
text-4xl | font-size: 2.25rem; line-height: 2.5rem; | 4x large text 36px | |
text-5xl | font-size: 3rem; line-height: 1; | 5x large text 48px | |
font-thin | font-weight: 100; | Thin font weight | |
font-light | font-weight: 300; | Light font weight | |
font-normal | font-weight: 400; | Normal font weight | |
font-medium | font-weight: 500; | Medium font weight | |
font-semibold | font-weight: 600; | Semibold font weight | |
font-bold | font-weight: 700; | Bold font weight | |
font-extrabold | font-weight: 800; | Extra bold font weight | |
font-black | font-weight: 900; | Black font weight | |
text-left | text-align: left; | Text align left | |
text-center | text-align: center; | Text align center | |
text-right | text-align: right; | Text align right | |
text-justify | text-align: justify; | Text justify | |
leading-none | line-height: 1; | Line height 1 | |
leading-tight | line-height: 1.25; | Tight line height | |
leading-normal | line-height: 1.5; | Normal line height | |
leading-relaxed | line-height: 1.625; | Relaxed line height | |
leading-loose | line-height: 2; | Loose line height | |
tracking-tight | letter-spacing: -0.025em; | Tight letter spacing | |
tracking-normal | letter-spacing: 0em; | Normal letter spacing | |
tracking-wide | letter-spacing: 0.025em; | Wide letter spacing | |
tracking-wider | letter-spacing: 0.05em; | Wider letter spacing | |
tracking-widest | letter-spacing: 0.1em; | Widest letter spacing | |
uppercase | text-transform: uppercase; | Uppercase transform | |
lowercase | text-transform: lowercase; | Lowercase transform | |
capitalize | text-transform: capitalize; | Capitalize transform | |
normal-case | text-transform: none; | No transform | |
underline | text-decoration-line: underline; | Underline | |
overline | text-decoration-line: overline; | Overline | |
line-through | text-decoration-line: line-through; | Line-through | |
no-underline | text-decoration-line: none; | No underline | |
truncate | overflow: hidden; text-overflow: ellipsis; white-space: nowrap; | Single-line truncate | |
text-ellipsis | text-overflow: ellipsis; | Text ellipsis | |
text-clip | text-overflow: clip; | Text clip | |
break-normal | overflow-wrap: normal; word-break: normal; | Normal word break | |
break-words | overflow-wrap: break-word; | Break words | |
break-all | word-break: break-all; | Break at any character | |
whitespace-normal | white-space: normal; | Normal whitespace | |
whitespace-nowrap | white-space: nowrap; | No wrap | |
whitespace-pre | white-space: pre; | Preserve whitespace | |
whitespace-pre-wrap | white-space: pre-wrap; | Preserve and wrap | |
italic | font-style: italic; | Italic style | |
not-italic | font-style: normal; | Not italic | |
list-none | list-style-type: none; | No list markers | |
list-disc | list-style-type: disc; | Disc list markers | |
list-decimal | list-style-type: decimal; | Decimal list markers | |
list-inside | list-style-position: inside; | List markers inside | |
list-outside | list-style-position: outside; | List markers outside | |
placeholder-gray-400 | ::placeholder { color: #9ca3af; } | Placeholder color |
Backgrounds32 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
bg-transparent | background-color: transparent; | Transparent background | |
bg-black | background-color: #000; | Black background | |
bg-white | background-color: #fff; | White background | |
bg-gray-100 | background-color: #f3f4f6; | Light gray background | |
bg-gray-200 | background-color: #e5e7eb; | Gray background | |
bg-gray-500 | background-color: #6b7280; | Medium gray background | |
bg-gray-800 | background-color: #1f2937; | Dark gray background | |
bg-gray-900 | background-color: #111827; | Very dark gray background | |
bg-red-500 | background-color: #ef4444; | Red background | |
bg-blue-500 | background-color: #3b82f6; | Blue background | |
bg-green-500 | background-color: #22c55e; | Green background | |
bg-yellow-500 | background-color: #eab308; | Yellow background | |
bg-purple-500 | background-color: #a855f7; | Purple background | |
bg-indigo-500 | background-color: #6366f1; | Indigo background | |
bg-pink-500 | background-color: #ec4899; | Pink background | |
bg-opacity-50 | --tw-bg-opacity: 0.5; | Background opacity 50% | |
bg-cover | background-size: cover; | Cover background | |
bg-contain | background-size: contain; | Contain background | |
bg-center | background-position: center; | Center background | |
bg-top | background-position: top; | Top background | |
bg-bottom | background-position: bottom; | Bottom background | |
bg-no-repeat | background-repeat: no-repeat; | No repeat background | |
bg-repeat | background-repeat: repeat; | Repeat background | |
bg-fixed | background-attachment: fixed; | Fixed background | |
bg-local | background-attachment: local; | Scroll with content | |
bg-scroll | background-attachment: scroll; | Scroll with container | |
bg-gradient-to-r | background-image: linear-gradient(to right, ...); | Gradient to right | |
bg-gradient-to-b | background-image: linear-gradient(to bottom, ...); | Gradient to bottom | |
bg-gradient-to-br | background-image: linear-gradient(to bottom right, ...); | Gradient to bottom-right | |
from-blue-500 | --tw-gradient-from: #3b82f6; | Gradient from color | |
to-purple-500 | --tw-gradient-to: #a855f7; | Gradient to color | |
via-green-500 | --tw-gradient-stops: ..., #22c55e, ...; | Gradient via color |
Borders35 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
border | border-width: 1px; | 1px border | |
border-0 | border-width: 0px; | No border | |
border-2 | border-width: 2px; | 2px border | |
border-4 | border-width: 4px; | 4px border | |
border-t | border-top-width: 1px; | Top border | |
border-r | border-right-width: 1px; | Right border | |
border-b | border-bottom-width: 1px; | Bottom border | |
border-l | border-left-width: 1px; | Left border | |
border-solid | border-style: solid; | Solid border | |
border-dashed | border-style: dashed; | Dashed border | |
border-dotted | border-style: dotted; | Dotted border | |
border-double | border-style: double; | Double border | |
border-none | border-style: none; | No border style | |
border-gray-200 | border-color: #e5e7eb; | Light gray border | |
border-gray-300 | border-color: #d1d5db; | Gray border | |
border-gray-800 | border-color: #1f2937; | Dark gray border | |
border-blue-500 | border-color: #3b82f6; | Blue border | |
border-red-500 | border-color: #ef4444; | Red border | |
border-transparent | border-color: transparent; | Transparent border | |
rounded-none | border-radius: 0px; | No border radius | |
rounded-sm | border-radius: 0.125rem; | Small border radius | |
rounded | border-radius: 0.25rem; | Default border radius | |
rounded-md | border-radius: 0.375rem; | Medium border radius | |
rounded-lg | border-radius: 0.5rem; | Large border radius | |
rounded-xl | border-radius: 0.75rem; | Extra large radius | |
rounded-2xl | border-radius: 1rem; | 2x large radius | |
rounded-full | border-radius: 9999px; | Full round (circle) | |
rounded-t-lg | border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; | Top large radius | |
rounded-b-lg | border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; | Bottom large radius | |
ring-1 | box-shadow: 0 0 0 1px var(--tw-ring-color); | 1px ring | |
ring-2 | box-shadow: 0 0 0 2px var(--tw-ring-color); | 2px ring | |
ring-blue-500 | --tw-ring-color: #3b82f6; | Blue ring | |
divide-x | > * + * { border-left-width: 1px; } | Vertical dividers | |
divide-y | > * + * { border-top-width: 1px; } | Horizontal dividers | |
divide-gray-200 | > * + * { border-color: #e5e7eb; } | Gray dividers |
Effects19 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
shadow-sm | box-shadow: 0 1px 2px rgba(0,0,0,0.05); | Small shadow | |
shadow | box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); | Default shadow | |
shadow-md | box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06); | Medium shadow | |
shadow-lg | box-shadow: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05); | Large shadow | |
shadow-xl | box-shadow: 0 20px 25px rgba(0,0,0,0.1), 0 8px 10px rgba(0,0,0,0.04); | Extra large shadow | |
shadow-2xl | box-shadow: 0 25px 50px rgba(0,0,0,0.25); | 2x large shadow | |
shadow-inner | box-shadow: inset 0 2px 4px rgba(0,0,0,0.06); | Inner shadow | |
shadow-none | box-shadow: 0 0 #0000; | No shadow | |
shadow-blue-500/50 | box-shadow: ... rgba(59,130,246,0.5); | Blue shadow | |
opacity-0 | opacity: 0; | Fully transparent | |
opacity-5 | opacity: 0.05; | 5% opacity | |
opacity-10 | opacity: 0.1; | 10% opacity | |
opacity-25 | opacity: 0.25; | 25% opacity | |
opacity-50 | opacity: 0.5; | 50% opacity | |
opacity-75 | opacity: 0.75; | 75% opacity | |
opacity-100 | opacity: 1; | Fully opaque | |
mix-blend-multiply | mix-blend-mode: multiply; | Multiply blend | |
mix-blend-screen | mix-blend-mode: screen; | Screen blend | |
mix-blend-overlay | mix-blend-mode: overlay; | Overlay blend |
Filters39 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
blur-none | filter: blur(0); | No blur | |
blur-sm | filter: blur(4px); | Small blur | |
blur | filter: blur(8px); | Default blur | |
blur-md | filter: blur(12px); | Medium blur | |
blur-lg | filter: blur(16px); | Large blur | |
blur-xl | filter: blur(24px); | Extra large blur | |
blur-2xl | filter: blur(40px); | 2x blur | |
blur-3xl | filter: blur(64px); | 3x blur | |
brightness-0 | filter: brightness(0); | Brightness 0 (black) | |
brightness-50 | filter: brightness(0.5); | Brightness 50% | |
brightness-100 | filter: brightness(1); | Normal brightness | |
brightness-125 | filter: brightness(1.25); | Brightness 125% | |
brightness-150 | filter: brightness(1.5); | Brightness 150% | |
brightness-200 | filter: brightness(2); | Brightness 200% | |
contrast-50 | filter: contrast(0.5); | Contrast 50% | |
contrast-100 | filter: contrast(1); | Normal contrast | |
contrast-150 | filter: contrast(1.5); | Contrast 150% | |
grayscale-0 | filter: grayscale(0); | No grayscale | |
grayscale | filter: grayscale(100%); | Full grayscale | |
invert-0 | filter: invert(0); | No invert | |
invert | filter: invert(100%); | Invert colors | |
sepia-0 | filter: sepia(0); | No sepia | |
sepia | filter: sepia(100%); | Full sepia | |
saturate-50 | filter: saturate(0.5); | Saturation 50% | |
saturate-100 | filter: saturate(1); | Normal saturation | |
saturate-150 | filter: saturate(1.5); | Saturation 150% | |
saturate-200 | filter: saturate(2); | Saturation 200% | |
hue-rotate-0 | filter: hue-rotate(0deg); | Hue rotate 0° | |
hue-rotate-90 | filter: hue-rotate(90deg); | Hue rotate 90° | |
hue-rotate-180 | filter: hue-rotate(180deg); | Hue rotate 180° | |
drop-shadow-sm | filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05)); | Small drop shadow | |
drop-shadow | filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)) drop-shadow(0 1px 1px rgba(0,0,0,0.06)); | Default drop shadow | |
drop-shadow-md | filter: drop-shadow(0 4px 3px rgba(0,0,0,0.1)) drop-shadow(0 2px 2px rgba(0,0,0,0.06)); | Medium drop shadow | |
drop-shadow-lg | filter: drop-shadow(0 10px 8px rgba(0,0,0,0.1)) drop-shadow(0 4px 3px rgba(0,0,0,0.08)); | Large drop shadow | |
backdrop-blur-sm | backdrop-filter: blur(4px); | Small backdrop blur | |
backdrop-blur | backdrop-filter: blur(8px); | Default backdrop blur | |
backdrop-blur-md | backdrop-filter: blur(12px); | Medium backdrop blur | |
backdrop-blur-lg | backdrop-filter: blur(16px); | Large backdrop blur | |
backdrop-blur-xl | backdrop-filter: blur(24px); | Extra large backdrop blur |
Transitions30 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
transition-none | transition-property: none; | No transition | |
transition-all | transition-property: all; | Transition all properties | |
transition | transition-property: color, background-color, border-color, opacity, box-shadow, transform; | Default transition | |
transition-colors | transition-property: color, background-color, border-color; | Color transition | |
transition-opacity | transition-property: opacity; | Opacity transition | |
transition-shadow | transition-property: box-shadow; | Shadow transition | |
transition-transform | transition-property: transform; | Transform transition | |
duration-75 | transition-duration: 75ms; | Duration 75ms | |
duration-100 | transition-duration: 100ms; | Duration 100ms | |
duration-150 | transition-duration: 150ms; | Duration 150ms | |
duration-200 | transition-duration: 200ms; | Duration 200ms | |
duration-300 | transition-duration: 300ms; | Duration 300ms | |
duration-500 | transition-duration: 500ms; | Duration 500ms | |
duration-700 | transition-duration: 700ms; | Duration 700ms | |
duration-1000 | transition-duration: 1000ms; | Duration 1000ms | |
ease-linear | transition-timing-function: linear; | Linear easing | |
ease-in | transition-timing-function: cubic-bezier(0.4, 0, 1, 1); | Ease in | |
ease-out | transition-timing-function: cubic-bezier(0, 0, 0.2, 1); | Ease out | |
ease-in-out | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); | Ease in-out | |
delay-75 | transition-delay: 75ms; | Delay 75ms | |
delay-100 | transition-delay: 100ms; | Delay 100ms | |
delay-150 | transition-delay: 150ms; | Delay 150ms | |
delay-300 | transition-delay: 300ms; | Delay 300ms | |
delay-500 | transition-delay: 500ms; | Delay 500ms | |
delay-700 | transition-delay: 700ms; | Delay 700ms | |
animate-none | animation: none; | No animation | |
animate-spin | animation: spin 1s linear infinite; | Spin animation | |
animate-ping | animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; | Ping animation | |
animate-pulse | animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; | Pulse animation | |
animate-bounce | animation: bounce 1s infinite; | Bounce animation |
Transforms41 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
scale-0 | transform: scale(0); | Scale 0 | |
scale-50 | transform: scale(0.5); | Scale 50% | |
scale-75 | transform: scale(0.75); | Scale 75% | |
scale-90 | transform: scale(0.9); | Scale 90% | |
scale-95 | transform: scale(0.95); | Scale 95% | |
scale-100 | transform: scale(1); | Original size | |
scale-105 | transform: scale(1.05); | Scale 105% | |
scale-110 | transform: scale(1.1); | Scale 110% | |
scale-125 | transform: scale(1.25); | Scale 125% | |
scale-150 | transform: scale(1.5); | Scale 150% | |
scale-x-100 | transform: scaleX(1); | Horizontal scale 100% | |
scale-y-100 | transform: scaleY(1); | Vertical scale 100% | |
rotate-0 | transform: rotate(0deg); | Rotate 0° | |
rotate-1 | transform: rotate(1deg); | Rotate 1° | |
rotate-3 | transform: rotate(3deg); | Rotate 3° | |
rotate-6 | transform: rotate(6deg); | Rotate 6° | |
rotate-12 | transform: rotate(12deg); | Rotate 12° | |
rotate-45 | transform: rotate(45deg); | Rotate 45° | |
rotate-90 | transform: rotate(90deg); | Rotate 90° | |
rotate-180 | transform: rotate(180deg); | Rotate 180° | |
-rotate-45 | transform: rotate(-45deg); | Rotate -45° | |
-rotate-90 | transform: rotate(-90deg); | Rotate -90° | |
translate-x-0 | transform: translateX(0); | Translate X 0 | |
translate-x-1 | transform: translateX(0.25rem); | Translate X 0.25rem | |
translate-x-4 | transform: translateX(1rem); | Translate X 1rem | |
translate-x-full | transform: translateX(100%); | Translate X 100% | |
translate-x-1/2 | transform: translateX(50%); | Translate X 50% | |
-translate-x-full | transform: translateX(-100%); | Translate X -100% | |
translate-y-0 | transform: translateY(0); | Translate Y 0 | |
translate-y-1 | transform: translateY(0.25rem); | Translate Y 0.25rem | |
translate-y-4 | transform: translateY(1rem); | Translate Y 1rem | |
translate-y-full | transform: translateY(100%); | Translate Y 100% | |
-translate-y-full | transform: translateY(-100%); | Translate Y -100% | |
skew-x-3 | transform: skewX(3deg); | Skew X 3° | |
skew-x-6 | transform: skewX(6deg); | Skew X 6° | |
skew-y-3 | transform: skewY(3deg); | Skew Y 3° | |
skew-y-6 | transform: skewY(6deg); | Skew Y 6° | |
origin-center | transform-origin: center; | Transform origin center | |
origin-top | transform-origin: top; | Transform origin top | |
origin-top-right | transform-origin: top right; | Transform origin top-right | |
origin-bottom-left | transform-origin: bottom left; | Transform origin bottom-left |
Interactivity29 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
cursor-auto | cursor: auto; | Auto cursor | |
cursor-default | cursor: default; | Default cursor | |
cursor-pointer | cursor: pointer; | Pointer cursor | |
cursor-wait | cursor: wait; | Wait cursor | |
cursor-text | cursor: text; | Text cursor | |
cursor-move | cursor: move; | Move cursor | |
cursor-not-allowed | cursor: not-allowed; | Not-allowed cursor | |
cursor-grab | cursor: grab; | Grab cursor | |
cursor-grabbing | cursor: grabbing; | Grabbing cursor | |
pointer-events-none | pointer-events: none; | Disable pointer events | |
pointer-events-auto | pointer-events: auto; | Enable pointer events | |
resize-none | resize: none; | Disable resize | |
resize | resize: both; | Resize both | |
resize-x | resize: horizontal; | Resize horizontal | |
resize-y | resize: vertical; | Resize vertical | |
select-none | user-select: none; | Disable text selection | |
select-text | user-select: text; | Allow text selection | |
select-all | user-select: all; | Select all on click | |
select-auto | user-select: auto; | Auto selection | |
scroll-auto | scroll-behavior: auto; | Auto scroll | |
scroll-smooth | scroll-behavior: smooth; | Smooth scroll | |
snap-start | scroll-snap-align: start; | Snap to start | |
snap-center | scroll-snap-align: center; | Snap to center | |
snap-end | scroll-snap-align: end; | Snap to end | |
snap-mandatory | scroll-snap-type: ... mandatory; | Mandatory snap | |
snap-proximity | scroll-snap-type: ... proximity; | Proximity snap | |
touch-auto | touch-action: auto; | Auto touch behavior | |
touch-none | touch-action: none; | Disable touch | |
touch-manipulation | touch-action: manipulation; | Touch manipulation |
SVG7 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
fill-current | fill: currentColor; | Fill current color | |
fill-none | fill: none; | No fill | |
fill-red-500 | fill: #ef4444; | Red fill | |
stroke-current | stroke: currentColor; | Stroke current color | |
stroke-none | stroke: none; | No stroke | |
stroke-1 | stroke-width: 1; | Stroke width 1 | |
stroke-2 | stroke-width: 2; | Stroke width 2 |
Accessibility4 classes
| Class | CSS Equivalent | Description | Action |
|---|---|---|---|
sr-only | position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; | Screen reader only | |
not-sr-only | position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; | Not screen reader only | |
forced-color-adjust-auto | forced-color-adjust: auto; | Auto forced color | |
forced-color-adjust-none | forced-color-adjust: none; | Disable forced color |
Tailwind CSS Quick Reference Guide
Features
- Browse by Category — quickly find classes by layout, flexbox, spacing, etc.
- Keyword Search — filter by class name or CSS property
- Click to Copy — one-click copy class names to clipboard
- CSS Mapping — see the CSS equivalent for each class
Usage Tips
- Responsive prefixes:
sm:md:lg:xl:2xl: - Dark mode prefix:
dark:, e.g.dark:bg-gray-900 - State prefixes:
hover:focus:active:disabled: - Combine:
<div class="md:flex dark:bg-gray-900 hover:shadow-lg">