windicss / windicss-intellisense

Intelligent WindiCSS tooling for VS Code
https://marketplace.visualstudio.com/items?itemName=voorjaar.windicss-intellisense
MIT License
194 stars 16 forks source link

Svelte pattern not correct yet #141

Closed alexanderniebuhr closed 3 years ago

alexanderniebuhr commented 3 years ago

svelte has something like this. We could change the classPattern or make a new one. @voorjaar not sure how you have changed the pattern logic. can you make a pattern (for svelte) for the example below to work? This syntax is very often used, even class directive exists

<div class={isDark ? 'dark:bg-red-500' : 'light:bg-yellow-500'}>my text is large</div>
alexanderniebuhr commented 3 years ago

it also exists wrapped in "

<div class="{isPrimary ? 'bg-red-500' : 'bg-yellow-500' }">my text is large</div>
alexanderniebuhr commented 3 years ago

141 fixed the autocomplete. Color decoration do not work yet.