Skip to content
Xerobi Icons

Publishing the Figma plugin

Submitted by hand in the Figma app, because Figma has no publishing API. What to prepare and what to expect.

Last updated

Plugin source: apps/figma-plugin. It is tiny: the UI loads the icon list and outlines from the live website (/data/meta.json, /data/<weight>/<n>.json), so the website must be deployed first, and the manifest allows only the site’s origin.

Figma has no API for publishing plugins. Every release of the workflow attaches xerobi-icons-figma.zip, but a new plugin version always has to be submitted by a person in the Figma desktop app. That is a Figma limitation, not a gap in the workflow. Because plugin updates only change code, not icons (icons come from the website), you rarely need to publish a new version: when the icon set grows, the plugin picks it up with no update.

Figma’s publishing screens change; if a step below does not match, follow the current guide at <https://help.figma.com/hc/en-us/articles/360042293394-Publish-plugins-to-the-Community>.

1. One-time setup

  1. A Figma account with two-factor authentication on (Figma requires it to publish) and, for the publisher name, the person or team who will be listed. Use the Xerobi Labs team profile if you have one.
  2. Install the Figma desktop app (plugins are published from it, not the browser).
  3. Get a plugin ID: in the desktop app, Plugins → Development → New plugin…, make any scratch plugin; Figma generates a manifest with an id. Copy that id. (Importing our manifest also works, but a generated id is the reliable way to get one.)
  4. Save it in the repository as the variable FIGMA_PLUGIN_ID (Settings → Secrets and variables → Actions → Variables), or put it in apps/figma-plugin/src/manifest.json instead of __FIGMA_PLUGIN_ID__. The build writes it into dist/manifest.json.
  5. If the site is on a custom domain, set SITE_URL the same way for the build (it also sets networkAccess.allowedDomains).

2. Build and test it

cd apps/figma-plugin
FIGMA_PLUGIN_ID=<your id> SITE_URL=https://your-domain bun run build      # writes dist/

In Figma: Plugins → Development → Import plugin from manifest… → choose apps/figma-plugin/dist/manifest.json. Run it in a Figma file and a FigJam file: search, switch weight, change size and colour, click an icon (it must appear as a vector at the centre of the view), select a frame first (it must land centred on the frame).

3. Prepare the listing

Figma asks for these when you publish:

Item Spec
Name Xerobi Icons
Tagline one line: “6,000+ open source icons in six weights”
Description what it does, that it is MIT licensed, that it loads icons from the website (state that it needs network access and why: the manifest says “Loads the icon list and icon outlines from the Xerobi Icons website.”)
Icon 128 × 128 PNG
Cover art 1920 × 1080 PNG: a screenshot of the plugin over a canvas
Category/tags Icons, Design systems
Support the GitHub issues URL
Publisher Xerobi Labs

4. Submit

  1. Desktop app → Plugins → Manage plugins → find the plugin under In development → Publish.
  2. Fill the listing, confirm the network-access disclosure, accept the terms, and Submit for review.
  3. Review takes days. Figma emails you; if it is rejected the email says what to change (commonly: cover art, unclear description, or network access not explained).
  4. Once approved, the plugin is public on the Community. Note the plugin URL and put it in the README and the website’s footer.

5. Updating it later

Needed only when the plugin code changes (rare). Download xerobi-icons-figma.zip from the GitHub release, unzip, import its manifest as in step 2, test, then Manage plugins → Publish new version. The listing and review happen again for significant changes.

Common errors

Symptom Fix
UI says “Could not load icons” The site is not deployed at the origin in the manifest, or /data/* lacks the CORS header (apps/web/public/_headers sets Access-Control-Allow-Origin: *)
Network error blocked by Figma networkAccess.allowedDomains does not match the site’s origin: rebuild with the right SITE_URL
“Invalid manifest id” on publish Still __FIGMA_PLUGIN_ID__ or 0000000000000000000: set the real id (step 1)
Icons import in the wrong colour The colour picker sets an explicit fill (Figma ignores currentColor); set it before clicking