Skip to content
Musterli

Grid

Dotted Grid CSS pattern

Grid lines with a dot on every crossing.

Customize in the editor

Change colors, size and opacity, then export as CSS, SVG or PNG.

Code

Paste the lines into your element's rule. The pattern repeats by itself and adapts to any size.

CSS

background-color: #fdf4ff;
background-image: radial-gradient(circle 3.5px at 16px 16px, #14b8a6 0px 2.5px, transparent 3.5px), linear-gradient(90deg, #7e22ce 0px 1px, transparent 1px 32px), linear-gradient(180deg, #7e22ce 0px 1px, transparent 1px 32px);
background-size: 32px 32px, 32px 32px, 32px 32px;
background-position: 16.5px 16.5px, 0 0, 0 0;

Tailwind

bg-[#fdf4ff] [background-image:radial-gradient(circle_3.5px_at_16px_16px,_#14b8a6_0px_2.5px,_transparent_3.5px),_linear-gradient(90deg,_#7e22ce_0px_1px,_transparent_1px_32px),_linear-gradient(180deg,_#7e22ce_0px_1px,_transparent_1px_32px)] [background-size:32px_32px,_32px_32px,_32px_32px] [background-position:16.5px_16.5px,_0_0,_0_0]

How to use this pattern

Copy the CSS into the rule of the element that should carry the pattern, for example a section, a card or the body. The colors are hex values in the code and can be swapped directly. In the editor you change everything with sliders and can also export the pattern as SVG or PNG.

All CSS patterns
  • Grid Lines

    Thin lines on a square grid, rotatable to any angle.

    Grid

  • Graph Paper

    A fine minor grid with a bold major line every five cells.

    Grid

  • Crosshatch

    Diagonal lines in both directions, like a lattice or hatching.

    Grid

  • Bricks

    A running bond brick wall drawn as mortar lines.

    Grid

  • Tiles

    Square tiles in two colors with narrow grout lines.

    Grid

  • Stripes

    Wide stripes at any angle you like.

    Stripes