Description
unocss-preset-shadcn lets you use shadcn/ui components with UnoCSS in place of Tailwind CSS. It works with shadcn/ui, shadcn-vue, shadcn-svelte and SolidUI. Starting from version 1.0 it supports the Wind 4 preset by default, and a legacy import is available for projects still on Wind 3. The setup guide asks you to follow the official shadcn guide, replace the Tailwind step with UnoCSS, install the Tailwind Browser Style Reset, and then install unocss-preset-shadcn and unocss-preset-animations, updating your unocss config file. The README also lists the dependencies to install for each framework, copies a utils file into your source folder, and adds a components.json or ui.config.json file. It warns that you should not run the shadcn init commands, because those would set up Tailwind again. The theme can be customized, and the README has a Dynamic Theme section. The package is published on npm, and the repository is in the unocss-community organisation.…
Highlights
- Use shadcn/ui components with UnoCSS
- Works with shadcn-vue, shadcn-svelte and SolidUI
- Wind 4 preset by default, Wind 3 via legacy import
- Customizable theme and dynamic theme section
- Setup steps for each framework
Ratings & Reviews
No ratings yet
Be the first to rate unocss-preset-shadcn.
People also visit
unocss-preset-shadcn FAQ
What does unocss-preset-shadcn do?
It lets you use shadcn/ui components with UnoCSS instead of Tailwind CSS.
Which frameworks does it support?
shadcn/ui for React, shadcn-vue, shadcn-svelte and SolidUI.
Does it need Tailwind?
No. The setup replaces the Tailwind step with UnoCSS and installs the Tailwind Browser Style Reset.
Can I use Tailwind v3 presets?
Yes, through the unocss-preset-shadcn/v3 import, which the README calls the legacy preset.
What are the best unocss-preset-shadcn alternatives?
Popular alternatives to unocss-preset-shadcn include shadcn/ui, @shadcn/ui and Solid (shadcn-solid). See all unocss-preset-shadcn alternatives










