This template will add TailwindCss 2 to your rails application and apply default styles to your scaffolds.
Create a new rails application with this template: -
rails new my_app_name -m https://raw.githubusercontent.com/beyode/rails-tailwinded/main/template.rb
Or reference the template locally if you have cloned the repo
rails new my_app_name -m /path/to/rails-tailwinded/template.rb
New generated scaffold view will include tailwind styles
rails g scaffold Employee name phone city
Index Page
Edit page
Show page