Skip to content

Commit b9da1c1

Browse files
committed
Update readme
1 parent a01f5f7 commit b9da1c1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@ As of v0.5.x, this plugin now requires Prettier v3 and is ESM-only. This means i
2525

2626
## Options
2727

28+
### Using with Tailwind CSS v4.0
29+
30+
When using Tailwind CSS v4 you must specify what CSS file we should use that contains your theme, custom utilities, etc… To do this use the `tailwindStylesheet` option in your Prettier configuration.
31+
32+
Note that paths are resolved relative to the Prettier configuration file.
33+
34+
```json5
35+
// .prettierrc
36+
{
37+
"tailwindStylesheet": "./resources/css/app.css"
38+
}
39+
```
40+
41+
Note: this option was previously named `tailwindEntryPoint` it has been renamed to better reflect its purpose.
42+
2843
### Customizing your Tailwind config path
2944

3045
To ensure that the class sorting takes into consideration any of your project's Tailwind customizations, it needs access to your [Tailwind configuration file](https://tailwindcss.com/docs/configuration) (`tailwind.config.js`).

0 commit comments

Comments
 (0)