Skip to content

A basic rails generator for adding a simpleform config for tailwindCSS based forms

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

tarellel/simple_form-tailwind

Folders and files

NameName
Last commit message
Last commit date
Dec 30, 2024
Apr 9, 2025
Dec 30, 2024
Nov 30, 2020
Apr 9, 2025
Nov 30, 2020
Dec 30, 2024
Dec 30, 2024
Nov 30, 2020
Nov 30, 2020
Apr 9, 2025
Dec 30, 2024
Dec 30, 2024

SimpleForm::Tailwind

Used to add a base simple_form configuration with Tailwind CSS classes for form attributes.

NOTE: This simple_form configuration is optimized for Rails 7> and Tailwind CSS 4.

Prerequisites

Before installing this gem, make sure you have installed Tailwind CSS in your Rails application:

./bin/bundle add tailwindcss-ruby
./bin/bundle add tailwindcss-rails
./bin/rails tailwindcss:install

Installation

Add this line to your application's Gemfile:

gem 'simple_form-tailwind'

Then execute:

$ bundle install

Or install it yourself as:

$ gem install simple_form-tailwind

Usage

To use this simple_form configuration, you need to ensure that your application uses simple_form to generate its forms. Run the generator to add the following file to your application config/initializers/simple_form_tailwind.rb:

$ rails g simple_form:tailwind:install

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/tarellel/simple_form-tailwind.

License

The gem is available as open source under the terms of the MIT License.

About

A basic rails generator for adding a simpleform config for tailwindCSS based forms

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published