No release in over 3 years
Low commit activity in last 3 years
This gem allows you to run a simple command to install Tailwindcss and the necessary modifications in order to use TailwindUI on a Rails 6 app. This repo contains no TailwindUI components. You must purchase a license from tailwindui.com.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.17
~> 13.0
~> 3.0

Runtime

>= 6.0
 Project Readme

TailwinduiRails

This gem is built to allow easy start of a Rails 6 project to use TailwindUI components. This is currently only a set of generators to do the mundane work to setting up Rails 6 with TailwindUI. There are no components loaded within this gem. A license must be purchased from tailwindui.com.

This gem is heavily influence from tailwindcss-rails.

Installation

This has not been tested with versions of Rails earlier than 6. Since webpacker is not installed with earlier versions, you may be able to install this gem with the webpacker gem in addition to the following instructions..

Add this line to your application's Gemfile:

gem 'tailwindui_rails'

And then execute:

$ bundle

$ bundle exec rails g tailwindui_rails:install

The above install command will perform the following task:

  1. Add tailwindcss and @tailwind/ui with yarn
  2. Initialize tailwindcss and update the tailwind config file for use with TailwindUI components.
  3. Update the application layout page for use with alpine js recommended from tailwindUI docs.
  4. Setup tailwindcss
  5. Configure postcss config file for use with tailwindcss and tailwindui components.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/tailwindui_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

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

Code of Conduct

Everyone interacting in the TailwinduiRails project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.