News for hackers. Stuff that matters.
Re:Tailwind CSS v3.0 by azangru on Thursday December 09, 2021 @08:22PM (#29505363)
Yeah, sounds sensible. What I've been doing so far was attempting to extend the base class like so:

    import classNames from 'classnames';

    ...

    className = classNames(styles.buttton, props.className);
But this leaves me at the mercy of the order in which webpack builds stylesheets (sometimes props.className will be defined after styles.button and my plan would work; other times it will get defined before styles.button, and styles.button will override the CSS rules of props.className).

Really wanted the extension of the base rules to work out; but I guess you are right: the className from the props should override entirely one of the classNames of the component.

Re:Tailwind CSS v3.0 by docmars on Thursday December 09, 2021 @09:42PM (#29505863)
Use Twin Macro for Tailwind-in-JS — you won't regret it!