Bokeh Title

A serif headline sharpens out of drifting bokeh lights that first form a pattern. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/bokeh-title

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { BokehTitle } from "@/components/remocn/bokeh-title";
 
const BokehTitleScene = () => (
  <BokehTitle
    title="Launch films, made in code"
    subtitle="remocn · Spring release"
    pattern="grid"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="BokehTitle"
    component={BokehTitleScene}
    durationInFrames={380}
    fps={60}
    width={1280}
    height={720}
  />
);

Out-of-focus bokeh lights drift, a focus pull snaps them into a mark or grid pattern, then they defocus again as the serif title and subtitle resolve. Pass title and subtitle (split on ' · ' for a lead and a tail) and choose pattern and shape; it ships light and dark through theme.

Props16

PropTypeDefault
title
string"Launch films, made in code"

Serif headline that resolves from the bokeh

subtitle
string"remocn · Spring release"

Line under the title; ' · ' splits a lead from the rest

pattern
"mark" | "grid""mark"

Arrangement the lights snap into: mark or grid

shape
"circle" | "hexagon""circle"

Shape of each bokeh light: circle or hexagon

hold
number24

Frames the pattern stays sharp before focus racks back to the title.

ambient
number24

Number of out-of-focus lights drifting in front of the pattern.

accent
string"#3B5BFD"

Accent color (any valid CSS color)

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Instrument Serif"

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

logo
React.ReactNode—

Replaces the remocn mark.

grain
booleantrue

Film grain over the scene.

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

theme
"dark" | "light""dark"

Ships light and dark palettes

  • titlestring

    Serif headline that resolves from the bokeh

    Default"Launch films, made in code"

  • subtitlestring

    Line under the title; ' · ' splits a lead from the rest

    Default"remocn · Spring release"

  • pattern"mark" | "grid"

    Arrangement the lights snap into: mark or grid

    Default"mark"

  • shape"circle" | "hexagon"

    Shape of each bokeh light: circle or hexagon

    Default"circle"

  • holdnumber

    Frames the pattern stays sharp before focus racks back to the title.

    Default24

  • ambientnumber

    Number of out-of-focus lights drifting in front of the pattern.

    Default24

  • accentstring

    Accent color (any valid CSS color)

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Instrument Serif"

  • logoReact.ReactNode

    Replaces the remocn mark.

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • 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

    Default1

  • theme"dark" | "light"

    Ships light and dark palettes

    Default"dark"