Loading tutorials
npx shadcn@latest init so that @/lib/utils exists in your project.3 min readcn helper. It also assumes you can read Tailwind utility classes.2 min readnpx shadcn@latest init and that your project uses Tailwind CSS. The examples use the Tailwind v3 setup, where colors are stored as HSL channels. Newer templates may use oklch values, but the structure is the same.2 min readButton and cn code from earlier chapters. It also assumes you know that forwardRef passes a ref to a DOM element, and that you know how props spread with {...props}.2 min readButton from the previous chapters: cva variants, the cn helper, and asChild. You should also know basic Tailwind and TypeScript.2 min readcn and variant patterns from earlier chapters. You will connect a Zod schema to React Hook Form, so the schema is the single source of validation rules and the form's TypeScript types.2 min readasChild usage, and edits to copied components can still break it. Tests catch that.2 min readnpx shadcn@latest init, added components with the CLI, and edited at least one of them. It also assumes you use Git.2 min read