Releases: rails/tailwindcss-rails
v4.0.0.rc1 / 2025-01-23
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 theconfig/
directory to the app root.
Changes to the tailwindcss:install
task:
- The
tailwindcss:install
task no longer installsconfig/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 / 2025-01-23
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
v3.3.0 / 2025-01-19
- Add support for using the puma plugin in a standalone puma process (outside of
rails server
). (#458) @flavorjones
v3.2.0 / 2025-01-10
v3.2.0 / 2025-01-10
- Improve the scaffold views by making positions, padding, and sizes more consistent, add titles to all pages, add hover states and semantic colors to buttons and links, and change border and focus colors on fields with errors. (#452) @patriciomacadden
New Contributors
- @patriciomacadden made their first contribution in #452
Full Changelog: v3.1.0...v3.2.0
v3.1.0 / 2024-12-29
v3.1.0 / 2024-12-29
Notable changes
The tailwindcss plugins "form", "typography", and "container-queries" have been dropped from the default generated tailwind.config.js
file. If you'd like to use them, you can re-add them to your project by uncommenting the appropriate lines in your config file. (#446) @flavorjones
v3.0.0 / 2024-10-15
v3.0.0
Notable changes
-
The upstream
tailwindcss
executable has been extracted from this gem into a new dependency,tailwindcss-ruby
. @flavorjonesIn advance of the upcoming TailwindCSS v4 release, we are decoupling the
tailwindcss
executable from the Rails integration. This will allow users to upgrade TailwindCSS at a time of their choosing, and allow early adopters to start using the beta releases.See https://github.com/flavorjones/tailwindcss-ruby for more information.
v2.7.9 / 2024-10-10
v2.7.9 / 2024-10-10
- Fix the scaffold form template to render text forms and check boxes properly in all versions of Rails. (#418) @Earlopain
v2.7.8 / 2024-10-08
v2.7.8 / 2024-10-08
- Fix the scaffold form template to render checkboxes properly. (#416) @enderahmetyurt
v3.0.0.rc1
v3.0.0.rc1
Notable changes
-
The upstream
tailwindcss
executable has been extracted from this gem into a new dependency,tailwindcss-ruby
. @flavorjonesIn advance of the upcoming TailwindCSS v4 release, we are decoupling the
tailwindcss
executable from the Rails integration. This will allow users to upgrade TailwindCSS at a time of their choosing, and allow early adopters to start using the beta releases.
v2.7.7 / 2024-10-02
v2.7.7 / 2024-10-02
- Proactively support changes to Rails's authentication templates shipping in Rails 8.0.0.beta2 (which is not yet released). (#407, #408) @seanpdoyle @flavorjones