Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating SVG for icons #2

Open
elliothershberg opened this issue Sep 5, 2022 · 1 comment
Open

Generating SVG for icons #2

elliothershberg opened this issue Sep 5, 2022 · 1 comment

Comments

@elliothershberg
Copy link

Hey @samselikoff, awesome demo of the power of Framer Motion!

I've got a question for you: do you have a favorite tool for generating the SVG paths like below for the icons? Do you create them in a tool like Figma or Inkscape and then export them? I'd like to be able to do the same! Thanks.

export function Play(props) {
return (
<svg viewBox="0 0 40 40" fill="none" {...props}>
<path
d="M32.997 18.268c1.334.77 1.334 2.695 0 3.464L13 33.27c-1.333.769-2.999-.194-2.999-1.733V8.463c0-1.54 1.666-2.502 3-1.733l19.997 11.538z"
fill="currentColor"
/>
</svg>
);
}

@samselikoff
Copy link
Owner

Hey there, and thanks!

For this one I believe I just grabbed them from the iOS 15 UI Kit for Figma. For my Tailwind course on Egghead I remember grabbing them just literally from the devtools on the Discord web app.

Usually I try to use heroicons since they already come in a React library. Otherwise you can find any SVG (either from a google search or from something you find/make in Figma (then click copy -> copy as SVG), and then head over to transform.tools, paste in the SVG on the left, and you'll get a nice React-ified version on the right!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants