Chapter practice task
Task: Build the same responsive landing page in Bootstrap and in Tailwind
- Add responsive prefixes, hover and focus states, and dark mode in Tailwind.
- Customize Tailwind with your brand colors and fonts.
- Build the landing page in Tailwind.
- Build the same page in Bootstrap and compare the experience.
By the end of this chapter
- You can build fully responsive, interactive designs in Tailwind
- Your Tailwind setup uses your brand colors and fonts
- You’ve built one page in both frameworks and know which you prefer
Quick answers for this chapter
Is Tailwind mobile-first?
Yes. Unprefixed classes apply to all sizes; prefixes like md: apply from that breakpoint up.
How do I add brand colors?
Add them to @theme in your CSS, like --color-brand-500: #4f46e5;, then use bg-brand-500.
Which framework is faster for a landing page?
Bootstrap is quicker for standard layouts; Tailwind is quicker for matching a custom design exactly.