shadcn-svelte

Configure shadcn-svelte components and registries in SvelteKit projects.

Updated Apr 2, 2025
One-click install
npx skills add https://github.com/xbg-solutions/boilerplate_sveltekit --skill shadcn-svelte-xbg-solutions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn-svelte
Source: https://github.com/xbg-solutions/boilerplate_sveltekit/tree/main/.claude/skills/shadcn_svelte
Command: npx skills add https://github.com/xbg-solutions/boilerplate_sveltekit --skill shadcn-svelte-xbg-solutions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides expert guidance for using shadcn-svelte in SvelteKit projects, covering integration patterns and CLI workflows to accelerate UI development.

Core Features & Use Cases

  • Expert strategies for installing, theming, and registering components with shadcn-svelte, including mode-watcher dark mode integration.
  • Guidance on building registries, composing component blocks, and using data visualization and form components with the library.
  • Real-world scenarios like creating dashboards, forms, and registries in SvelteKit apps.

Quick Start

Install the shadcn-svelte CLI and scaffold components in your SvelteKit project.

Frequently Asked Questions about shadcn-svelte

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install and set up shadcn-svelte UI components in a SvelteKit project?

To install shadcn-svelte UI components in SvelteKit, use the CLI to scaffold components directly into your project. This workflow handles setup, configuration, and registry integration, accelerating your UI development with Tailwind v4.

Does shadcn-svelte support dark mode and theming with mode-watcher in SvelteKit?

Yes, shadcn-svelte supports dark mode and theming in SvelteKit through mode-watcher integration. This allows you to easily implement and toggle dark mode across your UI components.

Can I build a custom component registry for forms and charts using shadcn-svelte?

Yes, you can build custom component registries for forms and charts using shadcn-svelte. The tooling guides registry workflows, allowing you to compose component blocks for data visualization and forms in SvelteKit apps.

What are the prerequisites for using shadcn-svelte with Tailwind v4 and SvelteKit v5?

Using shadcn-svelte with Tailwind v4 and SvelteKit v5 requires configuring your environment for compatibility. The skill provides advanced configuration guidance to navigate prerequisites, upgrade paths, and integration patterns.

Why use the shadcn-svelte CLI instead of manually adding UI components to SvelteKit?

Using the shadcn-svelte CLI streamlines installing and registering components, ensuring proper configuration and theming. It avoids manual setup errors and accelerates building complex dashboards and forms in SvelteKit.

What is the process for upgrading shadcn-svelte components when migrating to Tailwind v4?

Upgrading shadcn-svelte components for Tailwind v4 involves following specific compatibility considerations and upgrade paths. The skill guides you through registry workflows to update your UI components and maintain SvelteKit integration.