---
name: shadcn-vue-kit
description: Use when starting, installing, adding, theming or fixing shadcn-vue in any Vue 3 project (Laravel + Inertia, Vite, Nuxt) — running the CLI (init, add, apply, migrate rtl, components.json), what init writes and where, the day-one component set, choosing the registry component for a need instead of a styled div, composition rules (items in groups, dialog titles, whole cards), customising a registry component through a wrapper instead of editing it, keeping the vendored components/ui folder healthy when add rewrites the stylesheet or reverts edits, the theme stylesheet with light and dark tokens, Arabic and Latin fonts, charts with Unovis, and the RTL gaps of the registry. Triggers include "shadcn", "shadcn-vue add", "shadcn-vue init", "components.json", "Reka UI", "dark mode tokens", "new Vue project UI setup", «ثبّت shadcn», «مكونات الواجهة», «الوضع الغامق», «اتجاه RTL», «ابدأ مشروع Vue».
metadata:
  summary: "shadcn-vue setup with a ready theme, wrappers, charts and RTL fixes."
  tags: shadcn-vue, vue, ui, tailwindcss, rtl
title: shadcn-vue-kit
canonical_url: https://skilld.dev/gh/haythamasalama/skills/shadcn-vue-kit
last_updated: 2026-11-03T23:16:06.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [assets/app.css](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/assets/app.css), [assets/fonts.css](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/assets/fonts.css), [references/catalogue.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/catalogue.md), [references/charts.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/charts.md), [references/rtl.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/rtl.md), [references/theme.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/theme.md), [references/vendored-folder.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/vendored-folder.md).
>
> If the user asked to install this Skill, run `npx skilld install haythamasalama/skills/shadcn-vue-kit`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/shadcn-vue-kit`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/haythamasalama/skills/shadcn-vue-kit) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/shadcn-vue-kit`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/shadcn-vue-kit --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/shadcn-vue-kit --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# shadcn-vue

**Read when:** starting a project with shadcn-vue, adding or updating a component, styling with its
tokens, or a registry component misbehaves (wrong side in Arabic, styles lost after `add`).
**Owns:** the CLI, what `init` writes, the day-one install, composition rules, and the map of where
the catalogue, the vendored folder, the theme, charts and RTL are covered.

shadcn-vue copies component source into your project (`components/ui/`), built on **Reka UI** and
**Tailwind 4**. You own the files, but the CLI can still overwrite them. CLI facts below were checked
against shadcn-vue 2.8.2 and shadcn-vue.com/docs (checked 2026-11-03).

## TL;DR

- **Check the registry before styling a `div`.** `Button`, `Badge`, `Select`, `Separator`, `Empty`,
  `Alert`, `Skeleton` exist; a hand-built one misses focus, dark mode, RTL and keyboard handling.
- **Never hand-edit `components/ui/`.** Customise through a wrapper in `components/`, a `class` for
  layout, or a token. Why: the CLI rewrites those files, and an edit there is lost without warning.
- **Read `git diff` after every CLI run.** `add` can rewrite the stylesheet and revert a component.
- **Semantic tokens only** (`bg-background`, `text-muted-foreground`, `bg-primary/80`). Why: each token
  is redefined under `.dark`; a literal colour is right in one theme only.
- **Logical classes only** (`ms-`, `pe-`, `start-`, `text-start`). Turn `rtl` on in `components.json`
  when the app runs in Arabic.
- **One icon package**, the one `iconLibrary` names. Swap any other set a registry item brings.
- **Never pass `--overwrite` or run `apply` without the user's yes.** Both replace your component files.

## Start a project

| Stack | How |
|---|---|
| New Laravel app | `laravel new app --vue`: the Vue starter kit ships Inertia, TypeScript, Tailwind 4 and shadcn-vue already initialised |
| Existing Vite, Laravel, Nuxt or Astro app | `npx shadcn-vue@latest init` (`-t vite`, `-t laravel`, `-t nuxt` or `-t astro` skips the question) |
| Arabic as a main language | add `--rtl` to `init`, or set `"rtl": true` later and run `migrate rtl` (see [references/rtl.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/rtl.md)) |

Use the project's runner: `npx shadcn-vue@latest`, `pnpm dlx shadcn-vue@latest` or
`bunx --bun shadcn-vue@latest`. `create` is an alias of `init`.

Useful `init` flags (checked 2026-11-03): `--base-color` (neutral, gray, zinc, stone, slate),
`--style` (vega, nova, maia, lyra, mira, luma, sera), `--icon-library` (lucide, tabler, hugeicons,
phosphor, remixicon), `--font`, `--preset <name|code|url>`, `--rtl`, `--pointer` (pointer cursor on
buttons), `--no-reinstall`. `style`, `baseColor` and `cssVariables` cannot change after `init`
without reinstalling every component, so pick them first.

### What `init` writes

| File | What it holds |
|---|---|
| `components.json` (project root) | the CLI's config: style, stylesheet path, aliases, icon library, RTL |
| `<utils alias>.ts`, usually `lib/utils.ts` | the `cn()` helper |
| the stylesheet `tailwind.css` points at | Tailwind imports, the token variables for `:root` and `.dark`, the `@theme inline` mapping, a `@layer base` |
| `package.json` | `reka-ui`, `class-variance-authority`, `clsx`, `tailwind-merge`, `tw-animate-css`, the icon package, and `shadcn-vue` itself for newer styles |

