npm.io
0.1.1 • Published 7h ago

@crazygl/hero-dropcap

Licence
Apache-2.0
Version
0.1.1
Deps
1
Size
24 kB
Vulns
0
Weekly
0

Hero made by @ybouane.

Drop Cap

@crazygl/hero-dropcap

Editorial paragraph with a single, oversized serif drop-cap that overhangs the leading margin — drop straight into a magazine layout.

Demo

Drop Cap

Install

npm install @crazygl/hero-dropcap

Usage

import DropCap from '@crazygl/hero-dropcap';

export default function Hero() {
  return (
    <DropCap
      body="It begins with a single letter — a quiet kind of restraint."
      dropCapColor="#ffd86b"
      dropCapSize={5}
    />
  );
}

Customise

  • Contentbody paragraph text (the first character becomes the drop-cap).
  • Drop-capdropCapColor, dropCapSize (em scale), dropCapLines (lines spanned).
  • TypographytextColor, fontSize, headingFontFamily (Google font), headingFontWeight, lineHeight.
  • BackdroptransparentBackground, bgColor.

Best for

  • Editorial / magazine landing pages and long-form intros.
  • Blog or essay headers that want a literary, print feel.
  • Brand stories where typography carries the tone.

This hero is part of CrazyGL, a collection of production-ready WebGL, canvas, 3D, and typography effects. Every CrazyGL hero ships with an agent-ready SKILL.md file that helps developers and coding agents adapt the effect into custom landing pages and interactive experiences.

Keywords