-
I have installed
There is a demo application at https://github.com/gihrig/format-demo-svelte. The demo application was created following Install Tailwind CSS with SvelteKit and Sorting Tailwind CSS Classes Automatically with Prettier. I'm working with macOS 10.14.6 (Mojave). Any workarounds, corrections or suggestions would be most appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The problem is not actually the e.g. When the CSS variables are removed, class sort works as expected. Also Confirmed with Headwind VSCode extension I'll dig a bit deeper and open a new issue as appropriate |
Beta Was this translation helpful? Give feedback.
-
I just installed |
Beta Was this translation helpful? Give feedback.
-
@DaveKeehl I did experience this problem again in a new project. If that doesn't solve your issue, let me know and I'll dig deeper to see what I can offer. |
Beta Was this translation helpful? Give feedback.
The problem is not actually the
.svelte
extension. It's "custom classes" with variable expansion.e.g.
class="mx-auto mb-0 mt-[var(--column-margin-top)] max-w-[var(--column-width)]"
When the CSS variables are removed, class sort works as expected.
Also Confirmed with Headwind VSCode extension
I'll dig a bit deeper and open a new issue as appropriate