- Notifications
You must be signed in to change notification settings - Fork26
License
svelte-add/tailwindcss
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is an adder forsvelte-add; you shouldread itsREADME before continuing here.
This adder's codename istailwindcss, and can be used like so:
npx svelte-add@latest tailwindcss
This adder supports SvelteKit and Vite-powered Svelte apps (all the environmentssvelte-add currently supports).
forms(defaultfalse): whether or not to install and set up theTailwind CSS Forms plugin.typography(defaultfalse): whether or not to install and set up theTailwind CSS Typography plugin.daisyui(defaultfalse): whether or not to install and set updaisyUI as a Tailwind plugin.
npx svelte-add@latest tailwindcss --tailwindcss-forms --tailwindcss-typography --tailwindcss-daisyui
After the adder runs,
You can use Tailwind utility classes like
bg-blue-700in the markup (components, routes,app.html).You can useTailwind directives like
@applyand@screenor use thethemefunction in Sveltestyle lang="postcss"blocks or thesrc/app.pcssfile.You canconfigure Tailwind in the
tailwind.config.cjsfile.Your Tailwind CSS will be purged for production builds.
About
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Contributors9
Uh oh!
There was an error while loading.Please reload this page.