gavinmcfarland / figma-html-websocket-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Figma and Websockets

This is a simple example of using websockets to test a plugin in other browsers.

Previewing your plugin

  1. Run the websockets server
npm run server
  1. Open another browser at http://localhost:9001/
  2. Run the plugin in the Figma desktop app
  3. Select a text layer
  4. See the selected text in the browser instance of the plugin

Building your plugin

Currently build is only supported for JS.

npm run build

Importing plugin into Figma

Open the Figma desktop app. Using Quick Actions menu, search for Import manifest.json from plugin.

About


Languages

Language:JavaScript 55.0%Language:TypeScript 45.0%