Tailwindcss-rb is as a (sort of) simple Ruby gem that aims to bring Tailwind CSS writing into a more Ruby-friendly environment.
Disclaimer: This is a pet project built for open source that is in no way affiliated with Tailwind Labs Inc, the creator of tailwind.
I'm happy to announce that I've just released tailwindcss-rb!
Tailwindcss-rb is as a (sort of) simple Ruby gem that aims to bring Tailwind CSS writing into a more Ruby-friendly environment.
With it, you can style your html with Tailwind in a Ruby-like syntax without losing the power of it's compiler. It's still unclear to me where it's value lies exactly, but it's something I've used as a core component of my other WIP library (view-component-ui), a mantine-like ui component framework for ruby on rails.
Here’s what Tailwindcss-rb offers:
- Easy Setup: Just add gem 'tailwindcss-rb' to your Gemfile, and you’re ready to go.
- Ruby-like Tailwind Classes: The Tailwindcss::Style class and tailwind helper make it simple to build classes in a Ruby way.
- Flexible Configuration: Tweak everything from output paths to breakpoints to match your project’s needs.
- Real-Time Compilation: Compile on the fly during development, or pre-compile your styles for production effortlessly.
I can’t wait to see how Tailwindcss-rb helps simplify and speed up your styling in Ruby projects. 🚀
👉 Explore Tailwindcss-rb on GitHub