David Hakobyan

Background Gradient Snippet

Heroes 15

About

Here is Background Gradient Snippet component

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

Code

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

Usage.tsx

export default function Component() {
  return (
    <div className="fixed inset-0 -z-10 bg-slate-950">
      <div className="absolute inset-0 bg-[linear-gradient(to_right,#47556940_1px,transparent_1px),linear-gradient(to_bottom,#47556940_1px,transparent_1px)] bg-[size:24px_24px] [mask-image:radial-gradient(ellipse_90%_70%_at_50%_40%,#000_70%,transparent_100%)] [-webkit-mask-image:radial-gradient(ellipse_90%_70%_at_50%_40%,#000_70%,transparent_100%)] [mask-repeat:no-repeat] [-webkit-mask-repeat:no-repeat]" />
    </div>
  );
}

More by David Hakobyan

View all
  • Futuristic Hero

    Futuristic Hero

    2.7K
  • Hero ASCII one

    Hero ASCII one

    1.4K
  • Hero ASCII

    Hero ASCII

    1.4K
  • Admit One Ticket

    Admit One Ticket

    1.1K
  • Border Beam

    Border Beam

    1.1K
  • Navigation Menu

    Navigation Menu

    980
  • Border Beam Search

    Border Beam Search

    674
  • Thinking Orbs

    Thinking Orbs

    497

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.7K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1.1K
  • Editorial Collage Hero

    Editorial Collage Hero

    507
  • Hero Section

    Hero Section

    445
  • Aero Hero-3

    Aero Hero-3

    618
  • Hero with group of images, text and two buttons

    Hero with group of images, text and two buttons

    442