Grid
Crosshatch CSS pattern
Diagonal lines in both directions, like a lattice or hatching.
Customize in the editorChange 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.