Skip to content

Instantly share code, notes, and snippets.

@davur
Created November 11, 2022 01:53
Show Gist options
  • Save davur/dddb9317d4881e6a9a0b0b3cb4f6f2c5 to your computer and use it in GitHub Desktop.
Save davur/dddb9317d4881e6a9a0b0b3cb4f6f2c5 to your computer and use it in GitHub Desktop.
Dots background SVG
Display the source blob
Display the rendered blob
Raw
<svg viewbox="0 0 1182 422" fill="none" xmlns="http://www.w3.org/2000/svg" >
<defs>
<pattern id="polka-dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
<path d="M0 0H2V2H0V0Z" fill="#25D0AB" />
</pattern>
</defs>
<rect x="0" y="0" width="100%" height="100%" fill="url(#polka-dots)"></rect>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment