SkillsMar 29, 2026·1 min read

Remotion Rule: Tailwind

Remotion skill rule: Using TailwindCSS in Remotion.. Part of the official Remotion Agent Skill for programmatic video in React.

TL;DR
Remotion rule that configures TailwindCSS for programmatic video creation in React projects.
§01

What it is

This is an official Remotion agent skill rule that provides guidance for using TailwindCSS within Remotion video projects. Remotion is a framework for creating programmatic videos in React, and this rule ensures AI coding agents apply Tailwind classes correctly in the video context.

The rule is designed for developers who use both Remotion and TailwindCSS together. It activates automatically when an AI agent detects a Remotion project that has TailwindCSS installed, providing constraints and best practices specific to the video rendering environment.

§02

How it saves time or tokens

Without this rule, AI agents may generate Tailwind classes that break in Remotion's rendering pipeline. The most common mistake is using Tailwind transition and animation classes (transition-, animate-), which conflict with Remotion's frame-based animation model. This rule prevents those errors upfront, eliminating debugging time. The rule file itself is approximately 500 tokens, keeping the context window cost low while providing high-value constraints.

§03

How to use

  1. Install the Remotion skills collection:
npx skills add remotion-dev/skills
  1. The Tailwind rule activates automatically when your AI agent detects a Remotion project with TailwindCSS installed.
  1. If TailwindCSS is not yet installed in your Remotion project, the rule instructs the agent to follow the official setup guide at remotion.dev/docs/tailwind.
§04

Example

Correct way to animate with Tailwind classes in Remotion:

import { useCurrentFrame, interpolate } from 'remotion';

export const AnimatedTitle: React.FC = () => {
  const frame = useCurrentFrame();
  const opacity = interpolate(frame, [0, 30], [0, 1]);
  const translateY = interpolate(frame, [0, 30], [20, 0]);

  return (
    <div
      className="text-4xl font-bold text-white bg-blue-600 p-8 rounded-xl"
      style={{
        opacity,
        transform: `translateY(${translateY}px)`,
      }}
    >
      Hello Remotion
    </div>
  );
};
// Use Tailwind for styling (text-4xl, bg-blue-600, etc.)
// Use useCurrentFrame() for animation (NOT transition-* classes)
§05

Related on TokRepo

  • Featured workflows — Discover more AI skills and developer tools curated on TokRepo.
  • Coding tools — Browse coding tools and frameworks for AI-assisted development.
§06

Common pitfalls

  • Using Tailwind transition- or animate- classes in Remotion components causes rendering issues. Always animate using the useCurrentFrame() hook instead.
  • Forgetting to install and enable TailwindCSS in the Remotion project before using Tailwind classes results in unstyled components. Follow the official setup docs first.
  • Applying Tailwind responsive breakpoints (sm:, md:, lg:) has no effect in Remotion since videos render at a fixed resolution. Use the composition width and height for layout decisions.

Frequently Asked Questions

Why can I not use Tailwind transition classes in Remotion?+

Remotion renders video frame by frame. CSS transitions and animations operate on clock time, which does not exist in Remotion's rendering pipeline. Instead, use the useCurrentFrame() hook to calculate style values for each frame.

How do I install TailwindCSS in a Remotion project?+

Follow the official guide at remotion.dev/docs/tailwind. The setup involves installing the @remotion/tailwind package and configuring it in your Remotion project's bundler configuration.

Does this rule work with all AI coding agents?+

This rule is part of the Remotion skills collection and works with Claude Code, OpenAI Codex, and Cursor. Any AI coding agent that supports the skills add protocol can use it.

Can I use all Tailwind utility classes in Remotion?+

You can use all styling utility classes (colors, spacing, typography, flexbox, grid, borders, shadows). The only classes to avoid are transition-*, animate-*, and responsive breakpoint prefixes, which do not function in the video rendering context.

What is the Remotion AI Skill collection?+

The Remotion AI Skill is a collection of agent rules maintained by the Remotion team. It includes rules for Tailwind, transparent videos, component structure, and other Remotion-specific patterns. Install all rules with npx skills add remotion-dev/skills.

Citations (3)
🙏

Source & Thanks

Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule: tailwind

Part of the Remotion AI Skill collection on TokRepo.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets