Dots
Two-Tone Dots CSS pattern
Staggered dots that alternate between two colors.
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: #0f172a;
background-image: radial-gradient(circle 5.5px at 10px 10px, #38bdf8 0px 4.5px, transparent 5.5px), radial-gradient(circle 5.5px at 30px 30px, #f472b6 0px 4.5px, transparent 5.5px);
background-size: 40px 40px, 40px 40px;
background-position: 0 0, 0 0;Tailwind
bg-[#0f172a] [background-image:radial-gradient(circle_5.5px_at_10px_10px,_#38bdf8_0px_4.5px,_transparent_5.5px),_radial-gradient(circle_5.5px_at_30px_30px,_#f472b6_0px_4.5px,_transparent_5.5px)] [background-size:40px_40px,_40px_40px] [background-position: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.