Skip to content

Instantly share code, notes, and snippets.

@OlegShchavelev
Created December 12, 2021 23:50
Show Gist options
  • Save OlegShchavelev/5797cc603fd8aded357d30eb30d4fd08 to your computer and use it in GitHub Desktop.
Save OlegShchavelev/5797cc603fd8aded357d30eb30d4fd08 to your computer and use it in GitHub Desktop.
Figma export svg fill and stroke
Display the source blob
Display the rendered blob
Raw
// Export icon Basket
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0.999969 1L2.19997 5M2.19997 5L6.99997 21H29V9C29 6.79086 27.2091 5 25 5H2.19997ZM25 29C23.8954 29 23 28.1046 23 27C23 25.8954 23.8954 25 25 25C26.1045 25 27 25.8954 27 27C27 28.1046 26.1045 29 25 29ZM8.99997 27C8.99997 25.8954 9.8954 25 11 25C12.1045 25 13 25.8954 13 27C13 28.1046 12.1045 29 11 29C9.8954 29 8.99997 28.1046 8.99997 27Z" stroke="#222222" stroke-width="2"/>
</svg>
// Export icon Flag
<svg width="28" height="27" viewBox="0 0 28 27" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M26.1333 1.8667L27.0471 2.27284C27.1846 1.96351 27.1563 1.60562 26.9718 1.32179C26.7874 1.03795 26.4718 0.866699 26.1333 0.866699V1.8667ZM1.86667 1.8667V0.866699C1.31438 0.866699 0.866669 1.31441 0.866669 1.8667L1.86667 1.8667ZM26.1333 17.4667V18.4667C26.4718 18.4667 26.7874 18.2954 26.9718 18.0116C27.1563 17.7278 27.1846 17.3699 27.0471 17.0606L26.1333 17.4667ZM22.6667 9.6667L21.7529 9.26056C21.6379 9.51913 21.6379 9.81427 21.7529 10.0728L22.6667 9.6667ZM26.1333 0.866699H1.86667V2.8667H26.1333V0.866699ZM0.866669 1.8667V17.4667H2.86667V1.8667H0.866669ZM1.86667 18.4667H26.1333V16.4667H1.86667V18.4667ZM27.0471 17.0606L23.5805 9.26056L21.7529 10.0728L25.2195 17.8728L27.0471 17.0606ZM23.5805 10.0728L27.0471 2.27284L25.2195 1.46056L21.7529 9.26056L23.5805 10.0728ZM2.86667 27V17.4667H0.866669V27H2.86667Z" fill="#888888"/>
</svg>
@OlegShchavelev
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment