Hatch Shade

A serif number is shaded in with pen-drawn hatch lines in three passes, then outlined and captioned. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/hatch-shade

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { HatchShade } from "@/components/remocn/hatch-shade";
 
const HatchShadeScene = () => <HatchShade value="24" caption="new components, drawn for launch week" />;
 
export const RemotionRoot = () => (
  <Composition
    id="HatchShade"
    component={HatchShadeScene}
    durationInFrames={155}
    fps={30}
    width={1280}
    height={720}
  />
);

A serif number is drawn in with pen-stroke hatch lines in three passes - two crossing passes in ink, then a copper pass - before a crisp outline appears and the caption fades in. Pass value as a string and caption. It ships light and dark through theme.

Props13

PropTypeDefault
value
string"24"

The number to shade in, as a string.

caption
string"new components, drawn for launch week"

Caption that fades in below.

accent
string"#3B5BFD"

Accent color for the copper pass.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill in place of the copper plate; pass "transparent" to drop it.

fontFamily
string"Fraunces"

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

fontWeight
number500

Weight of the figure.

density
number1

Hatch density; 2 packs the lines twice as tight.

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.

grain
booleantrue

Film grain over the scene.

speed
number1

Playback speed multiplier.

theme
"dark" | "light""dark"

Light or dark palette.

  • valuestring

    The number to shade in, as a string.

    Default"24"

  • captionstring

    Caption that fades in below.

    Default"new components, drawn for launch week"

  • accentstring

    Accent color for the copper pass.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill in place of the copper plate; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Fraunces"

  • fontWeightnumber

    Weight of the figure.

    Default500

  • densitynumber

    Hatch density; 2 packs the lines twice as tight.

    Default1

  • 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

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • speednumber

    Playback speed multiplier.

    Default1

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"