Sunset Bloom
Free Background-gradient React component — SunsetBloomBackground. MIT licensed, copy-paste ready for Next.js and Tailwind CSS.
Golden-hour aurora with orange, rose, amber, and sun yellow blooms — events, photography, and warm brand storytelling.
Preview
Your content
Setup
How to use
Free for personal and commercial use. No UI attribution required. Include the MIT copyright notice when copying component source into your project. Read the MIT license.
- 1
Run in your terminal:
$npm install clsx tailwind-merge lucide-react - 2
Copy
lib/cn.tsbelow. Skip if you already havecn(). - 3
Copy the code below and create
components/background-gradient/sunset-bloom-background.tsxin your project. - 4
Import and render:
Exampleimport { SunsetBloomBackground } from "@/components/background-gradient/sunset-bloom-background";
lib/cn.ts
import { type ClassValue, clsx } from "clsx";import { twMerge } from "tailwind-merge";export function cn(...inputs: ClassValue[]) {return twMerge(clsx(inputs));}
components/background-gradient/sunset-bloom-background.tsx
import { forwardRef, type HTMLAttributes, type ReactNode } from "react";import { cn } from "@/lib/cn";export interface SunsetBloomBackgroundProps extends HTMLAttributes<HTMLDivElement> {children?: ReactNode;}const SunsetBloomBackground = forwardRef<HTMLDivElement,SunsetBloomBackgroundProps>(({ children, className, ...props }, ref) => {return (<divref={ref}data-slot="sunset-bloom-background"className={cn("relative isolate overflow-hidden bg-[#FFFAF5]", className)}{...props}><divaria-hidden="true"className="pointer-events-none absolute -inset-6 -z-10 blur-xl"><div className="absolute inset-0 bg-[#FFFAF5]" /><div className="absolute top-[20%] -left-[14%] h-[66%] w-[66%] rounded-full bg-[#FB923C] opacity-72 blur-3xl" /><div className="absolute top-[-12%] right-[8%] h-[62%] w-[62%] rounded-full bg-[#FACC15] opacity-68 blur-3xl" /><div className="absolute bottom-[-18%] left-[38%] h-[58%] w-[58%] rounded-full bg-[#F43F5E] opacity-55 blur-3xl" /><div className="absolute right-[-10%] bottom-[16%] h-[64%] w-[64%] rounded-full bg-[#F59E0B] opacity-62 blur-3xl" /></div><divaria-hidden="true"className="pointer-events-none absolute inset-0 -z-10 [background-image:radial-gradient(circle_at_center,#000_1px,transparent_1px)] [background-size:4px_4px] opacity-[0.032]"/>{children}</div>);});SunsetBloomBackground.displayName = "SunsetBloomBackground";export { SunsetBloomBackground };