Skip to Content

Cascade Lines

Cascading lines texture: seven uneven bands of color fading inward from any edge of a positioned container, in warm red-to-amber and cool blue finishes. Used by the cascade Card examples.

pnpm dlx shadcn add @01orbital/cascade-lines

Usage

import { CascadeLines } from "@/components/texture/cascade-lines"

export default function CascadeLinesDemo() {
  return (
    <div className="grid w-full max-w-3xl gap-6 sm:grid-cols-2">
      <div className="relative overflow-hidden rounded bg-[oklch(0.13_0.03_30)] p-8 pt-14 text-white">
        <CascadeLines />
        <p className="font-medium">Warm / from the top</p>
        <p className="mt-2 text-sm/6 text-white/70">
          Seven bands of fading color.
        </p>
      </div>
      <div className="relative overflow-hidden rounded bg-[oklch(0.12_0.025_250)] p-8 pb-14 text-white">
        <CascadeLines variant="cool" />
        <p className="font-medium">Cool / from the bottom</p>
        <p className="mt-2 text-sm/6 text-white/70">
          A surface of your choosing.
        </p>
      </div>
    </div>
  )
}

Examples

New

cascade-lines-announcement

cascade-lines-announcement

Announcement

Example of the Cascade Lines: an announcement panel with warm bands falling from the top and a hover line, for a release note or new-edition callout.

pnpm dlx shadcn add @01orbital/cascade-lines-announcement

New

cascade-lines-sidebar

cascade-lines-sidebar

Sidebar

Example of the Cascade Lines: a sidebar with cool bands falling in from the left and a lit line beside the selected item, for a reading list or app navigation.

pnpm dlx shadcn add @01orbital/cascade-lines-sidebar

New

cascade-lines-section

cascade-lines-section

Section

Example of the Cascade Lines: a wide section panel with cool bands rising from the bottom and a hover line along the top, for a feature callout or section opener.

pnpm dlx shadcn add @01orbital/cascade-lines-section

API reference

Seven uneven bands of color, strongest at an edge and fading inward over 26px. Place inside a positioned parent; its background, padding and corner clipping belong to that parent. The lines ignore the pointer and are hidden from assistive tech. A span root also fits inside a button or link.

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.