Index of every page on this site: llms.txt
All skills
Run it yourself

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

Use this Skill: https://skilld.dev/gh/haythamasalama/skills/shadcn-vue-kit

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesrtl.md

≈1.4k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Arabic (RTL)

Read when: the app runs in Arabic, something sits on the wrong side, or you are about to type left, right, ml- or pr-. Owns: turning RTL on, where Reka reads direction from, what you write, dir="ltr" on values, and the registry's RTL gaps with their fixes.

TL;DR

  • Generate the registry with RTL on ("rtl": true), set <html lang dir>, and wrap every layout in Reka's ConfigProvider :dir.
  • Write logical classes only; rtl: variants for what has no logical form.
  • dir="ltr" goes on an element that shows a Latin value, not on a plain input.
  • RTL mode cannot rewrite transforms and offsets. The fixes live unlayered in the stylesheet.

Turning it on

  1. The registry in RTL mode (checked 2026-11-03 against shadcn-vue.com/docs/rtl):
    • new project: npx shadcn-vue@latest init --rtl (or create --rtl);
    • existing project: npx shadcn-vue@latest migrate rtl rewrites every file in the ui folder and sets "rtl": true. A path or glob limits it: migrate rtl "resources/js/components/ui/**". Read git diff after. With rtl on, add writes logical classes (left-* → start-*), flips the supported icons with rtl:rotate-180, and makes slide animations logical (slide-in-from-right → slide-in-from-end).
  2. <html lang dir> set by the app, and kept in sync when the language changes without a reload (an Inertia visit, a Nuxt route change). Why: a dir written once on first load outlives a switch of language.
  3. <ConfigProvider :dir :locale> from reka-ui at the root of every layout. Reka reads direction from it, not from CSS. Without it every popper is placed and every arrow key resolved as if the page were LTR: the dropdown opens off-screen and nothing in the CSS explains why.
<script setup lang="ts">
import { ConfigProvider } from 'reka-ui';

defineProps<{ dir: 'ltr' | 'rtl'; locale: string }>();
</script>

<template>
    <ConfigProvider :dir="dir" :locale="locale">
        <slot />
    </ConfigProvider>
</template>
  1. Portalled content that slides in (PopoverContent, TooltipContent) may need :dir passed directly, because the logical slide utilities in tw-animate-css read direction from the element itself (per the docs, checked 2026-11-03).

What you write

  • Logical classes only: ms-/me-, ps-/pe-, start-/end-, text-start/text-end, border-s/border-e, rounded-s-*. Never ml-, pr-, left-, text-left.
  • A glyph that points: rtl:rotate-180 when it is symmetrical (chevrons, plain arrows), rtl:-scale-x-100 when it is not (an arrow entering a door). Clocks, checkmarks and logos never flip. A typed → cannot flip at all, so use an icon.
  • Prefer rtl: / ltr: variants to branching on the direction in script.

dir="ltr" is for display, not for typing

  • A Latin value shown inside Arabic text (URL, host, email, code, key) sits in an element with dir="ltr", so bidi does not reorder it around dots and slashes.
  • Never on a plain input. It moves the caret to the far side and puts an Arabic placeholder on the wrong edge. An input that holds Latin takes dir="auto" only once it has a value: :dir="value ? 'auto' : undefined". Why: dir="auto" reads the value, and an empty box falls back to LTR.
  • An InputGroup whose affix is part of the value (a .example.com suffix, a +1 dial code, a prefix such as inv_) is LTR as a whole. One whose InputGroupAddon holds only an icon stays in the page direction.

Registry gaps and the fixes

RTL mode rewrites properties that have logical twins. A transform, a shadow offset or a background position has none, so the component looks right in English and broken in Arabic. The fixes are one unlayered block at the foot of the stylesheet, already in ../assets/app.css. Unlayered because Tailwind's utilities are layered and would otherwise win.

Found with shadcn-vue 2.8.x (checked 2026-11-03); re-check after upgrading:

  1. SheetContent stays physical. It positions on left-0/right-0 while Sidebar treats side as start/end, so in Arabic the mobile sidebar sat on the wrong edge and slid in from the wrong one. The fix flips the edge and the enter/exit translate variables. It keys on two data-slot values: the sidebar's mobile branch overwrites the sheet's slot name with "sidebar", so a selector on sheet-content alone matches nothing.
  2. AlertDialogHeader aligns with a physical sm:text-left. The fix restates it as text-align: start inside the same breakpoint, leaving the small-screen centring alone.
  3. Switch's thumb travels on translate. In Arabic the checked state pushed the thumb out of the track. The fix mirrors the checked travel only; unchecked is 0 both ways.
  4. Hardcoded English inside a component. Override at the call site (a slot, aria-label).

The docs list Calendar, Pagination and Sidebar as not migrated automatically; check them in Arabic when you add them. Still physical in that build, fix them the moment you use one:

Component What is physical
ToggleGroupItem first:rounded-l-* / last:rounded-r-*, border-l-0, inline paddings
SidebarRail group-data-[side=right]:left-0, group-data-[side=left]:-right-4
TabsTrigger group-data-vertical/tabs:after:-right-1 (vertical tabs only)

Checking it

Switch the language and look at the same screen. What breaks first: poppers (wrong side), drawers (wrong edge), icons that imply direction, and anything that animates or offsets. When adding a component that animates or offsets, toggle it once in Arabic before believing it.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts20d3 checks · Risk SAFE
  • Gen Agent Trust Hub20d

    The skill provides comprehensive and safe guidance for setting up and using shadcn-vue in Vue 3 projects. It encourages best practices such as reviewing code changes with git, avoiding dangerous CLI flags without review, and using semantic design tokens. The external tools and packages mentioned are industry-standard for the described use case.

  • Socket20d

    No alerts

  • Snyk20d

    Risk: LOW · No issues

Signed by skilld at 54e769e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 weeks ago
Other metadata
metadata
{
  "summary": "shadcn-vue setup with a ready theme, wrappers, charts and RTL fixes.",
  "tags": "shadcn-vue, vue, ui, tailwindcss, rtl"
}

README badge

README badge for haythamasalama/skills/shadcn-vue-kit