tailwindlabs / tailwindcss-intellisense

Intelligent Tailwind CSS tooling for Visual Studio Code
2.75k stars 183 forks source link

Support Astro's `class:list` attribute by default #890

Closed yuheiy closed 3 months ago

yuheiy commented 6 months ago

In Astro, class:list={...} takes an array of class values.

<!-- This -->
<span class:list={[ 'hello goodbye', { world: true }, [ 'friend' ] ]} />
<!-- Becomes -->
<span class="hello goodbye world friend"></span>

https://docs.astro.build/en/reference/directives-reference/#classlist

Including class:list in the default tailwindCSS.classAttributes should make it more useful!

thecrypticace commented 3 months ago

Thanks!