@remotion/tailwind-v4
This package provides utilities useful for integrating TailwindCSS v4 with Remotion, as documented on our TailwindCSS page.
Installation
Install @remotion/tailwind-v4 as well as TailwindCSS dependencies.
- Remotion CLI
- npm
- bun
- pnpm
- yarn
npx remotion add @remotion/tailwind-v4
This assumes you are currently using v4.0.425 of Remotion.npm i --save-exact @remotion/tailwind-v4@4.0.425
Also update
remotion and all `@remotion/*` packages to the same version.Remove all
^ character in front of the version numbers of it as it can lead to a version conflict.This assumes you are currently using v4.0.425 of Remotion.pnpm i @remotion/tailwind-v4@4.0.425
Also update
remotion and all `@remotion/*` packages to the same version.Remove all
^ character in front of the version numbers of it as it can lead to a version conflict.This assumes you are currently using v4.0.425 of Remotion.bun i @remotion/tailwind-v4@4.0.425
Also update
remotion and all `@remotion/*` packages to the same version.Remove all
^ character in front of the version numbers of it as it can lead to a version conflict.This assumes you are currently using v4.0.425 of Remotion.yarn --exact add @remotion/tailwind-v4@4.0.425
Also update
remotion and all `@remotion/*` packages to the same version.Remove all
^ character in front of the version numbers of it as it can lead to a version conflict.Override the Webpack config by using enableTailwind().
import {Config } from '@remotion/cli/config';
import {enableTailwind } from '@remotion/tailwind-v4';
Config .overrideWebpackConfig ((currentConfiguration ) => {
return enableTailwind (currentConfiguration );
});Then follow the remaining set up steps from the TailwindCSS page.