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