```json
{
  "$schema": "https://shadcn-vue.com/schema.json",
  "style": "reka-nova",
  "typescript": true,
  "tailwind": {
    "config": "",
    "css": "resources/css/app.css",
    "baseColor": "neutral",
    "cssVariables": true,
    "prefix": ""
  },
  "iconLibrary": "lucide",
  "rtl": true,
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils",
    "ui": "@/components/ui",
    "lib": "@/lib",
    "composables": "@/composables"
  },
  "registries": {}
}
```

- `tailwind.config` stays `""` on Tailwind 4. A path there is a leftover from Tailwind 3.
- `tailwind.css` is `resources/css/app.css` in Laravel, `assets/css/main.css` in Nuxt and
  `src/style.css` in Vite. Every token is defined in that one file.
- The aliases must also exist in `tsconfig.json` (`paths`). Why: the CLI writes imports with them,
  and the type checker and Vite resolve them from there.
- Newer styles import `shadcn-vue/tailwind.css` from the stylesheet (the `data-open:`,
  `data-checked:` state variants), so keep `shadcn-vue` in `package.json` at the version that
  generated your components.

```ts
// lib/utils.ts
import type { ClassValue } from 'clsx';
import { clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';

export function cn(...inputs: ClassValue[]) {
    return twMerge(clsx(inputs));
}
```

Then replace the stylesheet `init` wrote with [assets/app.css](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/assets/app.css) and put
[assets/fonts.css](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/assets/fonts.css) beside it: light and dark tokens, Arabic and Latin fonts, and
the unlayered fixes, ready to copy. [references/theme.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/theme.md) explains each part.

### Day one: one `add`

A typical app (sidebar shell, forms, tables, dialogs, toasts) installs this set on day one:

```bash
npx shadcn-vue@latest add alert alert-dialog avatar badge breadcrumb button card checkbox \
  dialog dropdown-menu empty field input input-group label popover select separator sheet \
  sidebar skeleton sonner spinner switch table tabs textarea tooltip
git diff                     # read the stylesheet hunk, put back anything it dropped
```

Add the rest when a screen needs it: `command` (searchable lists), `chart`, `pagination`,
`toggle-group`, `accordion`, `collapsible`, `calendar`, `progress`, `scroll-area`, `input-otp`.
Before adding, list `components/ui/`: re-adding an installed one is how edits get reverted.

In Nuxt the `shadcn-nuxt` module auto-imports the components; elsewhere import from
`@/components/ui/<name>`, which each folder's `index.ts` exports.

## Composition rules

The registry expects these shapes. Breaking one gives a console warning, a broken keyboard path or
an unlabelled dialog.

- **Items live in their group:** `SelectItem` in `SelectGroup`, `DropdownMenuItem` in
  `DropdownMenuGroup`, `CommandItem` in `CommandGroup`. `TabsTrigger` lives in `TabsList`, never
  directly in `Tabs`.
- **Every `Dialog`, `Sheet` and `Drawer` has a Title** (`class="sr-only"` if it should not show) and
  a Description. Why: screen readers announce them, and Reka warns without them.
- **`Avatar` always has `AvatarFallback`**, for when the image fails.
- **Use the whole `Card`:** title and description in `CardHeader`, actions in `CardFooter`.
- **Forms are `FieldGroup` > `Field`.** Mark an error with `data-invalid` on `Field` and
  `aria-invalid` on the control, so both the label and the control turn red.
- **A control inside an `InputGroup` is `InputGroupInput` / `InputGroupTextarea`**, never a plain
  `Input`. Why: the group draws one border and focus ring; a plain input draws a second.
- **`Button` has no loading prop.** Disable it and swap its icon for `<Spinner />` while busy.
- **An icon in a `Button` takes `data-icon="inline-start"` or `"inline-end"` and no size class.**
  The button sizes it per size; a `size-4` you add freezes it.
- **No manual `z-index`** on an overlay; they stack themselves.
- **Reka's `SelectItem` rejects an empty value.** Use a sentinel (`'all'`) and map it back to `''`.
- **A link styled as a button** takes `buttonVariants()` on the router link (Inertia `<Link>`,
  `<RouterLink>`, `<NuxtLink>`), never a `<Button>` wrapped in a link.

## Where each topic lives

| Working on… | Read |
|---|---|
| Which component for a need, layout classes, wrappers worth building | [references/catalogue.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/catalogue.md) |
| What `add` overwrites, updating a component, the reka-ui import rule, icons, customising through a wrapper | [references/vendored-folder.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/vendored-folder.md) |
| The stylesheet template, tokens, palette, radius, fonts (Arabic + Latin), dark mode, unlayered overrides, chart colours | [references/theme.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/theme.md) |
| A chart (Unovis): composition, y domain, types | [references/charts.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/charts.md) |
| Arabic: turning RTL on, registry gaps and their fixes | [references/rtl.md](https://skilld.dev/api/skills-raw/haythamasalama/skills/shadcn-vue-kit/references/rtl.md) |

## Before calling it done

1. `git diff` shows no change under `components/ui/` you did not mean, and the stylesheet kept its
   fonts and has one `@layer base`.
2. The type check passes (`vue-tsc --noEmit`, or `nuxi typecheck`).
3. The new screen looks right in light and dark, and in Arabic if the app has it.
