In a Tailwind CSS project (this isn't), the same could be achiveable with a custom interaction state - similar to hover, focus and active. Something like new-button-styles:bg-red-500.
I like using feature flags and was happy to find a way to use them when adding this new CSS.
- Oliver
Was this interesting?
About me
I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.