Skip to content

Instantly share code, notes, and snippets.

@dabbott
Created March 14, 2025 00:15
Show Gist options
  • Save dabbott/fd83b1d6f4087890d7bbc89ef8bd1119 to your computer and use it in GitHub Desktop.
Save dabbott/fd83b1d6f4087890d7bbc89ef8bd1119 to your computer and use it in GitHub Desktop.
Figma to SVG
export default async function main({ inputs }) {
const components = Object.values(inputs.figma.components)
const files = {}
for (let component of components) {
files[`${component.name}.svg`] = { content: component.svgString }
}
return files;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment