Skip to content
Musterli

Geometric

Triangles CSS pattern

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

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: #1e1b4b;
background-image: linear-gradient(45deg, #a5b4fc 0% 48.9%, transparent 51.1% 100%);
background-size: 32px 32px;
background-position: 0 0;

Tailwind

bg-[#1e1b4b] [background-image:linear-gradient(45deg,_#a5b4fc_0%_48.9%,_transparent_51.1%_100%)] [background-size:32px_32px] [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
  • 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

  • Pinwheel

    Four blades per tile that turn into pinwheels.

    Geometric