Skip to content
Musterli

Dots

Staggered Dots CSS pattern

Dots in offset rows, denser and calmer than a straight grid.

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: #f8f5ee;
background-image: radial-gradient(circle 5.5px at 10px 10px, #1f3a5f 0px 4.5px, transparent 5.5px), radial-gradient(circle 5.5px at 30px 30px, #1f3a5f 0px 4.5px, transparent 5.5px);
background-size: 40px 40px, 40px 40px;
background-position: 0 0, 0 0;

Tailwind

bg-[#f8f5ee] [background-image:radial-gradient(circle_5.5px_at_10px_10px,_#1f3a5f_0px_4.5px,_transparent_5.5px),_radial-gradient(circle_5.5px_at_30px_30px,_#1f3a5f_0px_4.5px,_transparent_5.5px)] [background-size:40px_40px,_40px_40px] [background-position: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
  • Polka Dots

    Evenly spaced dots on a square grid, the classic for playful surfaces.

    Dots

  • Two-Tone Dots

    Staggered dots that alternate between two colors.

    Dots

  • Mixed Dots

    Large and small dots in two colors, alternating in a relaxed rhythm.

    Dots

  • Rings

    Circle outlines on a grid, light and airy.

    Dots

  • Targets

    Concentric rings in two colors, like tiny targets.

    Dots

  • Grid Lines

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

    Grid