Why does only one background color show when I add multiple bg- classes?
Tailwind applies the last background color class in the list, overriding earlier ones. So only one background color is visible.
💡 For conflicting classes of the same property, the last one in the class list wins (see render_step 2).
What if I want multiple background colors on the same element?
You can't have multiple background colors at once on one element; only one background-color CSS property applies. Use gradients or layered elements instead.
💡 One CSS property can have only one value; multiple classes for the same property conflict and resolve by last one wins.
Why doesn't my padding change when I add a new p- class?
If the new padding class appears before the existing one, it gets overridden by the later class. Order matters in class lists.
💡 Class order controls which conflicting style applies; last class for a property wins.