Idea Set

Rough-to-finished text for Remotion: two ruled lines rise in light italic, switch typeface letter by letter, and one phrase turns the accent color.

In Remotion, Idea Set is a two-line rough-to-finished beat: both ruled lines rise in light italic, then switch typeface letter by letter, first to mono and then to sans, and one phrase turns the accent color. Use it when the second line is the payoff, such as "Napkin sketch." to "Keynote opener.".

Installation
$ pnpm dlx shadcn@latest add @remocn/idea-set

How to build this in Remotion

You don't need per-letter springs and two loadFont() calls of your own. Install the component:

bash
npx shadcn@latest add @remocn/idea-set

Each line rises out of an overflow: hidden mask with interpolate() and Easing, then a per-letter wave from timeline.ts swaps the glyphs to mono and on to sans. Line widths are measured on a canvas while delayRender() holds the first frame.

Good to know

  • Length: 106 frames of motion at 30 fps (212 at 60 fps) with the default props. The demo plays 150 frames, which adds a hold: frames past the end of the motion hold the final frame. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Fonts: loads IBM Plex Sans (regular and italic) and IBM Plex Mono itself through @remotion/google-fonts. Pass fontFamily to use your own sans, and load that font in your project.
  • highlight is matched as text inside the lines (its first occurrence), so it can cover only part of a line.

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { IdeaSet } from "@/components/remocn/idea-set";
 
const IdeaSetScene = () => <IdeaSet lines={["Rough cut.", "Launch day."]} highlight="Launch day." />;
 
export const RemotionRoot = () => (
  <Composition
    id="IdeaSet"
    component={IdeaSetScene}
    durationInFrames={300}
    fps={60}
    width={1280}
    height={720}
  />
);

Each line rises out of a mask above a hairline rule in light italic. After hold frames the glyphs flip one by one to mono, then to medium sans, and the highlight phrase takes the accent color. Pass your own lines, and set highlight to text that appears in them. It ships light and dark.

Props12

PropTypeDefault
lines
string[]["Napkin sketch.", "Keynote opener."]

Lines of text, each set on its own ruled row.

highlight
string"Keynote opener."

Phrase that turns accent-colored in the final typeface; must match line text.

hold
number18

Frames to rest between each typeface change.

wave
number26

Frames each change of style takes to sweep across the text.

accent
string—

Accent color; overrides the theme accent.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"IBM Plex Sans"

Typeface for the copy. IBM Plex Sans loads by default; load any other face 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 speed multiplier for the whole timeline.

theme
"dark" | "light""dark"

Light or dark palette.

  • linesstring[]

    Lines of text, each set on its own ruled row.

    Default["Napkin sketch.", "Keynote opener."]

  • highlightstring

    Phrase that turns accent-colored in the final typeface; must match line text.

    Default"Keynote opener."

  • holdnumber

    Frames to rest between each typeface change.

    Default18

  • wavenumber

    Frames each change of style takes to sweep across the text.

    Default26

  • accentstring

    Accent color; overrides the theme accent.

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. IBM Plex Sans loads by default; load any other face in your project first.

    Default"IBM Plex Sans"

  • 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 speed multiplier for the whole timeline.

    Default1

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"

Common questions

How do I make two ruled lines rise in light italic, switch typeface letter by letter and turn one phrase the accent color?

Install Idea Set with npx shadcn@latest add @remocn/idea-set, pass lines and set highlight to text that appears in them.

Can the highlight cover only part of a line?

Yes. Any text that appears in the lines works; the first match is colored.

How long is it?

106 frames at 30 fps (212 at 60 fps); the demo plays 150 to hold the result.

  • Mono Voice: one line changes voice mid-line without rules.
  • Mask Reveal Up: lines rise from a mask and hold.
  • Diff Swap: an old line is rewritten into a new one like a code diff.
  • Mono Settle: two mono lines settle into proportional type.