Skip to content

🎥 Make videos programmatically with React

gotcha

JonnyBurgerec6dfba9ce41
diff --git a/packages/convert/app/tailwind.css b/packages/convert/app/tailwind.css
index 872cf644b7..e8a1e8bf04 100644
--- a/packages/convert/app/tailwind.css
+++ b/packages/convert/app/tailwind.css
@@ -1,5 +1,5 @@
@import 'tailwindcss';
-@source "../node_modules/@remotion/design/dist";
+@import '@remotion/design/register';
@plugin 'tailwindcss-animate';
diff --git a/packages/design/index.css b/packages/design/index.css
new file mode 100644
index 0000000000..0b459e7813
--- /dev/null
+++ b/packages/design/index.css
@@ -0,0 +1 @@
+@source "./dist/esm/index.mjs";
diff --git a/packages/design/package.json b/packages/design/package.json
index d879f7ab30..d62d134fa9 100644
--- a/packages/design/package.json
+++ b/packages/design/package.json
@@ -50,6 +50,7 @@
"import": "./dist/esm/index.mjs"
},
"./package.json": "./package.json",
+ "./register": "./index.css",
"./tailwind.css": "./dist/esm/index.css"
},
"description": "3D design components for Remotion"
diff --git a/packages/promo-pages/src/index.css b/packages/promo-pages/src/index.css
index 71793fb7d2..a3fd4f58d6 100644
--- a/packages/promo-pages/src/index.css
+++ b/packages/promo-pages/src/index.css
@@ -1,7 +1,7 @@
@import 'tailwindcss/theme' layer(theme);
@import 'tailwindcss/utilities' layer(utilities);
@import './fonts.css';
-@source "../node_modules/@remotion/design/dist";
+@import '@remotion/design/register';
@layer theme, base, components, utilities;