Installation
Prerequisites
- Svelte 5.56 or newer, with or without SvelteKit
- Tailwind CSS v4
Package import
Install the library and import components from @mielui/svelte .
Import the stylesheet once in src/app.css .
Use a component:
Compound components expose named parts. Import Dialog and compose Dialog.Root with Dialog.Content and the other parts you
need.
CLI source copy
The CLI copies source into your project. The package name is @mielui/svelte ; the binary is mielui .
1. Create a project
Skip project creation and Tailwind setup if your app already has both.
2. Add Tailwind v4
3. Initialize Mielui
Run this from the project root to create src/lib/mielui/ for styles and utilities,
plus mielui.json .
4. Import the stylesheet
5. Add components
6. Use them
Notes
- Tailwind v3 is not supported. Mielui needs v4
@themeandcolor-mix. - Dark mode uses a
.darkclass on<html>. - Built-in theme presets install with
pnpm dlx @mielui/svelte add theme <slug>Usedefaultto start with the default preset.
pnpm add @mielui/svelte # npm i @mielui/svelte # yarn add @mielui/svelte