This is a basic demo of using Astro with vanilla-extract.
Since Astro uses Vite, all we need to do is install @vanilla-extract/vite-plugin
(along with @vanilla-extract/css
for use within .css.ts
files), then add an instance of the plugin to the vite.plugins
array in our astro.config.mjs
file. We're then free to create .css.ts
files and import them within our .astro
files.
This project uses pnpm.
pnpm install
pnpm dev
MIT.