Glow

Vignette

Full-bleed radial darkening layer that shades the corners of a scene, in soft, medium or strong. Focuses the centre and helps text sit on art inside a positioned parent.

The source comes with full access.

One payment of $149 ($49 for now) opens the source right here and lets the CLI install every paid component, with lifetime updates.

Installation

pnpm dlx shadcn add @01orbital/vignette
npx shadcn add @01orbital/vignette
yarn shadcn add @01orbital/vignette
bunx --bun shadcn add @01orbital/vignette

Part of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).

It lands at components/glow/vignette.tsx, as source you own and edit.

The example also uses celestograph-cover. Install it too:

pnpm dlx shadcn add @01orbital/celestograph-cover
npx shadcn add @01orbital/celestograph-cover
yarn shadcn add @01orbital/celestograph-cover
bunx --bun shadcn add @01orbital/celestograph-cover

Usage

import { CelestographCover } from "@/components/celestograph/celestograph-cover"
import { Vignette } from "@/components/glow/vignette"

// The vignette darkens a picture's corners and leaves its centre lit.
export default function Demo() {
  return (
    <div className="relative isolate aspect-4/3 w-full max-w-lg overflow-hidden rounded-2xl">
      <CelestographCover from="vignette" palette="warmth" />
      <Vignette />
    </div>
  )
}

API reference

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs them for you.

No other registry pieces.