You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,21 @@ As of v0.5.x, this plugin now requires Prettier v3 and is ESM-only. This means i
25
25
26
26
## Options
27
27
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
+
28
43
### Customizing your Tailwind config path
29
44
30
45
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