@varavel/ui is the official UI library for the Varavel ecosystem.
It is built for Svelte 5 and Tailwind CSS v4, and ships with reusable components plus a shared Tailwind CSS configuration.
npm install @varavel/uiRequired peer dependencies:
sveltev5+tailwindcssv4+
In your main stylesheet (for example src/app.css):
@import "tailwindcss";
@import "@varavel/ui/theme.css";
@source "../node_modules/@varavel/ui";UiProvider should wrap your app once at the root so shared runtime behavior (dialogs, toasts, tooltip timing, etc.) works globally.
<script>
import "../app.css";
import { UiProvider } from "@varavel/ui";
let { children } = $props();
</script>
<UiProvider>{@render children()}</UiProvider>Import components directly from @varavel/ui in your Svelte files:
<script lang="ts">
import { Button, Input } from "@varavel/ui";
</script>
<div class="flex flex-col gap-3">
<Input placeholder="Project name" />
<Button>Save changes</Button>
</div>This project is released under the MIT License. See the LICENSE.