Chapter practice task
Task: Build a navbar, card section and modal, then rebrand Bootstrap with your own colors and fonts
- Add a responsive navbar with a collapsing mobile menu.
- Build a three-card section and a contact modal.
- Use spacing and display utilities instead of custom CSS for layout tweaks.
- Change the primary color, font and border radius with CSS variables or Sass.
By the end of this chapter
- You can use Bootstrap’s most common components correctly
- You build layouts with utilities instead of extra CSS
- Your Bootstrap sites match your brand
Quick answers for this chapter
Where do I find every component?
In the official docs at getbootstrap.com. Copy the example markup and adapt it.
How do I add spacing in Bootstrap?
With utilities like mt-4, py-5, px-3 and gap-3.
Can I change Bootstrap’s colors without Sass?
Yes, partly, with CSS variables in Bootstrap 5.3. Sass gives full control.