mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
chore: changelog
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
---
|
||||
title: April 2026 - Partial Preset Apply
|
||||
description: Apply only the theme or fonts from a preset while keeping your existing components.
|
||||
date: 2026-04-22
|
||||
---
|
||||
|
||||
You can now selectively apply a preset.
|
||||
|
||||
Say someone shares a preset with you and you already have your own components, but you like the theme or the fonts. Now you can apply just that.
|
||||
|
||||
Keep your components. Apply only what you want.
|
||||
|
||||
```bash
|
||||
# Apply the full preset.
|
||||
npx shadcn@latest apply --preset b2D0vQ7G4
|
||||
|
||||
# Apply only the theme.
|
||||
npx shadcn@latest apply --preset b2D0vQ7G4 --only theme
|
||||
|
||||
# Apply only the fonts.
|
||||
npx shadcn@latest apply --preset b2D0vQ7G4 --only font
|
||||
|
||||
# Apply theme and fonts.
|
||||
npx shadcn@latest apply --preset b2D0vQ7G4 --only theme,font
|
||||
```
|
||||
|
||||
The default behavior is unchanged. Running `shadcn apply --preset <preset>` still applies the full preset.
|
||||
|
||||
Partial preset apply currently supports `theme` and `font`.
|
||||
|
||||
<Button asChild size="sm">
|
||||
<Link href="/create" className="mt-6 no-underline!">
|
||||
Try a Preset
|
||||
</Link>
|
||||
</Button>
|
||||
Reference in New Issue
Block a user