Skip to content
Musterli

Grid

Crosshatch CSS pattern

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

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: #fef3c7;
background-image: linear-gradient(45deg, transparent 0% 46.41%, #b45309 49.35% 50.65%, transparent 53.59% 100%), linear-gradient(135deg, transparent 0% 46.41%, #b45309 49.35% 50.65%, transparent 53.59% 100%);
background-size: 24px 24px, 24px 24px;
background-position: 0 0, 0 0;

Tailwind

bg-[#fef3c7] [background-image:linear-gradient(45deg,_transparent_0%_46.41%,_#b45309_49.35%_50.65%,_transparent_53.59%_100%),_linear-gradient(135deg,_transparent_0%_46.41%,_#b45309_49.35%_50.65%,_transparent_53.59%_100%)] [background-size:24px_24px,_24px_24px] [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
  • 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

  • Dotted Grid

    Grid lines with a dot on every crossing.

    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