Using TailwindCSS in Rails

Topics: Ruby on Rails, Tailwind CSS

The tailwind-rails gem integrates Tailwind CSS into Rails; disabling the sassc compressor avoids conflicting CSS compression.

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.