Skip to content

Commit 0e4bef8

Browse files
authored
⬆️ Bump tailwindcss-rails from 2.7.9 to 3.3.2 (#190)
* Step up to the latest version recommended for Tailwind v3. Will tackle the v4 upgrade another day * Update tailwind config: - Remove darkMode, not relevant to the way i handle the "themes" (AFAIK) - Remove aspect-ratio plugin - not needed anymore
1 parent 65d11a1 commit 0e4bef8

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ gem "turbo-rails"
1515
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
1616
gem "stimulus-rails"
1717
# Use Tailwind CSS [https://github.com/rails/tailwindcss-rails]
18-
gem "tailwindcss-rails"
18+
gem "tailwindcss-rails", "~> 3.3.1"
1919
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
2020
gem "jbuilder"
2121
# Use Redis adapter to run Action Cable in production

Gemfile.lock

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ GEM
180180
pg (1.6.2-aarch64-linux)
181181
pg (1.6.2-arm64-darwin)
182182
pg (1.6.2-x86_64-linux)
183-
pp (0.6.2)
183+
pp (0.6.3)
184184
prettyprint
185185
prettyprint (0.2.0)
186186
prism (1.4.0)
@@ -234,9 +234,10 @@ GEM
234234
zeitwerk (~> 2.6)
235235
rainbow (3.1.1)
236236
rake (13.3.0)
237-
rdoc (6.14.2)
237+
rdoc (6.15.0)
238238
erb
239239
psych (>= 4.0.0)
240+
tsort
240241
redcarpet (3.6.1)
241242
redis (5.4.1)
242243
redis-client (>= 0.22.0)
@@ -289,14 +290,15 @@ GEM
289290
stimulus-rails (1.3.4)
290291
railties (>= 6.0.0)
291292
stringio (3.1.7)
292-
tailwindcss-rails (2.7.9-aarch64-linux)
293-
railties (>= 7.0.0)
294-
tailwindcss-rails (2.7.9-arm64-darwin)
295-
railties (>= 7.0.0)
296-
tailwindcss-rails (2.7.9-x86_64-linux)
293+
tailwindcss-rails (3.3.2)
297294
railties (>= 7.0.0)
295+
tailwindcss-ruby (~> 3.0)
296+
tailwindcss-ruby (3.4.17-aarch64-linux)
297+
tailwindcss-ruby (3.4.17-arm64-darwin)
298+
tailwindcss-ruby (3.4.17-x86_64-linux)
298299
thor (1.4.0)
299300
timeout (0.4.3)
301+
tsort (0.2.0)
300302
turbo-rails (2.0.17)
301303
actionpack (>= 7.1.0)
302304
railties (>= 7.1.0)
@@ -351,7 +353,7 @@ DEPENDENCIES
351353
rubocop-rails-omakase
352354
selenium-webdriver
353355
stimulus-rails
354-
tailwindcss-rails
356+
tailwindcss-rails (~> 3.3.1)
355357
turbo-rails
356358
tzinfo-data
357359
view_component

config/tailwind.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ function withOpacityValue(variable) {
1111
}
1212

1313
module.exports = {
14-
darkMode: 'media',
1514
content: [
1615
'./app/components/**/*',
1716
'./app/helpers/**/*.rb',
1817
'./app/javascript/**/*.js',
1918
'./app/views/**/*'
20-
],
19+
],
2120
theme: {
2221
colors: {
2322
transparent: 'transparent',
@@ -58,7 +57,6 @@ module.exports = {
5857
},
5958
plugins: [
6059
require('@tailwindcss/forms'),
61-
require('@tailwindcss/aspect-ratio'),
6260
require('@tailwindcss/typography'),
6361
]
6462
}

0 commit comments

Comments
 (0)