
A friendly, beginner-first tutorial blog designed to help you feel confident, creative, and powerful while learning CSS โ no intimidation, no gatekeeping.
Colors in Tailwind are like choosing paint for your room. You can use them for backgrounds, text, borders, and more!
Use bg- prefix for backgrounds. Try changing the color below using colors from the palette above!
Change bg-barbie to bg-sky, bg-blush, bg-pink-500, bg-purple-400, bg-blue-400, bg-green-400, or bg-yellow-300
โ๏ธ Edit Your Code:
๐ Live Preview:
Use text- prefix for text colors. Use colors from the palette above!
Try text-sky, text-purple-400, text-blue-400, text-green-400, or text-yellow-300
โ๏ธ Edit Your Code:
๐ Live Preview:
Make images look amazing with rounded corners, circles, and perfect sizing!
Use rounded- for soft corners on your images.

<img src="your-image.png" alt="Description" class="w-48 h-48 rounded-lg">
๐ก Try rounded-md, rounded-lg, rounded-xl, rounded-2xl, or rounded-full for circles!
Perfect circles with rounded-full! Great for profile pictures.

<img src="profile.png" alt="Profile picture" class="w-32 h-32 rounded-full">
๐ก Make sure width and height are the same for perfect circles!
Control size with w- and h- classes.



<img src="image.png" alt="Description" class="w-24 h-24 rounded-xl">
๐ก Try w-16 h-16 (small), w-40 h-40 (medium), or w-48 h-48 (large)
Here are examples of different image styles you can create with Tailwind:

rounded-lg

rounded-full

rounded-xl

with border
๐ก These images are examples only. Replace the placeholder URLs with your own PNG images!
Make your text stand out with different sizes, weights, and styles!
Use text- with sizes from xs to 9xl.
Try text-sm, text-base, text-lg, text-xl, text-2xl, text-3xl, text-4xl, or text-5xl
โ๏ธ Edit Your Code:
๐ Live Preview:
Control how bold your text is with font- classes.
Try font-thin, font-light, font-normal, font-medium, font-semibold, font-bold, or font-extrabold
โ๏ธ Edit Your Code:
๐ Live Preview:
Bold Text
Align text left, center, or right!
Try text-left, text-center, or text-right. Note: text alignment works on block elements!
โ๏ธ Edit Your Code:
๐ Live Preview:
Centered Text
Regular paragraph text
Small italic text
Flexbox is like organizing items in a row or column. Perfect for navigation bars, cards, and layouts!
Use flex to arrange items side by side.
Try adding justify-center, justify-between, or items-center
โ๏ธ Edit Your Code:
๐ Live Preview:
Use flex flex-col to stack items vertically.
Try adding items-center or items-end for alignment
โ๏ธ Edit Your Code:
๐ Live Preview:
Perfect for centering items both horizontally and vertically!
items-center = vertical, justify-center = horizontal
โ๏ธ Edit Your Code:
๐ Live Preview:
Grid is like a table or spreadsheet - perfect for card layouts, galleries, and organized content!
Use grid grid-cols- to create columns.
Try grid-cols-2, grid-cols-4, or grid-cols-5
โ๏ธ Edit Your Code:
๐ Live Preview:
Make grids that adapt to screen size with md: or lg:!
1 column on mobile, 2 on tablet, 3 on desktop!
โ๏ธ Edit Your Code:
๐ Live Preview:
Control spacing between grid items with gap-.
Try gap-2 (small), gap-4 (medium), gap-8 (large), or gap-12 (extra large)
โ๏ธ Edit Your Code:
๐ Live Preview:
๐ก Grid is perfect for card layouts, image galleries, and dashboard designs!
Padding and margin give your elements space to breathe. Think of padding as the space inside, margin as space outside!
Use p- for padding (space inside the element).
Try p-2 (tiny), p-4 (small), p-6 (medium), p-8 (large), or p-12 (huge)
โ๏ธ Edit Your Code:
๐ Live Preview:
Use m- for margin (space outside the element).
๐ก Try m-4, m-6, m-8, or m-12. Use mx- for horizontal, my- for vertical!
๐ท You don't need to memorize everything โ Google + docs are normal. Even pros look things up!
๐ท Copying examples is learning, not cheating. Start with examples, then modify them to make them yours!
๐ท Your code doesn't need to be perfect to be powerful. Working code > perfect code!
๐ท Experiment fearlessly! The interactive editors above let you try things without breaking anything.
๐ท Combine classes like outfits. Mix and match until it looks good to you!