I'm using React + Tailwind. Consider this code:
// in Styles.js module
export const Button = "uppercase h-12 flex justify-center items-center bg-purple-700 ";
// in Pricing.js module
import { Button } from './Styles';
<button className={Button + " bg-green-400"}>Special offer</button>
I expect the background of special offer button to become green, but it does not.
The point is, when we concatenate classes in tailwind, the latter classes won't override the previous classes. This is far from the cascading nature of CSS.
How can I override previous classes in concatenations?