Skip to content
Agents tracked: 502 Releases (7d): 613 Agent status: 4 with issuesSince last limit reset: Claude 7d · Codex 5d For AI agents: Markdown Updated Nov 18, 2026

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

GitHub repoWebsite

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.com

License 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

42 / 100
Gid Score, same scale as developer tools
9,263
GitHub stars
316.5K
npm downloads, last 7 days
+41.6% in 4 weeks
4
AI-agent projects using it, from our repo scan of 4,817
shadcn-svelte: downloads per weeknpm, shadcn-svelte 316,455
shadcn-svelte: GitHub starshuntabyte/shadcn-svelte 9,263

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

Mistakes to avoid

npm install shadcn-svelte, then import { Button } from 'shadcn-svelte'
Run the add command; it copies the component into src/lib/components/ui, and you import it from $lib/components/ui/button/index.js

shadcn-svelte is a tool that copies code, not a component package to import from.

Running npx shadcn-svelte@latest init in a project with uncommitted styles
Commit first, pin the version (npx shadcn-svelte@1.8.0 init) and pass the CSS path you expect

init overwrites the global CSS file, and @latest can change between runs.

Following the current docs in a Svelte 4 or Tailwind v3 project
Upgrade to Svelte 5 and Tailwind v4, or use the legacy docs that match your versions

The current components and setup target Svelte 5 with Tailwind v4.

Copying the .ts component files by hand into a JavaScript-only project
Set "typescript": false in components.json, then add components with the command

The JavaScript versions are produced only by the command.

Adding a theme toggle without ModeWatcher in the root layout
Install mode-watcher and put <ModeWatcher /> in src/routes/+layout.svelte before using toggleMode

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.

Commercial use
Yes

“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

Credit
Not needed

“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” raw.githubusercontent.com

Inside your app or game
Can ship inside your app

“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

Pass the files on to your users
Allowed

“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

AI training
Not stated
Bots and bulk downloads
Not stated

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.

License rules
- 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/)
Can an agent use it by itself?
Yes.

Agent installs a package or loads it from a CDN.

Install
npm install shadcn-svelte
How an agent gets files
npx shadcn-svelte@latest add <component or block>; no account.

Formats: svelte

API, key or account
Not needed. Everything runs on your side.
MCP server
None found
Credit line, if you want one
UI components: shadcn-svelte (MIT)
This card for machines

Alternatives

shadcn-svelte This page

Free Commercial OK npm

shadcn-vue

Pick shadcn-vue when your app is built with Vue instead of Svelte; it is the same idea with the same kinds of blocks.

Free Commercial OK MCP, npm

Nuxt UI

Pick Nuxt UI for a Vue or Nuxt app when you want a full installed library with page templates instead of copied code.

Free Commercial OK npm

Bootstrap Examples

Pick Bootstrap Examples for a plain site without Svelte, Vue or React, as one zip of ready layouts.

Free Commercial OK npm

AdminLTE

Free Bootstrap 5 admin dashboard template (dashboards, forms, tables, auth pages); also React/Angular/Vue ports.

Free Commercial OK npm

Uiverse

Community-made UI elements (buttons, cards, loaders, inputs, toggles) in HTML/CSS and Tailwind; all MIT and mirrored in a public GitHub repo.

Free Commercial OK Download

All website sections and blocks

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.