--- description: Adapt Shadcn/Tailark imports to Amin Rayan design system — never ship vendor styles as-is globs: components/**/*.tsx,components/ui/**/*.tsx alwaysApply: false --- # Shadcn / Tailark Adaptation Rules Any imported or regenerated Shadcn UI / Tailark / marketing block MUST be adapted to this project before it is considered done. See `docs/design-system/shadcn.md`. ## Always - Replace vendor containers (`container`, `max-w-5xl`, foreign `px-*`) with `` / `layout.container`. - Apply `layout.sectionY` on the outer section (plus `section-shell` / `bg-section-*` when appropriate). - Remap colors to semantic tokens (`primary`, `background`, `foreground`, `muted-foreground`, `border`, …). - Remap headings/body to `type.*` / ``. - Wire CTAs through `@/components/ui/button`. - Prefer `@/components/ui/card` for card-like panels. - Align radius/shadow/hover/transition with existing primitives. - Verify light and dark themes. - Verify alignment against header/footer. - Keep Radix accessibility behaviors intact. ## Never allow - Random spacing, colors, typography, containers, or shadows from the vendor example. - Purple / indigo / zinc marketing palettes left in place. - Parallel button CSS or unstyled native buttons for primary CTAs. - Nested competing max-width shells. - New global CSS files for a single imported block without necessity. - Shipping the block “to restyle later.” ## Transform sketch ```tsx // Vendor → Project // max-w-5xl px-4 py-24 → inside section with layout.sectionY // bg-indigo-600 button →