tailwind · coleam00 — Claude Code rule: what it does, how to install
Defines TailwindCSS guidelines inside Remotion and blocks native CSS transitions. Activates whenever you style video components.
no license ★ 849 updated 2026-01-24
.claude/rules/tailwind.mdWhat tailwind does
This rule permits TailwindCSS utilities inside Remotion projects provided Tailwind is installed. It introduces a strict restriction against CSS transition and animation helpers, banning any transition-* and animate-* classes.
Visual movement must be driven frame by frame using the useCurrentFrame() hook. To configure styling dependencies initially, the agent must inspect https://www.remotion.dev/docs/tailwind via WebFetch.
What it helps with
- apply TailwindCSS styling to Remotion video compositions
- prevent rendering bugs triggered by
transition-*andanimate-*utilities - bind component animations strictly to the
useCurrentFrame()hook
Example prompts for the agent
- Style this Remotion video card with TailwindCSS classes
- Animate the lower third graphic using
useCurrentFrame()instead of CSS transitions
How to install tailwind
Manually: put the files in place
.claude/rules/tailwind.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/tailwind.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/tailwind.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/tailwind.mdManually: put the files in place
.clinerules/tailwind.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about tailwind
How do I install tailwind in Claude Code?
Save the rule content into .claude/rules/tailwind.md inside your repository.
Why does this rule ban animate-* and transition-* classes?
Remotion relies on deterministic, frame-by-frame rendering. State changes need the timeline index from useCurrentFrame() rather than browser CSS transition timers.
Where does the agent look for setup instructions?
It fetches setup documentation directly from https://www.remotion.dev/docs/tailwind using WebFetch.
Similar IDE rules
All IDE rules for Frontend and UI →tailwind by other authors comes first.