--- name: ck-ui-styling description: Style UIs with shadcn/ui (Radix UI + Tailwind CSS). Use for accessible components, dark mode, responsive layouts, design systems, color customization, forms with validation, and theme configuration. --- # UI Styling Beautiful, accessible UIs combining shadcn/ui components with Tailwind CSS utility styling. ## When to Use - Building UI with React-based frameworks (Next.js, Vite, Remix, Astro) - Implementing accessible components (dialogs, forms, tables, navigation) - Creating responsive, mobile-first layouts - Implementing dark mode and theme customization - Building design systems with consistent tokens ## Don't Use When - Non-React projects (Vue, Svelte — use framework-native UI libs) - Simple static HTML without a build tool - Projects already committed to a different component library ## Quick Start ```bash # Initialize shadcn/ui with Tailwind npx shadcn@latest init # Add components npx shadcn@latest add button card dialog form table ``` ## Core Stack | Layer | Tool | Purpose | |-------|------|---------| | Components | shadcn/ui (Radix UI) | Accessible, copy-paste primitives | | Styling | Tailwind CSS | Utility-first, mobile-first | | Types | TypeScript | Full type safety | ## Usage Example ```tsx import { Button } from "@/components/ui/button" import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card" export function Dashboard() { return (