Installation

Add the package, import the stylesheet once, and start using components. No Tailwind, no config.

Install

Works with pnpm, npm and yarn.

Terminal
pnpm add sve-ui
# or: npm install sve-ui
# or: yarn add sve-ui

Import the stylesheet

Import sve-ui/theme.css once at your app root. This ships all component styles and the default theme tokens.

+layout.svelte
// src/routes/+layout.svelte (or your root)
import 'sve-ui/theme.css';

Use a component

Import and use. Single components are default imports.

ThemeProvider (optional)

Wrap your app (or any subtree) in ThemeProvider to control light/dark and scope theme overrides. See Theming.

+layout.svelte
<script>
  import { ThemeProvider } from 'sve-ui';
</script>

<ThemeProvider colorScheme="dark">
  <!-- your app -->
</ThemeProvider>