Dillion Verma

Dot Pattern

Backgrounds 475

About

A background dot pattern made with SVGs, fully customizable using Tailwind CSS.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Dot Pattern to your project and fits it to your theme.

Code

How Dot Pattern is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { cn } from "@/lib/utils";
import { DotPattern } from "@/components/ui/dot-pattern";

export function DotPatternDemo() {
  return (
    <div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background md:shadow-xl">
      <p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
        Dot Pattern
      </p>
      <DotPattern
        className={cn(
          "[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]",
        )}
      />
    </div>
  );
}

More by Dillion Verma

View all
  • Interactive Hover Button

    Interactive Hover Button

    3.4K
  • Rainbow Button

    Rainbow Button

    2.3K
  • Globe

    Globe

    2.2K
  • Animated Beam

    Animated Beam

    1.9K
  • Text Reveal

    Text Reveal

    1.7K
  • Sparkles Text

    Sparkles Text

    1.2K
  • Confetti

    Confetti

    1.2K
  • Interactive Icon Cloud

    Interactive Icon Cloud

    1K

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    807
  • Gradient Backgrounds

    Gradient Backgrounds

    25
  • Background snippets

    Background snippets

    105
  • Background Components

    Background Components

    20
  • Jade Sky

    Jade Sky

    84
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    532
  • Glass Fold

    Glass Fold

    190
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    220