Get Started
 Migration
 Components
 - Accordion
 - Alert Dialog
 - Alert
 - Aspect Ratio
 - Avatar
 - Badge
 - Breadcrumb
 - Button
 - Calendar
 - Card
 - Carousel
 - Chart
 - Checkbox
 - Collapsible
 - Combobox
 - Command
 - Context Menu
 - Data Table
 - Date Picker
 - Dialog
 - Drawer
 - Dropdown Menu
 - Formsnap
 - Hover Card
 - Input OTP
 - Input
 - Label
 - Menubar
 - Navigation Menu
 - Pagination
 - Popover
 - Progress
 - Radio Group
 - Range Calendar
 - Resizable
 - Scroll Area
 - Select
 - Separator
 - Sheet
 - Sidebar
 - Skeleton
 - Slider
 - Sonner
 - Switch
 - Table
 - Tabs
 - Textarea
 - Toggle Group
 - Toggle
 - Tooltip
 - Typography
 
Installation
 Special sponsor
 We're looking for one partner to be featured here.
 Support the project and reach thousands of developers.
 Reach outCreate project
Use the SvelteKit CLI to create a new project.
pnpm dlx sv create my-appnpx sv create my-appbun x sv create my-appnpx sv create my-appAdd TailwindCSS
Use the Svelte CLI to add Tailwind CSS to your project.
pnpm dlx sv add tailwindcssnpx sv add tailwindcssbun x sv add tailwindcssnpx sv add tailwindcssSetup path aliases
If you are not using the default alias $lib, you'll need to update your svelte.config.js file to include those aliases.
const config = {
  // ... other config
  kit: {
    // ... other config
    alias: {
      "@/*": "./path/to/lib/*",
    },
  },
};  Run the CLI
pnpm dlx shadcn-svelte@latest initnpx shadcn-svelte@latest initbun x shadcn-svelte@latest initnpx shadcn-svelte@latest initConfigure components.json
You will be asked a few questions to configure components.json:
Which base color would you like to use? › Slate
Where is your global CSS file? (this file will be overwritten) › src/app.css
Configure the import alias for lib: › $lib
Configure the import alias for components: › $lib/components
Configure the import alias for utils: › $lib/utils
Configure the import alias for hooks: › $lib/hooks
Configure the import alias for ui: › $lib/components/ui  That's it
You can now start adding components to your project.
pnpm dlx shadcn-svelte@latest add buttonnpx shadcn-svelte@latest add buttonbun x shadcn-svelte@latest add buttonnpx shadcn-svelte@latest add buttonThe command above will add the Button component to your project. You can then import it like this:
<script lang="ts">
  import { Button } from "$lib/components/ui/button/index.js";
</script>
 
<Button>Click me</Button>