← Graph

How does Ruby UI integrate with CSS and JavaScript?

question 4 connections

Audience question about how Ruby UI integrates with CSS and JavaScript — whether it depends on the Rails asset pipeline and whether it works with a separate front-end build. Seth Horsley answers that Ruby UI currently depends on Stimulus controllers for component behavior (may change), but is deliberately not tied to Active Support — it works with Sinatra as well as Rails. You just compile your CSS/JS and point at the right JavaScript file. Ruby UI uses Tailwind heavily (shadcn/ui-style), copies over the application CSS file with the Tailwind config, and you go from there. It currently pulls in floating-ui for a few components and may add more packages for accessibility; otherwise it's slim.

answer_summary
Tied to Stimulus (for now) and Tailwind; not tied to Active Support, so works in Sinatra too; uses floating-ui and may add accessibility packages.
question How does Ruby UI integrate with CSS and JavaScript?
about
Ruby UI project
Covers Ruby UI's dependencies on Tailwind, Stimulus and floating-ui.
question How does Ruby UI integrate with CSS and JavaScript?
about
Ruby UI copies over a Tailwind configuration into the host app.
question How does Ruby UI integrate with CSS and JavaScript?
about
Stimulus tool
Ruby UI currently uses Stimulus controllers for component behavior.
question How does Ruby UI integrate with CSS and JavaScript?
asked_at
Audience Q&A.

Provenance