← Tailwind CSS & Bootstrap learning pathTailwind CSS & Bootstrap · Module 8 of 10
Customising Tailwind
Add brand colours, fonts and reusable styles.
📖 Key ideas
- Tailwind v4: customise with @theme { --color-brand: #047857; } in CSS.
- Then use bg-brand, text-brand.
- Add custom fonts: --font-display.
- Reuse patterns with components (React/Vue) rather than long repeated strings.
- @apply can compose utilities in CSS when needed.
💡 Real-life example: Customising Tailwind is adding your own spices to the rack so every recipe can use them.
@themeDefines design tokens in Tailwind v4
Design tokenNamed value like a brand colour
@applyUses utilities inside CSS rules
PluginAdds new utilities or components