Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Declare tailwindcss and shadcn dependencies in @spree/dashboard-ui (#14502)
Damian Legawieceb59f05f18dc
diff --git a/.changeset/dashboard-ui-declare-css-deps.md b/.changeset/dashboard-ui-declare-css-deps.mdnew file mode 100644index 0000000000..52898f098d--- /dev/null+++ b/.changeset/dashboard-ui-declare-css-deps.md@@ -0,0 +1,5 @@+---+"@spree/dashboard-ui": patch+---++Declare the dependencies behind `styles.css` imports: `tailwindcss` as a peer (plus dev) dependency and `shadcn` as a regular dependency. Previously both were undeclared for consumers, so `@import "tailwindcss"` and `@import "shadcn/tailwind.css"` only resolved when pnpm's on-disk layout happened to allow it, failing with `Cannot apply unknown utility class` otherwise.diff --git a/packages/dashboard-ui/package.json b/packages/dashboard-ui/package.jsonindex d512d69b95..e057a94bdf 100644--- a/packages/dashboard-ui/package.json+++ b/packages/dashboard-ui/package.json@@ -48,7 +48,8 @@"react": "^19.2.6","react-dom": "^19.2.6","react-hook-form": "^7.75.0",- "react-i18next": "^17.0.8"+ "react-i18next": "^17.0.8",+ "tailwindcss": "^4.2.4"},"dependencies": {"@base-ui/react": "^1.4.1",@@ -75,6 +76,7 @@"react-colorful": "^5.7.0","react-day-picker": "^9.14.0","recharts": "^3.8.1",+ "shadcn": "^4.7.0","tailwind-merge": "^3.5.0","tw-animate-css": "^1.4.0"},@@ -82,7 +84,7 @@"@types/geojson": "^7946.0.16","@types/react": "^19.2.14","@types/react-dom": "^19.2.3",- "shadcn": "^4.7.0",+ "tailwindcss": "^4.2.4","typescript": "~6.0.3","vite": "^8.0.16"}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex b8592d4fb1..7457da5e42 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -586,6 +586,9 @@ importers:recharts:specifier: ^3.8.1version: 3.8.1(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ shadcn:+ specifier: ^4.7.0+ version: 4.7.0(@types/[email protected])([email protected])tailwind-merge:specifier: ^3.5.0version: 3.5.0@@ -602,9 +605,9 @@ importers:'@types/react-dom':specifier: ^19.2.3version: 19.2.3(@types/[email protected])- shadcn:- specifier: ^4.7.0- version: 4.7.0(@types/[email protected])([email protected])+ tailwindcss:+ specifier: ^4.2.4+ version: 4.2.4typescript:specifier: ~6.0.3version: 6.0.3