Skip to content

🎥 Make videos programmatically with React

fix(create-video): skip Tailwind in documented installation

Jonny Burgeraea13b4aafc1
diff --git a/packages/create-video/src/patch-package-json.ts b/packages/create-video/src/patch-package-json.ts
index 48b89622c5..afd8a481b0 100644
--- a/packages/create-video/src/patch-package-json.ts
+++ b/packages/create-video/src/patch-package-json.ts
@@ -76,6 +76,7 @@ export const patchPackageJson = (
dependencies: newDependenciesWithTailwind,
devDependencies: newDevDependencies,
scripts: newScripts,
+ ...(addTailwind ? {sideEffects: ['*.css']} : {}),
},
undefined,
2,
diff --git a/packages/create-video/src/select-template.ts b/packages/create-video/src/select-template.ts
index a4dfcbeaae..f20a6fe9f7 100644
--- a/packages/create-video/src/select-template.ts
+++ b/packages/create-video/src/select-template.ts
@@ -11,6 +11,7 @@ type Options = {
tmp: boolean;
yes: boolean;
'no-tailwind': boolean;
+ tailwind: boolean | undefined;
help: boolean;
};
@@ -30,7 +31,7 @@ export const isTmpFlagSelected = () => parsed.tmp;
export const isYesFlagSelected = () => parsed.yes;
-export const isNoTailwindFlagSelected = () => parsed['no-tailwind'];
+export const isNoTailwindFlagSelected = () => parsed.tailwind === false;
export const isHelpFlagSelected = () => parsed.help;
diff --git a/packages/docs/docs/ai/coding-agents.mdx b/packages/docs/docs/ai/coding-agents.mdx
index bf82a06156..555b6cca03 100644
--- a/packages/docs/docs/ai/coding-agents.mdx
+++ b/packages/docs/docs/ai/coding-agents.mdx
@@ -22,10 +22,10 @@ Most coding agents require a paid subscription.
Create a new project using the following command:
```bash
-npx create-video --yes --blank my-video
+npx create-video --yes --blank --no-tailwind my-video
```
-This creates a [Blank](https://remotion.dev/templates/blank) project in the `my-video` directory.
+This creates a [Blank](https://remotion.dev/templates/blank) project in the `my-video` directory without TailwindCSS.
## Start the preview
diff --git a/packages/docs/docs/getting-started.mdx b/packages/docs/docs/getting-started.mdx
index b495c026e2..1ebb4ca697 100644
--- a/packages/docs/docs/getting-started.mdx
+++ b/packages/docs/docs/getting-started.mdx
@@ -26,14 +26,14 @@ Paste into a coding agent, such as Claude Code, Codex or OpenCode:
## From the command line
```sh
-npx create-video@latest --yes --blank my-video
+npx create-video@latest --yes --blank --no-tailwind my-video
cd my-video
npm i
npx remotion skills add
npm run dev
```
-Creates a video in the `my-video` directory, with TailwindCSS, blank template and [Agent Skills](/docs/ai/skills).
+Creates a video in the `my-video` directory using the blank template and [Agent Skills](/docs/ai/skills), without TailwindCSS.
Planning to prompt a video using a coding agent?
Click [here](/docs/ai/coding-agents) for more detailed beginner instructions.