Skip to content

Instantly share code, notes, and snippets.

@davur
Created August 10, 2022 12:58
Show Gist options
  • Save davur/bd18b1c7bcf93030872e9e6fac7039d8 to your computer and use it in GitHub Desktop.
Save davur/bd18b1c7bcf93030872e9e6fac7039d8 to your computer and use it in GitHub Desktop.
SVG using recurring pattern
<svg viewbox="0 0 1182 422" fill="none" xmlns="http://www.w3.org/2000/svg" >
<defs>
<pattern id="the-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(#the-dots)"></rect>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment