anlear

purple gradient

Component 4

About

Pure CSS gradient background in the Silk Blend style, made with the 21st.dev Gradient Builder. 4-color palette (#2B0A3D, #603584, #9F79C2, #E6D6F5). Features: film grain, 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 purple gradient to your project and fits it to your theme.

Code

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

Usage.tsx

import { GradientBackground } from "@/components/ui/purple-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 anlear

View all
  • motion blue gradient

    motion blue gradient

    11