Grid
Graph Paper CSS pattern
A fine minor grid with a bold major line every five cells.
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: #f8f5ee;
background-image: repeating-linear-gradient(0deg, #1f3a5f 0px 2px, transparent 2px 80px), repeating-linear-gradient(90deg, #1f3a5f 0px 2px, transparent 2px 80px), repeating-linear-gradient(0deg, #e07a5f99 0px 1px, transparent 1px 16px), repeating-linear-gradient(90deg, #e07a5f99 0px 1px, transparent 1px 16px);
background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
background-position: 0 0, 0 0, 0 0, 0 0;Tailwind
bg-[#f8f5ee] [background-image:repeating-linear-gradient(0deg,_#1f3a5f_0px_2px,_transparent_2px_80px),_repeating-linear-gradient(90deg,_#1f3a5f_0px_2px,_transparent_2px_80px),_repeating-linear-gradient(0deg,_#e07a5f99_0px_1px,_transparent_1px_16px),_repeating-linear-gradient(90deg,_#e07a5f99_0px_1px,_transparent_1px_16px)] [background-size:100%_100%,_100%_100%,_100%_100%,_100%_100%] [background-position:0_0,_0_0,_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.