Skip to content
Musterli

Geometric

Pinwheel CSS pattern

Four blades per tile that turn into pinwheels.

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: linear-gradient(135deg, #1f3a5f 0% 24.12%, transparent 25.88% 100%), linear-gradient(225deg, #1f3a5f 0% 24.12%, transparent 25.88% 100%), linear-gradient(315deg, #1f3a5f 0% 24.12%, transparent 25.88% 100%), linear-gradient(45deg, #1f3a5f 0% 24.12%, transparent 25.88% 100%);
background-size: 40px 40px, 40px 40px, 40px 40px, 40px 40px;
background-position: 20px 0px, 0px 20px, 20px 0px, 0px 20px;

Tailwind

bg-[#f8f5ee] [background-image:linear-gradient(135deg,_#1f3a5f_0%_24.12%,_transparent_25.88%_100%),_linear-gradient(225deg,_#1f3a5f_0%_24.12%,_transparent_25.88%_100%),_linear-gradient(315deg,_#1f3a5f_0%_24.12%,_transparent_25.88%_100%),_linear-gradient(45deg,_#1f3a5f_0%_24.12%,_transparent_25.88%_100%)] [background-size:40px_40px,_40px_40px,_40px_40px,_40px_40px] [background-position:20px_0px,_0px_20px,_20px_0px,_0px_20px]

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
  • Checkerboard

    Alternating squares, as crisp as a chessboard.

    Geometric

  • 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