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

Use when starting or building the front end of a Laravel app with Inertia, Vue 3, TypeScript and Tailwind 4 (usually with shadcn-vue) — a blueprint for a new project (the resources/js folder map, app.ts and layouts, the flash toast listener, translations, appearance, direction sync, shared prop types, a copy-ready app.css) and the house components (PageHeader, DataTable, RowActions, ConfirmAction, FormField, DetailCard, StatusBadge, EmptyState) plus the rules for pages, typed props and shared props, useForm with zod and Form Request validation, Wayfinder routes, lists with server-side filters and pagination, record pages, deletes and confirm dialogs, toasts, status badges, on-screen copy, tokens and dark mode, icons and motion, and Arabic/English with RTL. Trigger for work under resources/js, anything a controller renders with Inertia::render, a page that loses state or reloads fully, a status colour, an arrow pointing the wrong way in Arabic, or a new UI library. Also triggers on "Laravel Inertia Vue", "Inertia + Vue", "Laravel Vue starter kit". Arabic triggers: «لارافيل فيو إنيرشا», «فيو مع إنيرشا», «مشروع جديد», «صفحة جديدة», «نموذج إدخال», «جدول وفلاتر», «اتجاه RTL», «الوضع الغامق».

Use this Skill: https://skilld.dev/gh/haythamasalama/skills/laravel-inertia-vue

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referencestheme.md

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

Theme

Read when: reaching for a colour, a radius, a font, a shadow, a card or shell style, or anything about dark mode; or after running shadcn-vue add. Owns: the token rules, the stylesheet in assets/app.css, the palette, radius, the shell and card look, fonts, dark mode, the unlayered overrides, and the shadcn-vue add stylesheet warning.

TL;DR

  • Start from assets/app.css: copy it to resources/css/app.css. It holds every token, the fonts, and the overrides below.
  • Never write a colour. Semantic tokens only, because each is redefined under .dark.
  • A shade in between is an alpha of a token (bg-primary/80), never a new colour.
  • Change a token in :root and .dark; nowhere else.
  • After every shadcn-vue add, read git diff on the stylesheet and put back what it dropped.

The registry setup

components.json (checked 2026-11-03):

{ "style": "reka-nova", "tailwind": { "baseColor": "neutral", "cssVariables": true }, "iconLibrary": "lucide", "rtl": true }

rtl: true makes the CLI write logical properties into components/ui/. Set it before the first add; switching later means re-adding every component.

Tokens

You mean Write
page background bg-background
body text text-foreground
a panel bg-card text-card-foreground
a quiet caption text-muted-foreground
a quiet fill, a table head bg-muted
the main action bg-primary text-primary-foreground
a second action bg-secondary text-secondary-foreground
hover on a neutral surface bg-accent
danger text-destructive, bg-destructive/10
a status tone text-success, text-warning, text-info with a /12 fill (through StatusBadge)
a hairline border (it resolves to border-border)
a focus ring ring-ring/50

No bg-blue-500, no #1f2937, no bg-[#…]. If a token for what you need does not seem to exist, you are usually reaching for the wrong token. Check every new surface in light and dark before calling it done.

The palette

  • Neutral, black and white. --primary is near-black in light and near-white in dark, and it marks only the main action, the active nav row and the focus ring, so nothing else competes for attention.
  • Three status hues (--success, --warning, --info) plus --destructive, each lifted in dark mode so the same chip stays legible on both. Nothing else reaches for a hue.
  • The chart ramp (--chart-1 … --chart-5) is five steps of one warm hue, defined in :root and again in .dark, so a series reads on both themes. One series uses var(--chart-1).
  • A brand accent, if the app has one, replaces --primary (and --ring) in both blocks; keep it deeper in light than in dark so --primary-foreground can invert with it.

Radius, cards and surfaces

  • One knob: --radius: 0.625rem; --radius-sm/md/lg/xl derive from it. Write rounded-lg, never a pixel value, or that corner stops following the knob.
  • A card is the registry's: rounded-xl bg-card ring-1 ring-foreground/10, py-4 gap-4, text-sm. A card that holds a table drops its padding (class="py-0").
  • A table head sits on bg-muted, and its row has no hover (hover:bg-transparent).
  • A sensitive card (DangerZone) is ring-destructive/25 with a bg-destructive/5 footer.
  • No border plus shadow-md stacks on surfaces: the ring is the edge.

The shell

<Sidebar collapsible="icon" variant="inset"> makes the page a rounded panel floating on the shell, entirely from the vendored sidebar; never rebuild it by hand. It reads as floating only while --sidebar stays darker than --card: with inset, the wrapper takes bg-sidebar and the panel bg-background. In light mode that is --sidebar: oklch(0.968 0 0), a step below white; the dark values already invert it.

The rest of the shell's values (header h-16 border-b px-4, content flex flex-1 flex-col gap-4 p-4, the toaster) are in blueprint.md.

Fonts

One design in two scripts, so Latin inside an Arabic line sits on the same skeleton: Noto Sans and Noto Sans Arabic.

@theme {
    --font-sans: 'Noto Sans', 'Noto Sans Arabic', sans-serif;
}

:root[lang='ar'] {
    --font-sans: 'Noto Sans Arabic', 'Noto Sans', sans-serif;
}
  • --font-sans lives in a plain @theme, not @theme inline. inline bakes the literal into the font-sans utility, which freezes the Latin stack onto every element, and the [lang='ar'] override never reaches it.
  • Arabic is never tracked. letter-spacing breaks the joins between letters, so the stylesheet resets it under [lang='ar']. Arabic has no case, so uppercase does nothing there.
  • Line height stays generous (Tailwind's defaults or taller) on any text that can be Arabic: letters reach far below the baseline, and a tight line box with truncate or a fixed-height control cuts them.

Dark mode

.dark on <html>, set by useAppearance() (light · dark · system) and written by the server from the appearance cookie for the first paint. You write no dark: colour utilities: the token swap does it. dark: is only for the rare case where a whole treatment changes, and then the fix is usually a token with a dark value, not a class.

Unlayered overrides

Tailwind's utilities live in a cascade layer, and an unlayered rule beats any layered one whatever its specificity. The few overrides that must win over the registry or a third-party stylesheet sit unlayered at the foot of app.css:

  1. vue-sonner's font. Its stylesheet sets its own font stack and is imported unlayered, so a font-sans class on <Toaster> loses. The override puts toasts back on --font-sans.
  2. Registry direction gaps (sheet edge, alert-dialog header alignment, switch thumb), explained in rtl-and-bidi.md.
  3. Arabic letter-spacing, as above.

Changing a token

Edit :root and .dark in app.css. Nothing else: not a component, not a page.

shadcn-vue add rewrites the stylesheet. Each install can re-emit the font import (dropping the Arabic face from the stack), append its own @layer base (duplicating the base rules), or add CSS variables. Read git diff resources/css/app.css after every add and put back what it took.

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

    This skill is a development blueprint for building Laravel, Inertia.js, and Vue 3 applications. It provides high-quality architectural guidelines, reusable component templates, and best practices for form handling, validation, and accessibility. No malicious behavior or security risks were identified.

  • 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": "A ready blueprint for Laravel, Inertia.js and Vue 3 front ends.",
  "tags": "inertia, laravel, vue, vue3, typescript"
}

README badge

README badge for haythamasalama/skills/laravel-inertia-vue