Skip to content

Commit 0ff4b97

Browse files
authored
Merge pull request #486 from frayzil/main
doc: Add to v3-v4 upgrade guide about custom css files
2 parents 5a9dd5e + 716406f commit 0ff4b97

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ First, update to `tailwindcss-rails` v4.0.0 or higher. This will also ensure you
104104
gem "tailwindcss-rails", "~> 4.0" # which transitively pins tailwindcss-ruby to v4
105105
```
106106

107+
**Update** references to any existing css files imported in `application.tailwind.css`
108+
```diff
109+
-@import "pagy.css";
110+
+@import "../stylesheets/pagy.css";
111+
```
112+
107113
If you want to migrate CSS class names for v4 (this is an optional step!), jump to [Updating CSS class names for v4](#updating-css-class-names-for-v4) before continuing.
108114

109115
Then, run `bin/rails tailwindcss:upgrade`. Among other things, this will try to run the official Tailwind upgrade utility. It requires `npx` in order to run, but it's a one-time operation and is *highly recommended* for a successful upgrade.
@@ -232,7 +238,6 @@ Then, once you've run that successfully, clean up:
232238
```
233239
- **Revert** the changes to `config/tailwind.config.js` so that paths are once again relative to the application root.
234240
235-
236241
## Developing with Tailwindcss
237242
238243
### Configuration and commands

0 commit comments

Comments
 (0)