tailwindcss
Tailwind CSS allows you to rapidly build modern websites without ever leaving your HTML.
Usage
npx sv add tailwindcss
What you get
- Tailwind setup following the Tailwind for SvelteKit guide
- Tailwind Vite plugin
- updated
app.css
and+layout.svelte
(for SvelteKit) orApp.svelte
(for non-SvelteKit Vite apps) - integration with
prettier
if using that package
Options
plugins
Which plugin to use:
typography
—@tailwindcss/typography
forms
—@tailwindcss/forms
npx sv add --tailwindcss=typography
Edit this page on GitHub llms.txt
previous next