Hazel

Ocean grain

Component 13

About

Pure CSS gradient background in the Silk Blend style, made with the 21st.dev Gradient Builder. 4-color palette (#08243B, #12507A, #2E8FA6, #7DD0C0). Features: film grain. 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 Ocean grain to your project and fits it to your theme.

Code

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

Usage.tsx

import { GradientBackground } from "@/components/ui/ocean-grain"

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 Hazel

View all
  • Silk Blend gradient

    Silk Blend gradient