Skip to content

docs: add a "Use daisyUI with Stimulus" guide #4648

Closed

Description

@neotan

What

A page at /docs/install/stimulus/ called "Use daisyUI with Stimulus", in the same spirit as the existing "Use daisyUI with HTMX" guide.

Why it isn't a repeat of the Rails guide

Stimulus doesn't touch CSS, so the setup section would be short and mostly link out to the Rails and Vite guides. The rest would be Stimulus-specific:

  • Persisting Theme Controller to localStorage. The component docs already link a React example for this, so this would be the Stimulus equivalent.
  • Modal, dropdown, and toast as small controllers, keeping the behavior in a controller rather than an inline handler.
  • A short section on Turbo Drive and morphing, which affect <dialog> open state, <details open>, and restoring the theme before first paint.

Scope

One new file, packages/docs/src/routes/(routes)/docs/install/stimulus/+page.md, roughly the size of the Ember guide. I'd verify every sample in a running app first, including a Rails 8 app with morphing enabled.

Asks

  1. Happy for me to write it, and could you assign me the issue?
  2. If you'd like it on the install grid, I can send you the values and a logo for docs/data/frameworks.yaml, or open a PR against daisyui/api myself, whichever you prefer.

If you'd rather not add a grid entry at all, I could put the same content in a "Stimulus" section on the existing Rails page instead. Either works.

Activity

  1. github-actions commented on Jul 31, 2026

    @github-actions

    Thank you @neotan for reporting issues. It helps daisyUI a lot 💚
    I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
    In the meantime providing more details and reproduction links would be helpful.

  2. saadeghi commented on Jul 31, 2026

    @saadeghi
    Owner

    Thanks!

    I can send you the values and a logo

    I'll add the logo.

    I could put the same content in a "Stimulus" section on the existing Rails page instead

    Let's add a new page. Don't edit the existing Rails page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions