πŸ“ Tailwind CSS Mega Daily Cheat Sheet

1. Layout & Containers

/* Container */
container
max-w-xs | max-w-sm | max-w-md | max-w-lg | max-w-xl | max-w-2xl | max-w-3xl | max-w-4xl | max-w-5xl | max-w-6xl | max-w-full
w-0 β†’ w-full | h-0 β†’ h-full | min-w-0 | min-h-0 | max-w-full | max-h-screen
box-border | box-content

/* Display */
block | inline-block | inline | flex | inline-flex | grid | inline-grid | hidden
flex-row | flex-row-reverse | flex-col | flex-col-reverse
flex-wrap | flex-wrap-reverse | flex-nowrap
gap-0 β†’ gap-64
grid-cols-1 β†’ grid-cols-12 | grid-rows-1 β†’ grid-rows-6
place-items-start | center | end | stretch
place-content-start | center | between | around

2. Spacing

/* Padding */
p-0 β†’ p-64 | px-0 β†’ px-64 | py-0 β†’ py-64 | pt-0 β†’ pt-64 | pr-0 β†’ pr-64 | pb-0 β†’ pb-64 | pl-0 β†’ pl-64

/* Margin */
m-0 β†’ m-64 | mx-auto | mx-0 β†’ mx-64 | my-0 β†’ my-64 | mt-0 β†’ mt-64 | mr-0 β†’ mr-64 | mb-0 β†’ mb-64 | ml-0 β†’ ml-64
Negative: -m-1 β†’ -m-64 | -mt-2 | -mx-4

3. Typography

text-xs β†’ text-9xl
font-thin | font-light | font-normal | font-medium | font-semibold | font-bold | font-extrabold | font-black
leading-none | leading-tight | leading-snug | leading-normal | leading-relaxed | leading-loose
tracking-tighter | tracking-tight | tracking-normal | tracking-wide | tracking-wider | tracking-widest
text-left | text-center | text-right | text-justify
text-white | text-black | text-gray-50 β†’ text-gray-900 | text-red-500 β†’ text-red-900 ...
uppercase | lowercase | capitalize | normal-case
underline | line-through | no-underline
truncate | overflow-ellipsis | overflow-clip

4. Backgrounds & Borders

/* Background */
bg-white | bg-black | bg-gray-50 β†’ bg-gray-900 | bg-red-500 β†’ bg-red-900 ...
bg-opacity-0 β†’ bg-opacity-100
bg-gradient-to-t | bg-gradient-to-tr | bg-gradient-to-r | bg-gradient-to-br | bg-gradient-to-b | bg-gradient-to-bl | bg-gradient-to-l | bg-gradient-to-tl
from-red-500 β†’ to-blue-500

/* Border */
border | border-0 β†’ border-8 | border-t | border-b | border-l | border-r
border-white | border-black | border-gray-50 β†’ border-gray-900
rounded-none | rounded-sm | rounded | rounded-md | rounded-lg | rounded-xl | rounded-2xl | rounded-full
divide-x | divide-y | divide-gray-50 β†’ divide-gray-900

5. Effects

shadow-sm | shadow | shadow-md | shadow-lg | shadow-xl | shadow-2xl | shadow-inner | shadow-none
opacity-0 β†’ opacity-100
overflow-auto | overflow-hidden | overflow-scroll | overflow-x-auto | overflow-y-auto
cursor-auto | cursor-pointer | cursor-wait | cursor-not-allowed
z-0 β†’ z-50 | z-auto

6. Interactivity & Transitions

hover:bg-gray-100 | focus:ring-2 | active:text-red-500
ring | ring-1 β†’ ring-8 | ring-offset-0 β†’ ring-offset-8 | ring-red-500 β†’ ring-blue-500
transition | transition-all | transition-colors | transition-opacity | duration-75 β†’ duration-1000 | ease-linear | ease-in | ease-out | ease-in-out
transform | scale-50 β†’ scale-150 | rotate-0 β†’ rotate-180 | translate-x-0 β†’ translate-x-64 | translate-y-0 β†’ translate-y-64
animate-spin | animate-ping | animate-pulse | animate-bounce

7. Positioning

static | relative | absolute | fixed | sticky
top-0 β†’ top-64 | right-0 β†’ right-64 | bottom-0 β†’ bottom-64 | left-0 β†’ left-64
inset-0 β†’ inset-64 | inset-x-0 β†’ inset-x-64 | inset-y-0 β†’ inset-y-64

8. Shortcuts / Common Patterns

px-4 py-2 β†’ padding X + Y
mx-auto β†’ horizontal center
text-center font-bold β†’ center + bold text
flex justify-between items-center β†’ common flex layout
grid grid-cols-3 gap-4 β†’ 3-column grid
absolute inset-0 β†’ full-cover positioning

9. Variants

/* Responsive */
sm: | md: | lg: | xl: | 2xl:

/* States */
hover: | focus: | active: | disabled: | checked: | visited:

/* Dark Mode */
dark:bg-gray-800 | dark:text-white | dark:border-gray-700

/* Motion Preferences */
motion-reduce: | motion-safe:

10. Common Utilities

aspect-w-16 aspect-h-9
list-none | list-disc | list-decimal
pointer-events-none | pointer-events-auto
object-contain | object-cover | object-fill | object-scale-down
visible | invisible
break-normal | break-words | break-all
whitespace-normal | whitespace-nowrap | whitespace-pre | whitespace-pre-wrap

11. Colors Reference (Partial)

Gray: gray-50 β†’ gray-900
Red: red-50 β†’ red-900
Yellow: yellow-50 β†’ yellow-900
Green: green-50 β†’ green-900
Blue: blue-50 β†’ blue-900
Indigo: indigo-50 β†’ indigo-900
Purple: purple-50 β†’ purple-900
Pink: pink-50 β†’ pink-900

βœ… Usage Tips

  • Combine classes with variants: md:hover:bg-blue-500 β†’ medium screens, hover state
  • Group spacing shorthand: m-4 p-2
  • Keep color scales consistent using the palette above

Need a Custom Tailwind CSS Website or Web App?

Building a modern web application requires more than just utility classesβ€”it requires a cohesive design system and performance-first architecture. At NeedleCode, we specialize in building lightning-fast, Tailwind-powered websites, PWAs, and custom dashboards. Our services include:

  • Tailwind UI/UX Implementation: Pixel-perfect designs translated into clean, responsive Tailwind code.
  • Performance Optimization: Purging unused CSS and optimizing builds for maximum speed.
  • Custom Design Systems: Building scalable component libraries tailored to your brand.

Ready to elevate your frontend game? Contact NeedleCode Today to bring your vision to life with precision and style.