Using TailwindCSS in Rails

Topics: Ruby on Rails, Tailwind CSS

The tailwind-rails gem is a convenient way to integrate Tailwind CSS into a Rails project.

Issues with sassc

Tailwind CSS recommends removing sassc from the project. That might not be feasible in the short term. In this case, a configuration change in application.rb can prevent issues with the use of sassc for compession in the asset pipeline:

config.assets.css_compressor = nil

Tailwind CSS will take care of compressing its own files.