Viterna

2 Gradient

Component 3

About

Pure CSS gradient background in the Core Glow style, made with the 21st.dev Gradient Builder. 4-color palette (#A8F0C8, #34B2D7, #345CB5, #121519). Features: vignette. A drop-in, zero-dependency React component for hero sections, cards, and page backgrounds.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds 2 Gradient to your project and fits it to your theme.

Code

How 2 Gradient is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { GradientBackground } from "@/components/ui/2-gradient"

export default function GradientBackgroundDemo() {
  return (
    <div className="relative h-[440px] w-full overflow-hidden rounded-xl">
      <GradientBackground className="h-full w-full" />
    </div>
  )
}

More by Viterna

View all
  • Blue Viterna

    Blue Viterna

    2