DRY up your tailwind CSS using this awesome gem

6 Jan, 2023

In this video, I'll show you a really neat gem to pair with tailwindCSS or any other class based CSS library. We compose different variants of our button component to make it easily reusable across our codebase.

You can find the documentation for the class_variants gem here:
https://github.com/avo-hq/class_variants

Discussion (0)

To comment you need to sign up for a free account or sign in.

Unlock 7 Hotwire tricks every Rails dev should know ⚡️

Level up your Rails skills with 7 powerful Turbo techniques in my free Hotwire Cheatsheet. Subscribe for updates on new videos, courses & more — no spam, just gems.