shadcn-svelte
by Hunter Johnston and contributors
Svelte port of shadcn/ui with components and blocks (dashboards, sidebars, login); add them with the shadcn-svelte CLI.
Website sections and blocks Code libraryOpen sourceminimal
1. Price: shadcn-svelte.com
Fully free.
shadcn-svelte.comNo quote yet: price is read from the official pages.
2. Commercial use: raw.githubusercontent.com
“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”
MIT allows use in paid products.
raw.githubusercontent.com3. Credit the author: raw.githubusercontent.com
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.”
No credit on screen. Keep the license notice inside the code you ship.
raw.githubusercontent.com4. Agent access: github.com/huntabyte/shadcn-svelte
An agent can install it by itself with npm install shadcn-svelte. No key or account is needed.
github.com/huntabyte/shadcn-svelteLicense checked Nov 5, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error
shadcn-svelte: ready interface pieces for Svelte apps
shadcn-svelte is a free set of ready interface pieces for apps made with Svelte, such as buttons, forms, menus, sidebars and login pages. A small command copies the code of each piece into your own project, so you or your AI assistant can change it freely. It is a community version of the popular shadcn/ui set, which was made for React.
Where you can use it
Buttons, forms and dialogs
Add the basic pieces of an app screen one by one, like a button, an input or a pop-up dialog, all in one matching style.
An admin dashboard in one step
Start an admin or account area from a ready page with a side menu, charts and a data table, then change the parts you need.
Login and sign-up pages
Get a ready login page with a form and a picture, and connect it to the sign-in service you already use.
A light and dark theme switch
Let visitors switch your site between light and dark with one button that remembers their choice.
Your own design system
Use the pieces as a starting point for your own house style. You change colors and shapes in your own copy instead of fighting a locked library.
A chat screen for an AI agent
Build the screen of an AI helper with ready parts for messages, the agent's steps, sources and a message field.
shadcn-svelte popularity
Downloads from api.npmjs.org, stars from GitHub, checked Nov 17, 2026. How the Gid Score is calculated
How to start
Tell your AI assistant
“In this SvelteKit project with Svelte 5 and Tailwind v4, run shadcn-svelte 1.8.0 (npx shadcn-svelte@1.8.0 init, base color slate, global CSS src/routes/layout.css) after committing, then add the sidebar-07 and login-04 blocks and wire the login form to our existing sign-in.”
Or install it yourself. Create a SvelteKit project with Tailwind CSS (skip if you have one).
npx sv create my-app --add tailwindcss
Show codeStep 1 or Step 2
Set up shadcn-svelte in the project. It asks a few questions and overwrites your global style file, so commit first.
npx shadcn-svelte@latest init
Add a component and use it in a page.
npx shadcn-svelte@latest add button
<script lang="ts">
import { Button } from "$lib/components/ui/button/index.js";
</script>
<Button>Click me</Button>
Mistakes to avoid
npm install shadcn-svelte, then import { Button } from 'shadcn-svelte'shadcn-svelte is a tool that copies code, not a component package to import from.
init overwrites the global CSS file, and @latest can change between runs.
The current components and setup target Svelte 5 with Tailwind v4.
The JavaScript versions are produced only by the command.
The dark mode setup in the docs depends on ModeWatcher in the root layout.
License
MIT license. Free to use in personal and paid products, and you may change and share the code. Keep the copyright and license notice with copies of the code.
“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” raw.githubusercontent.com
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” raw.githubusercontent.com
“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” raw.githubusercontent.com
“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” raw.githubusercontent.com
AllowedWith conditionsNot allowedNot stated or not checked yet
Is shadcn-svelte free for commercial use? The full answer Not legal advice. Check the license page before you ship.
For your agent
License rules tell your agent what it may do with shadcn-svelte. Paste them into your prompt or AGENTS.md.
- shadcn-svelte (Website sections and blocks, UI kits and website templates). Svelte port of shadcn/ui with components and blocks (dashboards, sidebars, login); add them with the shadcn-svelte CLI. Price: free; commercial use OK; no credit needed. Style: minimal.
Connect: npm shadcn-svelte.
Get files: npx shadcn-svelte@latest add <component or block>; no account (svelte).
Not allowed: Needs Svelte + Tailwind
Rule: Keep the MIT copyright notice in the code if you redistribute it.
Rule: No visible credit on the site is required by the licence.
License: https://raw.githubusercontent.com/huntabyte/shadcn-svelte/main/LICENSE.md (checked 2026-11-05; details: https://agentgid.com/assets/shadcn-svelte/)
Agent installs a package or loads it from a CDN.
npm install shadcn-svelteFormats: svelte
UI components: shadcn-svelte (MIT)Alternatives
shadcn-svelte This page
Pick shadcn-vue when your app is built with Vue instead of Svelte; it is the same idea with the same kinds of blocks.
Pick Nuxt UI for a Vue or Nuxt app when you want a full installed library with page templates instead of copied code.
Pick Bootstrap Examples for a plain site without Svelte, Vue or React, as one zip of ready layouts.
Free Bootstrap 5 admin dashboard template (dashboards, forms, tables, auth pages); also React/Angular/Vue ports.
Community-made UI elements (buttons, cards, loaders, inputs, toggles) in HTML/CSS and Tailwind; all MIT and mirrored in a public GitHub repo.
Questions
Is shadcn-svelte the official shadcn/ui?
No. It is an unofficial, community-led Svelte version of shadcn/ui, made with the original author's blessing.
Can I use it in a paid product?
Yes. It is under the MIT license; keep the copyright and license notice with copies of the code.
Does it work with Svelte 4 or Tailwind 3?
The current docs are for Svelte 5 with Tailwind 4. Older setups have separate legacy docs.
Do I have to use TypeScript?
No. Set typescript to false in components.json and the setup command gives you plain JavaScript versions.
How do I get updates?
The code you added is yours to change, so it does not update by itself. Deeper fixes come by updating packages it is built on, such as bits-ui.