Skip to content

Commit b4430e0

Browse files
Add lang="postcss" to SvelteKit guide example (#2085)
This is necessary to silence linter warnings from VSCode’s CSS language server. Closes tailwindlabs/tailwindcss-intellisense#1147 Without this you'll see this in a Svelte document that uses `<style>` tags and `@reference`: <img width="565" alt="Screenshot 2025-02-11 at 13 50 24" src="https://github.com/user-attachments/assets/bfd98e4c-924a-412e-8ac2-bdcbd0cb1f06" /> After you'll see the diagnostic is gone: <img width="524" alt="Screenshot 2025-02-11 at 13 50 30" src="https://github.com/user-attachments/assets/6744f8ea-5144-427e-b052-ee9ee09ec5dd" />
1 parent 0e35d36 commit b4430e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/(docs)/docs/installation/framework-guides/sveltekit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export let steps: Step[] = [
140140
Hello world!
141141
</h1>
142142
143-
<style>
143+
<style lang="postcss">
144144
/* [!code highlight:2] */
145145
@reference "tailwindcss/theme";
146146

0 commit comments

Comments
 (0)