OpenSourceUIOpenSourceUIOpensource UI
GitHub—
  1. Home
  2. Components
  3. Background-gradient
  4. Arc Bands
Back to Background-gradientComponents / Background-gradient

Arc Bands

Free Background-gradient React component — ArcBandsBackground. MIT licensed, copy-paste ready for Next.js and Tailwind CSS.

Retro poster arcs with sky, teal, amber, and rose blending in soft radial gradients from the base — festivals, launches, and playful brand moments.

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. 1

    Run in your terminal:

    $npm install clsx tailwind-merge lucide-react
  2. 2

    Copy lib/cn.ts below. Skip if you already have cn().

  3. 3

    Copy the code below and create components/background-gradient/arc-bands-background.tsx in your project.

  4. 4

    Import and render:

    Example

    import { ArcBandsBackground } from "@/components/background-gradient/arc-bands-background";

    <ArcBandsBackground className="min-h-screen p-8"><h1>Celebrate</h1></ArcBandsBackground>

lib/cn.ts

1
2
3
4
5
6
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
 
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}

components/background-gradient/arc-bands-background.tsx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { forwardRef, type HTMLAttributes, type ReactNode } from "react";
 
import { cn } from "@/lib/cn";
 
export interface ArcBandsBackgroundProps extends HTMLAttributes<HTMLDivElement> {
children?: ReactNode;
}
 
const ArcBandsBackground = forwardRef<HTMLDivElement, ArcBandsBackgroundProps>(
({ children, className, ...props }, ref) => {
return (
<div
ref={ref}
data-slot="arc-bands-background"
className={cn(
"relative isolate overflow-hidden bg-[#FFFCF7]",
className,
)}
{...props}
>
<div
aria-hidden="true"
className="pointer-events-none absolute inset-0 -z-10 bg-[linear-gradient(180deg,#FFFCF7_0%,#FFF8F0_100%)]"
/>
 
<div
aria-hidden="true"
className="pointer-events-none absolute -bottom-[28%] left-1/2 -z-10 h-[92%] w-[150%] -translate-x-1/2 rounded-[100%] [background:radial-gradient(ellipse_120%_88%_at_50%_100%,rgba(56,189,248,0.52)_0%,rgba(45,212,191,0.44)_18%,rgba(245,158,11,0.38)_40%,rgba(244,63,94,0.30)_62%,rgba(255,252,247,0)_82%)]"
/>
 
<div
aria-hidden="true"
className="pointer-events-none absolute -bottom-[22%] left-1/2 -z-10 h-[78%] w-[128%] -translate-x-1/2 rounded-[100%] blur-2xl [background:radial-gradient(ellipse_110%_80%_at_50%_100%,rgba(56,189,248,0.28)_0%,rgba(45,212,191,0.24)_22%,rgba(251,191,36,0.20)_46%,rgba(251,113,133,0.16)_68%,transparent_86%)]"
/>
 
<div
aria-hidden="true"
className="pointer-events-none absolute -bottom-[18%] left-1/2 -z-10 h-[64%] w-[108%] -translate-x-1/2 rounded-[100%] blur-3xl [background:radial-gradient(ellipse_100%_72%_at_50%_100%,rgba(255,255,255,0.55)_0%,rgba(255,252,247,0.18)_38%,transparent_72%)]"
/>
 
<div
aria-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.03]"
/>
 
{children}
</div>
);
},
);
 
ArcBandsBackground.displayName = "ArcBandsBackground";
 
export { ArcBandsBackground };
PreviousNext

On this

page

Jump to a section on this page.

  • lib/cn.ts
  • components/background-gradient/arc-bands-background.tsx
Platinum slotAvailable

Feature your product here.

Sticky card next to every component — highest-intent placement.

Claim this card