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

Dark Arc Bands

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

Blended sky, teal, amber, and rose arcs on a midnight base — cinematic dark posters and event keynotes.

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/dark-arc-bands-background.tsx in your project.

  4. 4

    Import and render:

    Example

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

    <DarkArcBandsBackground className="min-h-screen p-8"><h1 className="text-neutral-100">Arc</h1></DarkArcBandsBackground>

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/dark-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
import { forwardRef, type HTMLAttributes, type ReactNode } from "react";
 
import { cn } from "@/lib/cn";
 
export interface DarkArcBandsBackgroundProps extends HTMLAttributes<HTMLDivElement> {
children?: ReactNode;
}
 
const DarkArcBandsBackground = forwardRef<
HTMLDivElement,
DarkArcBandsBackgroundProps
>(({ children, className, ...props }, ref) => {
return (
<div
ref={ref}
data-slot="dark-arc-bands-background"
className={cn("relative isolate overflow-hidden bg-[#0A0B0E]", className)}
{...props}
>
<div
aria-hidden="true"
className="pointer-events-none absolute inset-0 -z-10 bg-[linear-gradient(180deg,#101218_0%,#0A0B0E_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.34)_0%,rgba(45,212,191,0.28)_18%,rgba(245,158,11,0.22)_40%,rgba(244,63,94,0.18)_62%,rgba(10,11,14,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.18)_0%,rgba(45,212,191,0.15)_22%,rgba(251,191,36,0.12)_46%,rgba(251,113,133,0.10)_68%,transparent_86%)]"
/>
 
<div
aria-hidden="true"
className="pointer-events-none absolute -bottom-[18%] left-1/2 -z-10 h-[58%] w-[104%] -translate-x-1/2 rounded-[100%] blur-3xl [background:radial-gradient(ellipse_100%_70%_at_50%_100%,rgba(255,255,255,0.08)_0%,transparent_68%)]"
/>
 
<div
aria-hidden="true"
className="pointer-events-none absolute inset-0 -z-10 [background-image:radial-gradient(circle_at_center,rgba(255,255,255,0.7)_1px,transparent_1px)] [background-size:4px_4px] opacity-[0.04]"
/>
 
{children}
</div>
);
});
 
DarkArcBandsBackground.displayName = "DarkArcBandsBackground";
 
export { DarkArcBandsBackground };
PreviousNext

On this

page

Jump to a section on this page.

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

Feature your product here.

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

Claim this card