Skip to content

Commit f1779db

Browse files
Merge branch 'main' into improve-boolean-fields
2 parents 5b478e7 + 2bd245f commit f1779db

33 files changed

+245
-125
lines changed

CHANGELOG.md

+25-8
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,46 @@
1+
# `tailwindcss-rails` Changelog
2+
13
## next / unreleased
24

3-
## v4.0.0.rc1 / 2025-01-23
5+
Style changes to templates:
6+
7+
* Field outlines are no longer hidden, and the focus border is brighter. #489 @rubys
8+
9+
10+
## v4.0.0 / 2025-02-01
411

512
### Upgrade to Tailwind CSS v4
613

714
General changes:
815

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

1224
Changes to the `tailwindcss:install` task:
1325

14-
- The `tailwindcss:install` task no longer installs `config/tailwind.config.js`.
15-
- The Inter font is no longer packaged with the gem.
16-
- Some Tailwind class names are updated for v4.
26+
- The `tailwindcss:install` task no longer installs `config/tailwind.config.js`, as v4 recommends placing Tailwind configuration in the CSS file.
27+
- The Inter font is no longer configured in the application layout.
28+
- 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.
1729

1830
New task `tailwindcss:upgrade` upgrades many apps cleanly:
1931

20-
- Cleans up some things in the generated `config/tailwind.config.js`.
32+
- Cleans up `config/tailwind.config.js` and references it from the CSS file as recommended for v4 upgrades.
2133
- Runs the upstream upgrader (note: requires `npx` to run the one-time upgrade, but highly recommended).
22-
- Removes references to the Inter font from the application layout.
34+
- Removes configuration for the Inter font from the application layout.
2335
- If present, moves `config/postcss.config.js` to the root directory.
36+
- The "tailwind" stylesheet link tag will be removed if Propshaft is in use and already handling `app/assets/build/tailwind.css`.
37+
- The input file `app/assets/tailwind/application.tailwind.css` will be moved to `app/assets/tailwind/application.css`.
38+
39+
Thanks to @EricGusmao, @patriciomacadden, @excid3, and @brunoprietog for their feedback, contributions, and advice on v4 support.
2440

25-
Thanks to @EricGusmao and @excid3 for their help and advice on this work.
41+
### Other changes
2642

43+
- The gem's Rails generators are now hidden in the `rails g --help` output. #483 @patriciomacadden
2744

2845
## v3.3.1 / 2025-01-23
2946

Gemfile.lock

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
tailwindcss-rails (3.3.0)
4+
tailwindcss-rails (4.0.0)
55
railties (>= 7.0.0)
66
tailwindcss-ruby (~> 4.0)
77

@@ -65,7 +65,7 @@ GEM
6565
i18n (1.14.7)
6666
concurrent-ruby (~> 1.0)
6767
io-console (0.8.0)
68-
irb (1.15.0)
68+
irb (1.15.1)
6969
pp (>= 0.6.0)
7070
rdoc (>= 4.0.0)
7171
reline (>= 0.4.2)
@@ -89,7 +89,6 @@ GEM
8989
net-protocol (0.2.2)
9090
timeout
9191
net-smtp (0.5.0)
92-
net-protocol
9392
nokogiri (1.18.2)
9493
mini_portile2 (~> 2.8.2)
9594
racc (~> 1.4)
@@ -140,11 +139,11 @@ GEM
140139
io-console (~> 0.5)
141140
securerandom (0.4.1)
142141
stringio (3.1.2)
143-
tailwindcss-ruby (4.0.0)
144-
tailwindcss-ruby (4.0.0-aarch64-linux-gnu)
145-
tailwindcss-ruby (4.0.0-arm64-darwin)
146-
tailwindcss-ruby (4.0.0-x86_64-darwin)
147-
tailwindcss-ruby (4.0.0-x86_64-linux-gnu)
142+
tailwindcss-ruby (4.0.3)
143+
tailwindcss-ruby (4.0.3-aarch64-linux-gnu)
144+
tailwindcss-ruby (4.0.3-arm64-darwin)
145+
tailwindcss-ruby (4.0.3-x86_64-darwin)
146+
tailwindcss-ruby (4.0.3-x86_64-linux-gnu)
148147
thor (1.3.2)
149148
timeout (0.4.3)
150149
tzinfo (2.0.6)

0 commit comments

Comments
 (0)