Skip to Content

Twilight Zone Scene

Deep ocean background scene: a gradient from cyan surface water to near-black depths, with faint light shafts and still marine snow. Fully static, no client script, fills a sized parent. An underwater hero backdrop.

Installation

pnpm dlx shadcn@latest add @01orbital/twilight-zone-scene

Usage

import { TwilightZoneScene } from "@/components/scene/twilight-zone-scene"

// The copy: change text here, not in the markup.
const COPY = {
  title: "Deeper than it looks",
  body: "Every report keeps its history, down to the first draft.",
} as const

export default function TwilightZoneSceneDemo() {
  return (
    <section className="dark relative isolate flex min-h-[28rem] w-full flex-1 flex-col justify-end overflow-hidden bg-scene text-scene-foreground">
      <TwilightZoneScene className="absolute inset-0 h-auto" />
      <div className="relative max-w-lg p-6 sm:p-10">
        <h2 className="font-display text-2xl leading-tight sm:text-4xl">
          {COPY.title}
        </h2>
        <p className="mt-4 text-base leading-7 text-scene-foreground/80">
          {COPY.body}
        </p>
      </div>
    </section>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/twilight-zone-scene-demo

Examples

Teal Trenchtwilight-zone-scene-teal-trench

Twilight Zone Scene Teal Trench: an example of twilight-zone-scene.

pnpm dlx shadcn@latest add @01orbital/twilight-zone-scene-teal-trench

API reference

A gradient from cyan surface water to near-black depths, with faint light shafts and still marine snow. Fully static; it fills a sized parent.

Prop

Type

Dependencies

npm: cn. The CLI installs it for you.

Used in blocks

2 blocks are built with Twilight Zone Scene:

Last updated on