daisyUI MCP v1.5: Generate unique UIs now!

Ruby on Rails component library

Use daisyUI as a Tailwind CSS component library for Ruby on Rails projects

Best Rails component library

Ruby on Rails

Ruby on Rails is a full-stack web framework built around convention over configuration.

Rails gives you routing, controllers, views, models, migrations, mailers, jobs, caching, testing, and asset tooling in one cohesive framework. That makes it a strong choice for teams that want to ship server-rendered product features without assembling a custom stack for every project.

Rails also pairs well with progressive enhancement. ERB, Turbo, Stimulus, and Hotwire let you build responsive interfaces while keeping much of the application flow on the server.

Ruby on Rails + daisyUI

daisyUI works well with Rails because it styles regular HTML. You can use it in ERB templates, partials, Rails view components, Turbo frames, and Stimulus-driven interactions.

That gives Rails apps a useful UI layer:

  • Readable ERB: btn, card, navbar, table, and alert keep view templates easier to understand.

  • Hotwire-friendly styling: Turbo and Stimulus can manage updates and behavior while daisyUI handles the component appearance.

  • No extra JavaScript framework required: daisyUI doesn't force React, Vue, or a browser-side component runtime into your Rails app.

  • Themeable screens: Apply a theme at the layout level and reuse it across admin panels, dashboards, and customer-facing views.

Rails keeps the application structure opinionated. daisyUI gives the views a consistent set of styled components.

I used daisyUI theme generator's Halloween theme and tweaked it to what I want and now, I'm so proud of what I've got!

Ade
Software Engineer

I used daisyUI this week with Remix and am delighted by it so far.

Matt Ferrante
Developer

It's great! Been using it in all my projects!

Sara Vieira
Developer at axo.dev

I've been *enjoying daisyui* since I discovered it very recently, great job!

Vincent Bergeron
Software Developer

Can't state how much I love daisyUI ♥️

rootkid
Software Developer

The new daisyUI 5.0 is awesome! The UI components are smooth and has a lot of new goodies.

Ovi Stoica
Software Developer

Install Tailwind CSS and daisyUI for Ruby on Rails

Rails can use daisyUI through the Tailwind CSS Rails setup or with standalone CSS files.

For the Tailwind CSS path, install daisyUI and add @plugin "daisyui" to the stylesheet that imports Tailwind CSS.

After the CSS builds, use daisyUI classes in ERB, partials, helpers, and view components.

For Rails-specific installation options, see How to install daisyUI with Ruby on Rails.

daisyUI is the most popular
component library for Tailwind CSS

Used by engineers at

Meta Research
Alibaba
Amazon
Adobe
Pepsico
Google Cloud