Skip to content
Musterli

Geometric

Checkerboard CSS pattern

Alternating squares, as crisp as a chessboard.

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: #f1f5f9;
background-image: conic-gradient(from 0deg at 24px 24px, #334155 0deg 90deg, transparent 90deg 180deg, #334155 180deg 270deg, transparent 270deg 360deg);
background-size: 48px 48px;
background-position: 0 0;

Tailwind

bg-[#f1f5f9] [background-image:conic-gradient(from_0deg_at_24px_24px,_#334155_0deg_90deg,_transparent_90deg_180deg,_#334155_180deg_270deg,_transparent_270deg_360deg)] [background-size:48px_48px] [background-position: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
  • Diamonds

    Squares standing on their tips in a dense grid.

    Geometric

  • Argyle

    Diamonds with fine diagonal lines, known from socks and sweaters.

    Geometric

  • Zigzag

    Bold zigzag bands running across the surface.

    Geometric

  • Chevron

    Zigzag bands in two colors plus the background, with a seventies feel.

    Geometric

  • Triangles

    Every tile split along its diagonal, forming rows of triangles.

    Geometric

  • Pinwheel

    Four blades per tile that turn into pinwheels.

    Geometric