About CSSBackgrounds

CSSBackgrounds is a free library of background patterns made with nothing but CSS. Every pattern is built from linear-gradient(), radial-gradient(), conic-gradient() andbackground-size. There are no image files, no SVG and no data URIs.

Why pure CSS?

A gradient-only background costs a few hundred bytes, needs no extra network request, stays sharp at any zoom level, and can be recolored with one custom property. That makes it a good fit for hero sections, cards, empty states and dark-mode themes.

How to use a pattern

Open any pattern, adjust the colors and size, then copy the CSS, the Tailwind classes or a complete HTML demo. Each snippet works on its own: paste it into a blank page and it renders. To restyle it later, change--bg, --fg or the pattern's other custom properties.

License

Free for personal and commercial use. No attribution required.