Guides building accessible, customizable UI with shadcn/ui as a code generation platform (not an npm dependency). Components are copied into your project via the CLI and fully owned. Supports Radix UI or Base UI primitives, Tailwind CSS 4 with oklch color tokens, React 19 direct ref patterns, and type-safe form validation with the Field component and Zod.
When to use: Adding shadcn/ui components, theming with CSS variables and oklch colors, building forms with React Hook Form or TanStack Form, creating custom registries, composing accessible component variants, setting up dark mode.
When NOT to use: Non-React frameworks (use shadcn-vue or shadcn-svelte instead), projects using a different component library (MUI, Chakra), projects not using Tailwind CSS.
ينشئ مكتبات مكونات يمكن الوصول إليها وقابلة للتخصيص باستخدام shadcn/ui مع Radix UI أو Base UI وTailwind CSS 4 وReact 19. ويغطي ملكية المكونات وموضوعات oklch CSS والنماذج الآمنة من النوع مع Field وZod وسير عمل CLI وأنماط التسجيل. يُستخدم عند إضافة مكونات shadcn/ui، أو تكوين السمات، أو إنشاء النماذج باستخدام Zod، أو إنشاء سجلات مخصصة، أو إنشاء متغيرات مكونات يمكن الوصول إليها. يستخدم لـ shadcn CLI، والوضع المظلم، ومتغيرات المكونات، والتحقق من صحة النموذج. المصدر: oakoss/agent-skills.