Icon2Code
by Radek Kozieł (@panr)
Export your Figma icon set into JSON data
Installs
4,726
Likes
57
Users
10,575
Views
10,365
Preview
About this plugin
For designers: Easily create a JSON file for your fellow developers with everything they need to create a custom Icon component using their favorite framework or library (React, Angular, Vue etc.). No exports, copying and pasting files, no code cleaning or additional optimizations.
For developers: Imagine that you receive a bunch of icons from your fellow designer. You have to extract needed data from all those SVG files... It's time consuming... Forget about it. Now you can easily export all icons data to a JSON file with one click! If you have a custom Icon component in React, Angular or Vue — that's all you need.
How it works:
1. Create frames / components / instances with unique names (plugin seeks for every frame / components / instances in a current page)2. Draw icons or paste them from your favorite tool (like IconJar)3. Flatten them (if they are not already)4. Use the plugin to create a JSON with needed data5. Use data with your custom Icon component6. 🎉Tip! Hidden frames, components or instances are skipped by the plugin=========================Code example:---Here's an example built in React — https://codesandbox.io/s/react-icon-component-3giqg. You can easily build your own in any language. At the end of the day, it's just an inline SVG code running in the browser.=========================Icon data model:{name: string;paths: { windingRule: "evenodd" | "nonzero", data: string }[];size: {width: number;height: number;};fill: {rgb: string;hsl: string;hex: string;};translate: {x: number;y: number;};viewBox: string;}
More import & export plugins plugins
View allhtml.to.design — by ‹div›RIOTS — Import websites to Figma designs (web,html,css)
Paidby divRIOTS
Convert any website into fully editable Figma designs
Figma to HTML
by Figma2HTML
Convert Figma design to HTML
TinyImage Compressor
Paidby Hypermatic
Export/downsize compressed JPG, PNG, SVG, WebP, GIF, WebM, MP4, AVIF and PDF image files from Figma
Pitchdeck Presentation Studio
Paidby Hypermatic
Turn your Figma designs into animated slide decks or export them to PowerPoint/PDF