fix(init,readme): component imports follow the project aliases, cn patch takes double quotes
This commit is contained in:
1 parent
35cb8a2914
commit
1f1b83ed49
2 files changed
+24
-6
No files matched your search
@@ -14,7 +14,8 @@ npx git+https://git.kotikot.com/lib/claddcn-svelte.git init --strip-vars
|
||||
1. copies `claddcn.css` next to your Tailwind entry and `@import`s it;
|
||||
2. `--strip-vars` removes your old `:root` / `.dark` / `@theme inline` token blocks
|
||||
(claddcn defines every shadcn token, and blocks after the import would win);
|
||||
3. overwrites `$lib/components/ui/*` with the cladd versions and backs up the old
|
||||
3. overwrites the `ui` alias from `components.json` with the cladd versions, imports
|
||||
rewritten to your aliases (`$lib` or the SvelteKit 3 `#lib`), and backs up the old
|
||||
files to `.claddcn-backup/<timestamp>/`;
|
||||
4. extends `cn()` so tailwind-merge understands `text-cladd-xs`, `h-cladd-md`, etc.;
|
||||
5. installs `@fontsource-variable/geist` and `geist-mono`, using bun, pnpm, yarn or npm.
|
||||
|
||||
Reference in new issue
Block a user