# Lumen hero

> A black dev-tool hero with a curtain of light rising from the floor, one beam per service. One flickers amber until a trace sweeps across, finds it and settles it. Strum the beams with the pointer.

Developer-tool heroes lean on a glow behind a screenshot. Lumen hero makes the glow the product: a curtain of light rises out of the floor of a black room (WebGL2), one beam per service, and one of them is failing in amber. A couple of seconds in, a trace sweeps across, stops on it, flares it white and names it at its foot with what was found. Visitors strum the beams by moving across them and can run the trace again. A serif headline with italic words sits on the left, the figures count up in a column on the right, and the bar carries mono links, a live status line and a joined Sign in / Start free pill.

## Install

```bash
npx shadcn@latest add @hairline-pro/lumen-hero
```

Needs React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.

- npm: `lucide-react`
- Hairline UI components it needs (the CLI installs them too): none
- Docs and live preview: https://hairlineui.com/blocks/lumen-hero
- Premium block, included with All-Access (https://hairlineui.com/buy/all-access?from=blocks). Installs only with an All-Access token through the @hairline-pro registry: https://hairlineui.com/ui/installation#premium. Its source isn't public.

## Usage

```tsx
import { LumenHero } from "@/components/lumen-hero";

<LumenHero
  brand="Lantern"
  navLinks={[{ label: "Platform", href: "/", active: true }, { label: "Docs", href: "/docs" }]}
  navSecondary={{ label: "Sign in", href: "/sign-in" }}
  navPrimary={{ label: "Start free", href: "/start" }}
  status="38,210 services traced live"
  headline={["Find the *outage*", "before your *users* do."]}
  subheadline="Lantern traces every request and points at the deploy that broke it."
  primaryAction={{ label: "Start tracing free", href: "/start" }}
  stats={[{ value: "3.8 min", label: "Median time to cause" }, { value: "38,210", label: "Services traced" }]}
  incident={{ service: "checkout-api", found: "checkout-api · deploy 4f2a rolled back in 3.8 s" }}
/>
```

## Your faces and your light

LumenHero reads --lh-display (serif), --lh-mono and --lh-sans, and every colour from --lh-* variables, the beams included.

```tsx
import { Instrument_Serif, JetBrains_Mono } from "next/font/google";
import { LumenHero } from "@/components/lumen-hero";

const serif = Instrument_Serif({ subsets: ["latin"], weight: "400", style: ["normal", "italic"] });
const mono = JetBrains_Mono({ subsets: ["latin"], weight: ["400", "500"] });

<LumenHero
  style={{
    "--lh-display": serif.style.fontFamily,
    "--lh-mono": mono.style.fontFamily,
    "--lh-tint": "#a8d4ff",
    "--lh-warn": "#ff5a4e",
  } as React.CSSProperties}
  brand="Gatekeep"
  headline={["Catch the *bad merge*", "before it *ships*."]}
  subheadline="Every pull request checked against the whole repo."
  primaryAction={{ label: "Try it free", href: "/start" }}
  incident={{ service: "billing#2184", found: "billing#2184 · blocked: drops a null check", position: 0.4 }}
/>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand / logo` | `string / ReactNode` | – | Wordmark; the default mark is the brand’s first letter on a light square. |
| `navLinks` | `{ label; href; active? }[]` | – | Mono links in the middle of the bar; the active one gets a dot. |
| `navSecondary / navPrimary` | `{ label; href?; onClick? }` | – | The joined pill at the right: quiet and light. |
| `status` | `string` | – | A live line in the bar after a blinking dot. |
| `headline` | `string[]` | – | Lines of the serif headline; *asterisks* set words in italic. |
| `subheadline` | `string` | – | One mono sentence. |
| `primaryAction / secondaryAction` | `{ label; href?; onClick? }` | – | Light pill and outline pill. |
| `stats` | `{ value; label }[]` | – | Up to four figures; each counts up once. |
| `incident` | `{ service; found; position? }` | – | The failing beam, what the trace finds, and where it stands (0..1, default 0.66). Leave out for a quiet curtain. |

## States

- **arrival**: The beams climb out of the floor from the centre outward, the headline rises and the figures count up.
- **failing**: One beam flickers amber with its service name at its foot.
- **trace**: A scan sweeps across, stops on the amber beam, flares it and settles it to white; the control below names the fix.
- **strum**: Beams under a moving pointer brighten and rise, then fall back.
- **phone**: Under 900px the figures sit in two columns under the actions and the links fold into a menu.
- **reduced motion**: One still frame, already traced; figures shown at their values.

## What it handles

Light-curtain heroes are usually a looping video, which can’t react to anyone and says nothing about the product.

- **Light from one shader**: Hundreds of beams blended like light through ribbed glass, rising from a floor glow, in one full-screen pass.
- **Strum the beams**: Every beam the pointer crosses takes some light and lets it go slowly, more for a faster stroke.
- **The trace**: A scan sweeps to the failing beam, flares it, settles it to white and names it with what was found. It runs once by itself and again on demand.
- **Figures that count**: Each figure counts up once from zero, keeping its suffix, decimals and separators.
- **Serif with italics**: Wrap words in *asterisks* in a headline line and they set in italic.
- **Quiet when idle**: Half frame rate while nothing moves; stops off screen and in hidden tabs.

## Replaces

background video, count-up library, status badge

## Where it fits

- **Observability and error tracking**: The failing beam and the trace are the product’s own story: find the service, find the deploy.
- **CI, code review and testing**: Each beam a check or a repo; the trace finds the one that broke the build.
- **Security and incident response**: The amber beam is the alert; the trace is how fast you find it.
- **Any dark developer brand**: Leave out incident for a quiet curtain of light behind a serif headline.

## Notes

- Colours: --lh-ground, --lh-light, --lh-tint, --lh-warn (the room and the beams), --lh-ink, --lh-ink-2, --lh-ink-3, --lh-edge, --lh-button, --lh-on-button. They never inherit your shadcn theme.
- The trace runs once about two seconds after load; the control at the bottom runs it again.
- The canvas is capped at about 2.2 million pixels; it runs at half the frame rate when nothing moves and stops off screen.
- Needs WebGL2; without it the hero is black and everything else works.

License: Hairline UI commercial license, not MIT (https://hairlineui.com/license#blocks)
