22 lines
729 B
Plaintext
22 lines
729 B
Plaintext
---
|
|
title: April 2026 - shadcn apply
|
|
description: Switch presets in existing projects without starting over.
|
|
date: 2026-04-08
|
|
---
|
|
|
|
We added `shadcn apply` so you can switch presets in an existing project without starting over.
|
|
|
|
When you run `npx shadcn@latest apply` in an existing project, we apply a new preset, reinstall your existing components, and update your theme, colors, CSS variables, fonts, and icons.
|
|
|
|
```bash
|
|
npx shadcn@latest apply --preset b2D0vQ7G4
|
|
```
|
|
|
|
The CLI keeps the current base and RTL settings from your existing project, even when the preset URL was generated with different values.
|
|
|
|
<Button asChild size="sm">
|
|
<Link href="/create" className="mt-6 no-underline!">
|
|
Try a Preset
|
|
</Link>
|
|
</Button>
|