Skip to content

Releases: rails/tailwindcss-rails

v4.2.0 / 2025-03-02

02 Mar 21:49
0144d00
Compare
Choose a tag to compare

v4.2.0 / 2025-03-02

Features

  • Improve the view templates to display better on mobile devices. #503 @patriciomacadden
  • Support for environment variable TAILWINDCSS_DEBUG to turn off CSS minification. #504 @r-sierra

v4.1.0 / 2025-02-19

19 Feb 17:55
2db5427
Compare
Choose a tag to compare

v4.1.0 / 2025-02-19

View template improvements

v4.0.0 / 2025-02-01

01 Feb 17:12
3d87104
Compare
Choose a tag to compare

v4.0.0 / 2025-02-01

Upgrade to Tailwind CSS v4

General changes:

  • The dependency on tailwindcss-ruby is set to ~> 4.0.
  • The location of (optional) postcss.config.js has moved from the config/ directory to the app root.
  • The input file app/assets/tailwind/application.tailwind.css has been renamed to app/assets/tailwind/application.css.
  • If Propshaft is being used, app/assets/tailwind will be excluded from its asset handling.
  • The Inter font is no longer packaged with the gem.
  • Some Tailwind class names in the generated ERB templates are updated for v4.
  • The README is updated to contain verbose instructions on upgrading.

Changes to the tailwindcss:install task:

  • The tailwindcss:install task no longer installs config/tailwind.config.js, as v4 recommends placing Tailwind configuration in the CSS file.
  • The Inter font is no longer configured in the application layout.
  • The "tailwind" stylesheet link tag will only be added to the application layout if Propshaft isn't in use and therefore already handling app/assets/build/tailwind.css. Previously it was always injected, resulting in the tag being rendered twice if Propshaft was in use.

New task tailwindcss:upgrade upgrades many apps cleanly:

  • Cleans up config/tailwind.config.js and references it from the CSS file as recommended for v4 upgrades.
  • Runs the upstream upgrader (note: requires npx to run the one-time upgrade, but highly recommended).
  • Removes configuration for the Inter font from the application layout.
  • If present, moves config/postcss.config.js to the root directory.
  • The "tailwind" stylesheet link tag will be removed if Propshaft is in use and already handling app/assets/build/tailwind.css.
  • The input file app/assets/tailwind/application.tailwind.css will be moved to app/assets/tailwind/application.css.

Thanks to @EricGusmao, @patriciomacadden, @excid3, and @brunoprietog for their feedback, contributions, and advice on v4 support.

Other changes

v4.0.0.rc5 / 2025-01-29

29 Jan 20:54
738ba68
Compare
Choose a tag to compare
Pre-release

v4.0.0.rc5 / 2025-01-29

General changes since rc4:

  • Update the rake tasks to detect an (optional) postcss file in the root directory, after moving the file in #466. #482 @EricGusmao
  • Hide the gem's Rails generators in the rails g --help output. #483 @patriciomacadden

v4.0.0.rc4 / 2025-01-27

27 Jan 21:36
63b3788
Compare
Choose a tag to compare
Pre-release

v4.0.0.rc4 / 2025-01-27

Everything in v4.0.0.rc3 plus ...

  • The input file app/assets/tailwind/application.tailwind.css has been renamed to app/assets/tailwind/application.css.
  • Updated README docs on using the upgrade tool to update class names. @EricGusmao

v4.0.0.rc3 / 2025-01-27

27 Jan 13:22
894f613
Compare
Choose a tag to compare
Pre-release

v4.0.0.rc3 / 2025-01-27

Everything in v4.0.0.rc2, plus ...

General changes:

  • Remove the Inter font assets from the gem. @EricGusmao
  • If Propshaft is being used, app/assets/tailwind will be excluded from its asset handling. (This was incompletely fixed in RC2.)

v4.0.0.rc2 / 2025-01-26

26 Jan 19:46
780846c
Compare
Choose a tag to compare
Pre-release

v4.0.0.rc2 / 2025-01-26

Changes since v4.0.0.rc1

General changes:

  • The location of application.tailwind.css has moved from app/assets/stylesheets to app/assets/tailwind. If Propshaft is being used, app/assets/tailwind will be excluded from its asset handling.

Changes to the tailwindcss:install task:

  • The "tailwind" stylesheet link tag will only be added to the application layout if Propshaft isn't in use and already handling app/assets/build/tailwind.css. Previously it was always injected, resulting in the tag being rendered twice if Propshaft was in use.

Changes to the tailwindcss:upgrade task:

  • The "tailwind" stylesheet link tag will be removed if Propshaft is in use and already handling app/assets/build/tailwind.css.
  • The file application.tailwind.css will be moved from app/assets/stylesheets to app/assets/tailwind.

Contributors

v4.0.0.rc1 / 2025-01-23

23 Jan 19:59
dd85c1d
Compare
Choose a tag to compare
Pre-release

v4.0.0.rc1 / 2025-01-23

Upgrade to Tailwind CSS v4

Upgrade guide is in the README.

General changes:

  • Dependency on tailwindcss-ruby set to ~> 4.0.
  • The location of (optional) postcss.config.js has moved from the config/ directory to the app root.

Changes to the tailwindcss:install task:

  • The tailwindcss:install task no longer installs config/tailwind.config.js.
  • The Inter font is no longer packaged with the gem.
  • Some Tailwind class names are updated for v4.

New task tailwindcss:upgrade upgrades many apps cleanly:

  • Cleans up some things in the generated config/tailwind.config.js.
  • Runs the upstream upgrader (note: requires npx to run the one-time upgrade, but highly recommended).
  • Removes references to the Inter font from the application layout.
  • If present, moves config/postcss.config.js to the root directory.

Thanks to @EricGusmao and @excid3 for their help and advice on this work.

v3.3.1

23 Jan 20:35
8828ea7
Compare
Choose a tag to compare

v3.3.1 / 2025-01-23

  • Pin the dependency on tailwindcss-ruby to ~> 3.0 to prevent users from upgrading Tailwind to v4 while still on v3 of this gem.

    While it was useful during the Tailwind v4 beta period to allow users to float this dependency to try upgrading, we know (now that v4.0.0.rc1 of this gem is out) that not everything will work well if combining Tailwind v4 with tailwindcss-rails v3. Pinning this dependency should protect developers against unexpected issues.

v3.3.0 / 2025-01-19

19 Jan 20:12
968ba5c
Compare
Choose a tag to compare

v3.3.0 / 2025-01-19

  • Add support for using the puma plugin in a standalone puma process (outside of rails server). (#458) @flavorjones