Installation
Add the package, import the stylesheet once, and start using components. No Tailwind, no config.
Install
Works with pnpm, npm and yarn.
pnpm add sve-ui
# or: npm install sve-ui
# or: yarn add sve-uiImport the stylesheet
Import sve-ui/theme.css once at your app root. This ships
all component styles and the default theme tokens.
// src/routes/+layout.svelte (or your root)
import 'sve-ui/theme.css';Without the stylesheet, components render unstyled.
It's the only required setup step — there is no Tailwind or config to add.
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.
<script>
import { ThemeProvider } from 'sve-ui';
</script>
<ThemeProvider colorScheme="dark">
<!-- your app -->
</ThemeProvider>