Daisify is a shell script that can be used to easily set up Daisy UI in a new rails application. This includes adding the necessary javascript files, adding a theme to the main html template, and setting up custom scaffold templates that work well with Daisy UI conventions.
rails new myapp --css=tailwind
cd myapp
daisifyYou can also specify a particular theme by passing it in as an argument
rails new myapp --css=tailwind
cd myapp
daisify halloweenYou can set up an alias for daisify inside your shell configuration file (e.g. .bashrc, .zshrc, etc.):
alias daisify='/path/you/cloned/to/daisify/daisify.sh'Also, make sure to give execute permissions to the script:
chmod +x /path/you/cloned/to/daisify/daisify.sh