Open demiro opened 1 year ago
Not only colors, BUT pretty much EVERYTHING.... including my main.scss (main tailwnd's css) ...instead of ADDING / MERGING
Unfortunately yes it overrides (same for others shadcn CLIs) instead of modifying the current configs, shadcn-vue CLI is good for when starting a project from scratch
Maybe we could rewrite the CLI and use Magicast
or MagicString
for modify/merging configs
For the time being, we could modify the cli to check if repo git is in clean status (all changes have been commited) and if not, exit with a warning.
Environment
Link to minimal reproduction
/
Steps to reproduce
pnpm dlx shadcn-vue@latest init
and answered these questionspnpm run dev
I am getting while loads of errors like'The
bg-primary-100/80
class does not exist. Ifbg-primary-100/80
is a custom class, make sure it is defined within a@layer
directive.'and after inspecting my tailwind.config.js, my custom theme colors were not there
Describe the bug
installation overrides the tailwind.config.js instead of add / merge
Expected behavior
my previous settings to still be there
Conext & Screenshots (if applicable)
No response