Skip to content

Commit fa742ba

Browse files
authored
(docs) tailwind note
Closes #275
1 parent 807937c commit fa742ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,9 @@ Whether or not to indent the code inside `<script>` and `<style>` tags in Svelte
148148
"svelteIndentScriptAndStyle": false
149149
}
150150
```
151+
152+
## Usage with Tailwind Prettier Plugin
153+
154+
There's a Tailwind Prettier Plugin to format classes in a certain way. This plugin bundles `prettier-plugin-svelte`, so if you want to use the Tailwind plugin, uninstall `prettier-plugin-svelte` and use the Tailwind plugin instead. If you are using VS Code, make sure to have the Prettier extension installed and switch the default formatter for Svelte files to it.
155+
156+
More info: https://github.com/tailwindlabs/prettier-plugin-tailwindcss#compatibility-with-other-prettier-plugins

0 commit comments

Comments
 (0)