Halftone Pop
Free Background-gradient React component — HalftonePopBackground. MIT licensed, copy-paste ready for Next.js and Tailwind CSS.
Risograph-style halftone dots in rose, teal, and amber on cream — posters, zines, and bold creative brands.
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/halftone-pop-background.tsxin your project. - 4
Import and render:
Exampleimport { HalftonePopBackground } from "@/components/background-gradient/halftone-pop-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/halftone-pop-background.tsx
import { forwardRef, type HTMLAttributes, type ReactNode } from "react";import { cn } from "@/lib/cn";export interface HalftonePopBackgroundProps extends HTMLAttributes<HTMLDivElement> {children?: ReactNode;}const HalftonePopBackground = forwardRef<HTMLDivElement,HalftonePopBackgroundProps>(({ children, className, ...props }, ref) => {return (<divref={ref}data-slot="halftone-pop-background"className={cn("relative isolate overflow-hidden bg-[#FFF9F2]", className)}{...props}><divaria-hidden="true"className="pointer-events-none absolute inset-0 -z-10 bg-[linear-gradient(135deg,#FFF9F2_0%,#FFF4E8_100%)]"/><divaria-hidden="true"className="pointer-events-none absolute -top-[12%] -right-[10%] -z-10 h-[72%] w-[72%] [background-image:radial-gradient(circle,#FB7185_1.2px,transparent_1.2px)] [background-size:7px_7px] opacity-35"/><divaria-hidden="true"className="pointer-events-none absolute -bottom-[14%] -left-[8%] -z-10 h-[68%] w-[68%] [background-image:radial-gradient(circle,#2DD4BF_1.2px,transparent_1.2px)] [background-size:9px_9px] opacity-30"/><divaria-hidden="true"className="pointer-events-none absolute top-[32%] left-[38%] -z-10 h-[48%] w-[48%] [background-image:radial-gradient(circle,#F59E0B_1px,transparent_1px)] [background-size:5px_5px] opacity-22"/><divaria-hidden="true"className="pointer-events-none absolute inset-0 -z-10 [background-image:radial-gradient(circle_at_center,transparent_62%,rgba(255,249,242,0.85)_100%)]"/>{children}</div>);});HalftonePopBackground.displayName = "HalftonePopBackground";export { HalftonePopBackground };