Preview
Controls
Generated CSS
background-color: #16213e; background-image: repeating-linear-gradient( 45deg, #1a1a2e 0px, #1a1a2e 20px, #16213e 20px, #16213e 30px ); background-size: 42px 42px;
About CSS Background Patterns
How It Works
CSS background patterns use background-image with CSS gradients (linear-gradient, radial-gradient) combined with background-size and background-position to create seamlessly repeating patterns without any image files.
Performance
CSS-only patterns are resolution-independent and require zero HTTP requests, making them ideal for decorative backgrounds. They render efficiently on all screen densities including retina displays.
Browser Support
CSS gradient patterns are supported in all modern browsers. The repeating-linear-gradient and radial-gradient functions have excellent cross-browser compatibility.
Tips
For best results, use subtle color differences between primary and secondary colors. Combine patterns with opacity or overlay them on solid backgrounds for sophisticated visual effects.