This cheat sheet consolidates the most-used utility classes from every lesson in this course into one quick-reference page, organized by category for fast lookups while you build.
How to Use This Cheat Sheet
Rather than memorizing every utility, use this page as a fast lookup while building: find the category you need, copy the class pattern, and adjust the value to match your design.
Each table below covers one utility category from this course.
Values shown are representative; consult the relevant lesson for the full scale.
Use your editor's Tailwind IntelliSense for autocomplete beyond what's listed here.
Layout Cheat Sheet
Display, position, and overflow utilities.
Class
Effect
container mx-auto
Centered, breakpoint-constrained wrapper
flex / grid
Flexbox / grid container
hidden md:block
Responsive show/hide
relative / absolute
Positioning context and offset positioning
fixed / sticky
Viewport-fixed or scroll-sticky positioning
inset-0
Stretch to all four edges of a positioned parent
z-10 … z-50
Stacking order
overflow-auto / overflow-hidden
Scroll or clip overflowing content
Flexbox and Grid Cheat Sheet
Layout utilities for one- and two-dimensional arrangements.
Class
Effect
flex flex-col md:flex-row
Responsive stacked-to-row layout
justify-between items-center
Classic navbar alignment pattern
grid grid-cols-3 gap-4
Three-column grid with consistent gaps
col-span-2
Item spans two grid columns
flex-1 / flex-none
Item grows to fill space / stays fixed size
flex-wrap
Allow flex items to wrap onto new lines
Spacing and Sizing Cheat Sheet
Margin, padding, width, height, and gap utilities.
Class
Effect
p-4 / px-4 py-2
Padding on all sides / axis pairs
m-4 / mx-auto
Margin on all sides / auto-centering
gap-4
Spacing between flex/grid children
w-full / max-w-md
Full width / constrained maximum width
h-screen / min-h-screen
Full viewport height / minimum full height
space-y-4
Vertical spacing between stacked children
Typography and Color Cheat Sheet
Text, font, and color utilities.
Class
Effect
text-lg font-bold
Font size and weight
leading-relaxed tracking-wide
Line height and letter spacing
text-slate-900 dark:text-slate-100
Text color with dark mode variant
bg-blue-600 hover:bg-blue-700
Background color with hover state
bg-gradient-to-r from-blue-500 to-purple-600
Two-color linear gradient
rounded-lg shadow-md
Rounded corners with medium elevation
Common Mistakes
Trying to memorize this entire cheat sheet instead of using it as a reference while building.
Copying a value shown here without adjusting it to match your project's actual design scale.
Forgetting that many of these utilities have responsive and state variants not shown in this condensed view.
Not cross-referencing the full lesson for context on when and why to use a given pattern.
Key Takeaways
This cheat sheet condenses the most commonly used utility patterns from every category in this course.
Use it as a fast lookup tool while building, not a substitute for understanding the underlying concepts.
Editor autocomplete and the official documentation complement this page for less common utilities.
Revisit the full lesson for any category when you need deeper context or edge-case handling.
Pro Tip
Bookmark this page and the official Tailwind documentation side by side, this cheat sheet covers the 80% you'll use daily, the official docs cover the remaining 20% of edge cases.
Borders and Effects Cheat Sheet
Border, radius, shadow, and transition utilities for finishing touches.
Class
Effect
border border-slate-200
1px light gray border
rounded-lg / rounded-full
Soft corners / full circle or pill
ring-2 ring-blue-500 ring-offset-2
Accessible focus ring with offset
shadow-md hover:shadow-xl
Elevation with hover increase
transition-colors duration-200
Smooth color transition
hover:scale-105
Slight scale-up hover effect
backdrop-blur-md bg-white/10
Glassmorphism frosted effect
divide-y divide-slate-200
Borders between stacked list items
Forms and Components Cheat Sheet
Frequently reused patterns for form fields, buttons, and common UI components.