tailwindcss
Purpose: This library is an adder for
svelte-add
that simplifies the process of integrating Tailwind CSS into Svelte projects. It automates setup and configuration.Target Audience: Svelte developers using SvelteKit or Vite-powered Svelte apps who want to use Tailwind CSS.
Key Features:
- Adds Tailwind CSS utility classes and directives to Svelte projects.
- Supports SvelteKit and Vite-powered Svelte environments.
- Optional plugins:
- Tailwind CSS Forms
- Tailwind CSS Typography
- daisyUI (as a Tailwind plugin)
- Includes production-ready CSS purging.
Usage:
- Apply Tailwind classes directly in markup.
- Use Tailwind directives (
@apply
,@screen
) in Svelte style blocks orapp.pcss
. - Configure Tailwind via
tailwind.config.cjs
.
Svelte Support: Primarily designed for Svelte projects (both SvelteKit and Vite-based).
sveltesveltekitsvelte-kitpostcsspurgecsstailwindcsssvelte-addvite
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button