Loading…
Loading…
Generate CSS-only background patterns using gradients. Export as pure CSS or Tailwind.
background: repeating-linear-gradient( 45deg, #D5B9FFff 0px, #D5B9FFff 10px, #0a0a0a 10px, #0a0a0a 20px );
/* Tailwind with arbitrary values */
className="[background:background:_repeating-linear-gradient(__45deg,__#D5B9FFff_0px,__#D5B9FFff_10px,__#0a0a0a_10px,__#0a0a0a_20px_);]"
/* Or use style prop: */
style={{ background: repeating-linear-gradient( 45deg, #D5B9FFff 0px, #D5B9FFff 10px, #0a0a0a 10px, #0a0a0a 20px ) }}Common questions about the CSS Pattern Generator.
Use CSS gradients (linear-gradient, radial-gradient, conic-gradient) with repeating variants and background-size to tile patterns. This tool generates pure CSS patterns — stripes, dots, grids, checkerboards, and more — with zero image requests and infinite scalability.
Yes — CSS gradient patterns are rendered by the GPU and scale to any resolution without extra network requests. They're typically faster than serving pattern images, especially on high-DPI displays. Complex patterns with many gradient layers may impact rendering on low-end devices.
You can animate background-position and background-size for scrolling or scaling effects. Direct gradient color animation requires @property for custom properties. For moving patterns, animating background-position with a seamless tile creates smooth infinite scrolling.
Use radial-gradient with background-size for tiling: background: radial-gradient(circle, #000 1px, transparent 1px); background-size: 20px 20px. Adjust the circle size and background-size to control dot size and spacing. This tool lets you configure and preview dot patterns visually.