Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
---
title: Prompt Restyle
description: "A headline is restyled by prompt instructions, ending in a serif italic gradient 'you own'"
component: prompt-restyle
vibe: premium
length: 130
useWhen:
- "A beat showing how an AI prompt reshapes copy: typed instructions that make a headline bigger, tighter and styled."
- "A product video for a design or editing tool where the headline visibly responds to commands."
avoidWhen:
- "You want a plain typed headline without the instruction chrome — use `typewriter`."
- "The headline should simply swap words, not be restyled — use `strikethrough-replace`."
askedAs:
- "ai prompt changes the headline"
- "typed instructions restyle text"
- "I want to show a prompt making a headline bigger and tighter and then a serif result"
- "demo of an AI editing copy style from typed commands"
- "show how asking in plain words reshapes the title, ending in a gradient italic"
- "a moment where the viewer understands they can direct the design just by typing"
---
<ComponentPreview name="prompt-restyle" />
<InstallBlock name="prompt-restyle" />
## Usage
```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { PromptRestyle } from "@/components/remocn/prompt-restyle";
const PromptRestyleScene = () => (
<PromptRestyle headline="Launch videos from parts you own." highlight="you own" />
);
export const RemotionRoot = () => (
<Composition
id="PromptRestyle"
component={PromptRestyleScene}
durationInFrames={160}
fps={30}
width={1280}
height={720}
/>
);
```
Small instruction lines are typed one after another, and after each the headline changes size, tracking and style, ending with the highlight phrase in a serif italic gradient. Pass `headline`, `highlight` and your own `instructions` (up to three); it ships light and dark.
<PropsTable title="Props"
rows={[
{
name: "headline",
type: "string",
default: "\"Launch videos from parts you own.\"",
description: "The headline that gets restyled.",
},
{
name: "highlight",
type: "string",
default: "\"you own\"",
description: "Phrase set in serif italic gradient at the end.",
},
{
name: "instructions",
type: "string[]",
description: "Instruction lines typed in order; the last styles the highlight.",
},
{
name: "accent",
type: "string",
default: "\"#3B5BFD\"",
description: "Accent colour (any CSS colour).",
},
{
name: "background",
type: "string",
description: "Overrides the theme background colour.",
},
{
name: "speed",
type: "number",
default: "1",
description: "Playback multiplier; above 1 plays faster.",
},
{
name: "theme",
type: "\"dark\" | \"light\"",
default: "\"dark\"",
description: "Colour scheme; ships light and dark.",
},
]}
/>