distill-ui
| Install | |
|---|---|
npm install distill-ui |
|
| Latest Version: | 0.0.2 |
| License: | MIT |
| Last Updated: | Oct 10, 2026 |
| Links: | npm |
distill-ui
Copy distill-ui components into your Svelte 5, Vue 3 or Nuxt project. They're styled with plain scoped CSS, with no Tailwind needed.
npx distill-ui init # copy the tokens and import them
npx distill-ui add button # copy a component (and any it uses)
npx distill-ui add --all # copy every component
npx distill-ui list # show what you can add
init saves its choices in distill-ui.json:
{
"framework": "svelte",
"components": "src/lib/components/ui",
"styles": "src/lib/styles/distill-ui"
}
Edit the folders before running add if you want the files somewhere else.
init finds your framework in package.json:
- SvelteKit: files go in
src/lib, and the tokens are imported insrc/routes/+layout.svelte. - Vite + Vue: files go in
src/components/uiandsrc/styles/distill-ui, and the tokens are imported at the top ofsrc/main.ts. - Nuxt: files go in
app/components/uiandapp/assets/styles/distill-ui(without theapp/in projects that don't have that folder). It prints the lines to add tonuxt.config.ts.
add never replaces a file you've changed unless you pass --overwrite. It installs the npm packages the components need (melt and @floating-ui/dom for Svelte, reka-ui for Vue) with the package manager your lockfile points to. Pass --no-install to just print the command.
Options
| Option | What it does |
|---|---|
--cwd <path> |
Run in another folder |
--overwrite |
Replace files that already exist |
--no-install |
Print the install command instead of running it |
--registry <url> |
Download components from another URL or local folder |
Working on the CLI
The CLI reads the JSON in the repo's registry/ folder, which bun run registry builds from packages/svelte, packages/vue and packages/tokens. To try a change without publishing, point it at your checkout:
node path/to/distill-ui/packages/cli/src/index.js init --registry path/to/distill-ui/registry
Run the tests with bun test in this folder.
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.0.2 | MIT | |
| 0.0.1 | MIT |
Pre-releases (1)
| Version | Released | License |
|---|---|---|
| 0.0.0-stage |