svelte-add-unocss Svelte Themes

Svelte Add Unocss

1️⃣ Add unocss to Svelte

This is an adder for svelte-add; you should read its README before continuing here.

➕ Adding unocss

This adder's codename is unocss, and can be used like so:

npx svelte-add@latest unocss

🏞 Supported environments

This adder supports SvelteKit and Vite-powered Svelte apps (all the environments svelte-add currently supports).

⚙️ Options

🛠 Using unocss

After the adder runs,

  • You can use unocss utility classes like bg-blue-700 in the markup (components, routes, app.html).

  • You need to import unocss in your [page|component|__layout].svelte file import 'uno.css';

Top categories

Loading Svelte Themes