Two-Tone Gradient
Two-color gradient background: a painted vertical gradient from a high and a low OKLCH color, with blooms and a vignette that follow them and optional grain. Defaults to cream, amber, magenta and warm dark; crops to a set aspect.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
Installation
pnpm dlx shadcn@latest add @01orbital/two-tone-gradientnpx shadcn@latest add @01orbital/two-tone-gradientyarn dlx shadcn@latest add @01orbital/two-tone-gradientbunx --bun shadcn@latest add @01orbital/two-tone-gradientUsage
import { TwoToneGradient } from "@/components/scene/two-tone-gradient"
export default function Example() {
return <TwoToneGradient />
}Examples
Amber To Chartreusetwo-tone-gradient-amber-to-chartreuse
Two Tone Gradient example at full brightness: amber at the top, a hard red band through the middle, then yellow into chartreuse and an olive foot, with the scene's own grain.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
pnpm dlx shadcn@latest add @01orbital/two-tone-gradient-amber-to-chartreusenpx shadcn@latest add @01orbital/two-tone-gradient-amber-to-chartreuseyarn dlx shadcn@latest add @01orbital/two-tone-gradient-amber-to-chartreusebunx --bun shadcn@latest add @01orbital/two-tone-gradient-amber-to-chartreuseBronze Dusktwo-tone-gradient-bronze-dusk
Two Tone Gradient example: a muted bronze at the top falling through rust, crimson and a thin violet band into near-black, with the scene's own grain.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
pnpm dlx shadcn@latest add @01orbital/two-tone-gradient-bronze-dusknpx shadcn@latest add @01orbital/two-tone-gradient-bronze-duskyarn dlx shadcn@latest add @01orbital/two-tone-gradient-bronze-duskbunx --bun shadcn@latest add @01orbital/two-tone-gradient-bronze-duskOrchid Dusktwo-tone-gradient-orchid-dusk
Two Tone Gradient example: a muted orchid at the top falling through violet and indigo into near-black, with the scene's own grain.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
pnpm dlx shadcn@latest add @01orbital/two-tone-gradient-orchid-dusknpx shadcn@latest add @01orbital/two-tone-gradient-orchid-duskyarn dlx shadcn@latest add @01orbital/two-tone-gradient-orchid-duskbunx --bun shadcn@latest add @01orbital/two-tone-gradient-orchid-duskAPI reference
A painted vertical gradient from two OKLCH colors, a high and a low: every stop, both blooms and the vignette are worked out from them, with an optional grain on top. The defaults walk cream, amber, magenta and warm dark. It fills its parent and cover-crops the composition to crop.
Prop
Type
It also accepts the HTML attributes of the element it renders.
Dependencies
npm: cn. The CLI installs it for you.
Last updated on