Skip to content

Commit 495b521

Browse files
authored
Merge branch 'rails:main' into feature/engines-convention-over-configuration-support
2 parents d4e1acf + 0144d00 commit 495b521

File tree

18 files changed

+243
-120
lines changed

18 files changed

+243
-120
lines changed

CHANGELOG.md

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,58 @@
11
# `tailwindcss-rails` Changelog
22

3-
## v4.0.0.rc4 / 2025-01-27
3+
## v4.2.0 / 2025-03-02
44

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
712

13+
### View template improvements
814

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
1023

1124
### Upgrade to Tailwind CSS v4
1225

1326
General changes:
1427

15-
- Dependency on `tailwindcss-ruby` set to `~> 4.0`.
28+
- The dependency on `tailwindcss-ruby` is set to `~> 4.0`.
1629
- 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.
1832
- 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.
1935

2036
Changes to the `tailwindcss:install` task:
2137

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.
2339
- 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.
2641

2742
New task `tailwindcss:upgrade` upgrades many apps cleanly:
2843

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.
3045
- Runs the upstream upgrader (note: requires `npx` to run the one-time upgrade, but highly recommended).
3146
- Removes configuration for the Inter font from the application layout.
3247
- If present, moves `config/postcss.config.js` to the root directory.
3348
- 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`.
3550

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

53+
### Other changes
54+
55+
- The gem's Rails generators are now hidden in the `rails g --help` output. #483 @patriciomacadden
3856

3957
## v3.3.1 / 2025-01-23
4058

Gemfile.lock

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
tailwindcss-rails (4.0.0.rc4)
4+
tailwindcss-rails (4.1.0)
55
railties (>= 7.0.0)
66
tailwindcss-ruby (~> 4.0)
77

@@ -69,7 +69,7 @@ GEM
6969
pp (>= 0.6.0)
7070
rdoc (>= 4.0.0)
7171
reline (>= 0.4.2)
72-
logger (1.6.5)
72+
logger (1.6.6)
7373
loofah (2.24.0)
7474
crass (~> 1.0.2)
7575
nokogiri (>= 1.12.0)
@@ -81,26 +81,27 @@ GEM
8181
mini_mime (1.1.5)
8282
mini_portile2 (2.8.8)
8383
minitest (5.25.4)
84-
net-imap (0.5.5)
84+
net-imap (0.5.6)
8585
date
8686
net-protocol
8787
net-pop (0.1.2)
8888
net-protocol
8989
net-protocol (0.2.2)
9090
timeout
91-
net-smtp (0.5.0)
92-
nokogiri (1.18.2)
91+
net-smtp (0.5.1)
92+
net-protocol
93+
nokogiri (1.18.3)
9394
mini_portile2 (~> 2.8.2)
9495
racc (~> 1.4)
95-
nokogiri (1.18.2-aarch64-linux-gnu)
96+
nokogiri (1.18.3-aarch64-linux-gnu)
9697
racc (~> 1.4)
97-
nokogiri (1.18.2-arm-linux-gnu)
98+
nokogiri (1.18.3-arm-linux-gnu)
9899
racc (~> 1.4)
99-
nokogiri (1.18.2-arm64-darwin)
100+
nokogiri (1.18.3-arm64-darwin)
100101
racc (~> 1.4)
101-
nokogiri (1.18.2-x86_64-darwin)
102+
nokogiri (1.18.3-x86_64-darwin)
102103
racc (~> 1.4)
103-
nokogiri (1.18.2-x86_64-linux-gnu)
104+
nokogiri (1.18.3-x86_64-linux-gnu)
104105
racc (~> 1.4)
105106
pp (0.6.2)
106107
prettyprint
@@ -109,7 +110,7 @@ GEM
109110
date
110111
stringio
111112
racc (1.8.1)
112-
rack (3.1.8)
113+
rack (3.1.10)
113114
rack-session (2.1.0)
114115
base64 (>= 0.1.0)
115116
rack (>= 3.0.0)
@@ -133,24 +134,24 @@ GEM
133134
thor (~> 1.0, >= 1.2.2)
134135
zeitwerk (~> 2.6)
135136
rake (13.2.1)
136-
rdoc (6.11.0)
137+
rdoc (6.12.0)
137138
psych (>= 4.0.0)
138139
reline (0.6.0)
139140
io-console (~> 0.5)
140141
securerandom (0.4.1)
141-
stringio (3.1.2)
142-
tailwindcss-ruby (4.0.0)
143-
tailwindcss-ruby (4.0.0-aarch64-linux-gnu)
144-
tailwindcss-ruby (4.0.0-arm64-darwin)
145-
tailwindcss-ruby (4.0.0-x86_64-darwin)
146-
tailwindcss-ruby (4.0.0-x86_64-linux-gnu)
142+
stringio (3.1.3)
143+
tailwindcss-ruby (4.0.7)
144+
tailwindcss-ruby (4.0.7-aarch64-linux-gnu)
145+
tailwindcss-ruby (4.0.7-arm64-darwin)
146+
tailwindcss-ruby (4.0.7-x86_64-darwin)
147+
tailwindcss-ruby (4.0.7-x86_64-linux-gnu)
147148
thor (1.3.2)
148149
timeout (0.4.3)
149150
tzinfo (2.0.6)
150151
concurrent-ruby (~> 1.0)
151152
uri (1.0.2)
152153
useragent (0.16.11)
153-
zeitwerk (2.7.1)
154+
zeitwerk (2.7.2)
154155

155156
PLATFORMS
156157
aarch64-linux

0 commit comments

Comments
 (0)