|
1 | 1 | # `tailwindcss-rails` Changelog
|
2 | 2 |
|
3 |
| -## v4.0.0.rc4 / 2025-01-27 |
| 3 | +## v4.2.0 / 2025-03-02 |
4 | 4 |
|
5 |
| -- The input file `app/assets/tailwind/application.tailwind.css` has been renamed to `app/assets/tailwind/application.css`. |
6 |
| -- Updated README docs on using the upgrade tool to update class names. @EricGusmao |
| 5 | +### Features |
| 6 | + |
| 7 | +* Improve the view templates to display better on mobile devices. #503 @patriciomacadden |
| 8 | +* Support for environment variable `TAILWINDCSS_DEBUG` to turn off CSS minification. #504 @r-sierra |
| 9 | + |
| 10 | + |
| 11 | +## v4.1.0 / 2025-02-19 |
7 | 12 |
|
| 13 | +### View template improvements |
8 | 14 |
|
9 |
| -## v4.0.0.rc3 / 2025-01-27 |
| 15 | +* Field outlines are no longer hidden, and the focus border is brighter. #489 @rubys |
| 16 | +* Boolean fields are improved (checkbox labels aligned, "Yes"/"No" instead of "true"/"false"). #454 @patriciomacadden |
| 17 | +* Attachment links are consistently spaced and styled. #460 @patriciomacadden |
| 18 | +* Index page links to Show, Edit, and Destroy for each resource. #460 @patriciomacadden @flavorjones |
| 19 | +* Turbo confirm prompt added to Destroy links. #498 @patriciomacadden |
| 20 | + |
| 21 | + |
| 22 | +## v4.0.0 / 2025-02-01 |
10 | 23 |
|
11 | 24 | ### Upgrade to Tailwind CSS v4
|
12 | 25 |
|
13 | 26 | General changes:
|
14 | 27 |
|
15 |
| -- Dependency on `tailwindcss-ruby` set to `~> 4.0`. |
| 28 | +- The dependency on `tailwindcss-ruby` is set to `~> 4.0`. |
16 | 29 | - The location of (optional) `postcss.config.js` has moved from the `config/` directory to the app root.
|
17 |
| -- 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. |
| 30 | +- The input file `app/assets/tailwind/application.tailwind.css` has been renamed to `app/assets/tailwind/application.css`. |
| 31 | +- If Propshaft is being used, `app/assets/tailwind` will be excluded from its asset handling. |
18 | 32 | - The Inter font is no longer packaged with the gem.
|
| 33 | +- Some Tailwind class names in the generated ERB templates are updated for v4. |
| 34 | +- The README is updated to contain verbose instructions on upgrading. |
19 | 35 |
|
20 | 36 | Changes to the `tailwindcss:install` task:
|
21 | 37 |
|
22 |
| -- The `tailwindcss:install` task no longer installs `config/tailwind.config.js`. |
| 38 | +- The `tailwindcss:install` task no longer installs `config/tailwind.config.js`, as v4 recommends placing Tailwind configuration in the CSS file. |
23 | 39 | - The Inter font is no longer configured in the application layout.
|
24 |
| -- Some Tailwind class names in the ERB templates are updated for v4. |
25 |
| -- 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. |
| 40 | +- 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. |
26 | 41 |
|
27 | 42 | New task `tailwindcss:upgrade` upgrades many apps cleanly:
|
28 | 43 |
|
29 |
| -- Cleans up some things in the generated `config/tailwind.config.js`. |
| 44 | +- Cleans up `config/tailwind.config.js` and references it from the CSS file as recommended for v4 upgrades. |
30 | 45 | - Runs the upstream upgrader (note: requires `npx` to run the one-time upgrade, but highly recommended).
|
31 | 46 | - Removes configuration for the Inter font from the application layout.
|
32 | 47 | - If present, moves `config/postcss.config.js` to the root directory.
|
33 | 48 | - The "tailwind" stylesheet link tag will be removed if Propshaft is in use and already handling `app/assets/build/tailwind.css`.
|
34 |
| -- The input file `application.tailwind.css` will be moved from `app/assets/stylesheets` to `app/assets/tailwind`. |
| 49 | +- The input file `app/assets/tailwind/application.tailwind.css` will be moved to `app/assets/tailwind/application.css`. |
35 | 50 |
|
36 | 51 | Thanks to @EricGusmao, @patriciomacadden, @excid3, and @brunoprietog for their feedback, contributions, and advice on v4 support.
|
37 | 52 |
|
| 53 | +### Other changes |
| 54 | + |
| 55 | +- The gem's Rails generators are now hidden in the `rails g --help` output. #483 @patriciomacadden |
38 | 56 |
|
39 | 57 | ## v3.3.1 / 2025-01-23
|
40 | 58 |
|
|
0 commit comments