Skip to main content

@remotion/tailwind-v4

此软件包提供了用于将 TailwindCSS v4 与 Remotion 集成的实用工具,具体如我们在 TailwindCSS 页面中所述。

🌐 This package provides utilities useful for integrating TailwindCSS v4 with Remotion, as documented on our TailwindCSS page.

安装

🌐 Installation

安装 @remotion/tailwind-v4 以及 TailwindCSS 依赖。

🌐 Install @remotion/tailwind-v4 as well as TailwindCSS dependencies.

npx remotion add @remotion/tailwind-v4

通过使用 enableTailwind()覆盖 Webpack 配置

remotion.config.ts
import {Config} from '@remotion/cli/config'; import {enableTailwind} from '@remotion/tailwind-v4'; Config.overrideWebpackConfig((currentConfiguration) => { return enableTailwind(currentConfiguration); });

然后按照 TailwindCSS 页面上的其余设置步骤操作。

🌐 Then follow the remaining set up steps from the TailwindCSS page.

应用接口

🌐 APIs