Skip to content

🎥 Make videos programmatically with React

fix: update other parts to consider next-tailwind

Mohit Yadav76fb8d5b3363
diff --git a/packages/create-video/src/pkg-managers.ts b/packages/create-video/src/pkg-managers.ts
index 6a680a5abb..cc22c09045 100644
--- a/packages/create-video/src/pkg-managers.ts
+++ b/packages/create-video/src/pkg-managers.ts
@@ -133,6 +133,7 @@ export const getDevCommand = (manager: PackageManager, template: Template) => {
if (
template.cliId === 'remix' ||
template.cliId === 'next' ||
+ template.cliId === 'next-tailwind' ||
template.cliId === 'next-pages-dir'
) {
return `${getRunCommand(manager)} dev`;
diff --git a/packages/docs/docs/player/index.md b/packages/docs/docs/player/index.md
index 61a5431e4b..a38cf4ad07 100644
--- a/packages/docs/docs/player/index.md
+++ b/packages/docs/docs/player/index.md
@@ -13,6 +13,7 @@ Using the Remotion Player you can embed Remotion videos in any React app and cus
The following templates include the Player and Lambda rendering and are a good starting point for building a video app:
- [Next.js (App dir)](/templates/next)
+- [Next.js (App dir + TailwindCSS)](/templates/next-tailwind)
- [Next.js (Pages dir)](/templates/next-pages-dir)
- [Remix](/templates/remix)
diff --git a/packages/docs/docs/player/player-integration.md b/packages/docs/docs/player/player-integration.md
index 119c711deb..6974e893eb 100644
--- a/packages/docs/docs/player/player-integration.md
+++ b/packages/docs/docs/player/player-integration.md
@@ -19,6 +19,7 @@ Remotion and your React app use a different Webpack config. Therefore, if you wa
Use one of our starter templates:
- [Next.js (App dir)](/templates/next)
+- [Next.js (App dir + TailwindCSS)](/templates/next-tailwind)
- [Next.js (Pages dir)](/templates/next-pages-dir)
- [Remix](/templates/remix)
diff --git a/packages/docs/src/components/IconForTemplate.tsx b/packages/docs/src/components/IconForTemplate.tsx
index be3bde6501..637793ae28 100644
--- a/packages/docs/src/components/IconForTemplate.tsx
+++ b/packages/docs/src/components/IconForTemplate.tsx
@@ -134,7 +134,11 @@ export const IconForTemplate: React.FC<{
return <OverlayIcon style={{ height: scale * 42 }} />;
}
- if (template.cliId === "next" || template.cliId === "next-pages-dir") {
+ if (
+ template.cliId === "next" ||
+ template.cliId === "next-tailwind" ||
+ template.cliId === "next-pages-dir"
+ ) {
return <NextIcon style={{ height: scale * 36 }} />;
}
diff --git a/packages/docs/src/remotion/Template.tsx b/packages/docs/src/remotion/Template.tsx
index 8c7353735f..c5ce9a9e06 100644
--- a/packages/docs/src/remotion/Template.tsx
+++ b/packages/docs/src/remotion/Template.tsx
@@ -68,6 +68,7 @@ export const TemplateComp: React.FC<{
}}
>
{template.cliId === "next" ||
+ template.cliId === "next-tailwind" ||
template.cliId === "next-pages-dir" ? null : (
<>
<IconForTemplate scale={1.6} template={template} />{" "}