Ink Wash
Free Background-gradient React component — InkWashBackground. MIT licensed, copy-paste ready for Next.js and Tailwind CSS.
Minimal sumi-e ink clouds in soft stone gray on warm paper — galleries, studios, and calm editorial layouts.
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/ink-wash-background.tsxin your project. - 4
Import and render:
Exampleimport { InkWashBackground } from "@/components/background-gradient/ink-wash-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/ink-wash-background.tsx
import { forwardRef, type HTMLAttributes, type ReactNode } from "react";import { cn } from "@/lib/cn";export interface InkWashBackgroundProps extends HTMLAttributes<HTMLDivElement> {children?: ReactNode;}const InkWashBackground = forwardRef<HTMLDivElement, InkWashBackgroundProps>(({ children, className, ...props }, ref) => {return (<divref={ref}data-slot="ink-wash-background"className={cn("relative isolate overflow-hidden bg-[#FAFAF8]",className,)}{...props}><divaria-hidden="true"className="pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(circle_at_50%_0%,#FFFFFF_0%,#FAFAF8_55%,#F5F5F2_100%)]"/><divaria-hidden="true"className="pointer-events-none absolute -inset-4 -z-10 blur-2xl"><div className="absolute top-[6%] left-[8%] h-[48%] w-[56%] rounded-[42%_58%_64%_36%] bg-[#A8A29E] opacity-18" /><div className="absolute top-[28%] right-[6%] h-[42%] w-[50%] rounded-[58%_42%_38%_62%] bg-[#78716C] opacity-14" /><div className="absolute bottom-[4%] left-[24%] h-[46%] w-[54%] rounded-[36%_64%_58%_42%] bg-[#57534E] opacity-12" /><div className="absolute right-[22%] bottom-[18%] h-[32%] w-[38%] rounded-[64%_36%_42%_58%] bg-[#A8A29E] opacity-16" /></div><divaria-hidden="true"className="pointer-events-none absolute inset-0 -z-10 [background-image:radial-gradient(circle_at_center,#292524_1px,transparent_1px)] [background-size:5px_5px] opacity-[0.025]"/>{children}</div>);},);InkWashBackground.displayName = "InkWashBackground";export { InkWashBackground };