Skip to content

Commit c92e0b2

Browse files
fix(dashboard): Import vendored shadcn CSS from design-tokens
The dashboard stylesheet imported "shadcn/tailwind.css", but shadcn was never a declared dependency — it only reached the dashboard transitively via @vendure-io/design-tokens. Version 2.0.0-beta.8 of design-tokens dropped that dependency, so any install resolving the ^2.0.0-beta.7 range forward lost the package entirely and the stylesheet failed to build. design-tokens 2.0.0-beta.9 vendors the same CSS and exposes it as ./css/shadcn, so import it from there and raise the minimum to beta.9.
1 parent f119a4a commit c92e0b2

3 files changed

Lines changed: 9 additions & 25 deletions

File tree

bun.lock

Lines changed: 7 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"@types/react": "^19.2.14",
9797
"@types/react-dom": "^19.0.4",
9898
"@uidotdev/usehooks": "^2.4.1",
99-
"@vendure-io/design-tokens": "^2.0.0-beta.7",
99+
"@vendure-io/design-tokens": "^2.0.0-beta.9",
100100
"@vendure-io/ui": "^2.0.0-beta.16",
101101
"@vitejs/plugin-react": "^5.2.0",
102102
"acorn": "^8.16.0",

packages/dashboard/src/app/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import '@vendure-io/design-tokens/css/fonts';
22
@import 'tailwindcss';
33
@import 'tw-animate-css';
4-
@import "shadcn/tailwind.css";
4+
@import '@vendure-io/design-tokens/css/shadcn';
55

66
html[dir="rtl"] * {
77
direction: rtl;

0 commit comments

Comments
 (0)