@remotion/tailwind
note
This is documentation for enabling Tailwind v3.
For the Tailwind v4 version of this site, see the Tailwind v4 documentation.
This package provides utilities useful for integrating TailwindCSS with Remotion, as documented on our TailwindCSS page.
Installation
Install @remotion/tailwind as well as TailwindCSS dependencies.
- Remotion CLI
- npm
- bun
- pnpm
- yarn
npx remotion add @remotion/tailwind
This assumes you are currently using v4.0.422 of Remotion.npm i --save-exact @remotion/tailwind@4.0.422
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.422 of Remotion.pnpm i @remotion/tailwind@4.0.422
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.422 of Remotion.bun i @remotion/tailwind@4.0.422
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.422 of Remotion.yarn --exact add @remotion/tailwind@4.0.422
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().
remotion.config.tstsimport {Config } from '@remotion/cli/config';import {enableTailwind } from '@remotion/tailwind';Config .overrideWebpackConfig ((currentConfiguration ) => {returnenableTailwind (currentConfiguration );});
Then follow the remaining set up steps from the TailwindCSS page.