Polipo

Exporting for production

To export Figma designs for production, run

# cd my-app/
npx polipo export

By default, layout configuration is loaded from src/polipo.ts. This can be customized from the CLI. Append --help to learn more.

The above command will generate

  • src/polipo.json: the markup (HTML) template used by React to render layouts,
  • src/polipo.css: all the generated CSS,
  • public/images/<hash>.{png,jpeg,...}: all the images exported from Figma.

The location of generated files can be changed from the CLI. Append --help to learn more.

On this page

No Headings