Prompt Restyle

A headline is restyled by prompt instructions, ending in a serif italic gradient 'you own'. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/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={320}
    fps={60}
    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.

Props13

PropTypeDefault
headline
string"Launch videos from parts you own."

The headline that gets restyled.

highlight
string"you own"

Phrase set in serif italic gradient at the end.

instructions
string[]—

Instruction lines typed in order; the last styles the highlight.

stepGap
number20

Frames between one instruction landing and the next one being typed.

accent
string"#3B5BFD"

Accent colour (any CSS colour).

ink
string—

Final headline color; overrides the theme ink.

background
string—

Overrides the theme background colour.

fontFamily
string"Geist"

Typeface for the copy. Load the font in your project first.

accentFont
string"Instrument Serif"

Italic typeface the highlight turns into. Load the font in your project first.

scale
number1

Size of the foreground around the frame's center; the background stays put.

delay
number0

Frames to hold the first frame before anything moves.

speed
number1

Playback multiplier; above 1 plays faster.

theme
"dark" | "light""dark"

Colour scheme; ships light and dark.

  • headlinestring

    The headline that gets restyled.

    Default"Launch videos from parts you own."

  • highlightstring

    Phrase set in serif italic gradient at the end.

    Default"you own"

  • instructionsstring[]

    Instruction lines typed in order; the last styles the highlight.

  • stepGapnumber

    Frames between one instruction landing and the next one being typed.

    Default20

  • accentstring

    Accent colour (any CSS colour).

    Default"#3B5BFD"

  • inkstring

    Final headline color; overrides the theme ink.

  • backgroundstring

    Overrides the theme background colour.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Geist"

  • accentFontstring

    Italic typeface the highlight turns into. Load the font in your project first.

    Default"Instrument Serif"

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback multiplier; above 1 plays faster.

    Default1

  • theme"dark" | "light"

    Colour scheme; ships light and dark.

    Default"dark"