CSS Background Textures Without Images
A texture is a pattern with fine detail: threads, hatching or a weave, rather than bold shapes. These are built from stacked repeating-linear-gradient() and linear-gradient() layers. Thin lines at different angles and spacings overlap to fake the look of cloth or pen strokes, with no image file to load.
Every texture uses --bg for the base color and --fg for the threads or lines. Crosshatch and carbon fiber also have a --size property for the spacing. Linen mixes threads on cycles of 3, 7, 11, 17 and 23 pixels, so its uneven weave never lines up into a visible grid.
Textures work best when they stay quiet. Use them behind cards, sidebars, dark hero sections and print-style pages. Pick two close colors so the texture adds depth without fighting the text on top.