← Tailwind CSS & Bootstrap learning pathTailwind CSS & Bootstrap · Module 4 of 10
Customising Bootstrap
Change colours, fonts and spacing to match your brand.
📖 Key ideas
- Use Sass variables: $primary: #047857; before importing Bootstrap.
- CSS variables (--bs-primary) allow runtime theming.
- Import only the parts you need to reduce size.
- Dark mode: data-bs-theme="dark".
- Add your own classes for unique sections.
💡 Real-life example: Customising Bootstrap is repainting a rented flat: same rooms, your colours.
Sass variableBuild-time setting like $primary
--bs-* variableRuntime CSS variable
data-bs-themeAttribute for colour modes
Partial importIncluding only needed parts