Dark Ink Field
Free Background-gradient React component — DarkInkFieldBackground. MIT licensed, copy-paste ready for Next.js and Tailwind CSS.
Near-black canvas with soft graphite ink washes — galleries, studios, and minimal dark 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/dark-ink-field-background.tsxin your project. - 4
Import and render:
Exampleimport { DarkInkFieldBackground } from "@/components/background-gradient/dark-ink-field-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/dark-ink-field-background.tsx
import { forwardRef, type HTMLAttributes, type ReactNode } from "react";import { cn } from "@/lib/cn";export interface DarkInkFieldBackgroundProps extends HTMLAttributes<HTMLDivElement> {children?: ReactNode;}const DarkInkFieldBackground = forwardRef<HTMLDivElement,DarkInkFieldBackgroundProps>(({ children, className, ...props }, ref) => {return (<divref={ref}data-slot="dark-ink-field-background"className={cn("relative isolate overflow-hidden bg-[#0B0B0B]", className)}{...props}><divaria-hidden="true"className="pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(circle_at_50%_0%,#141414_0%,#0B0B0B_52%,#050505_100%)]"/><divaria-hidden="true"className="pointer-events-none absolute -inset-4 -z-10 blur-2xl"><div className="absolute top-[10%] left-[10%] h-[46%] w-[52%] rounded-[42%_58%_64%_36%] bg-[#525252] opacity-16" /><div className="absolute top-[30%] right-[8%] h-[40%] w-[48%] rounded-[58%_42%_38%_62%] bg-[#404040] opacity-12" /><div className="absolute bottom-[6%] left-[28%] h-[44%] w-[50%] rounded-[36%_64%_58%_42%] bg-[#737373] opacity-10" /></div><divaria-hidden="true"className="pointer-events-none absolute inset-0 -z-10 [background-image:radial-gradient(circle_at_center,rgba(255,255,255,0.6)_1px,transparent_1px)] [background-size:5px_5px] opacity-[0.03]"/>{children}</div>);});DarkInkFieldBackground.displayName = "DarkInkFieldBackground";export { DarkInkFieldBackground };