#How can I use vanilla-extract styles in Astro?
2 messages · Page 1 of 1 (latest)
Astro supports vanilla-extract through a community integration called astro-vanilla-extract. This integration allows you to use vanilla-extract’s CSS-in-JS approach in your Astro projects, including .css.ts files for styling your components.
However, the knowledge sources provided only mention the existence of the astro-vanilla-extract integration and do not provide a detailed example or step-by-step setup for using vanilla-extract with Astro components. Specifically, there is no example of an .astro component importing and using a .css.ts file with vanilla-extract in the sources above. The information is limited to the integration’s availability and its purpose: "Adds vanilla-extract support to Astro" astro-vanilla-extract.