Skip to content

vfm2/figma-to-web

v1.0.0MIT

Turn Figma designs into accessible, responsive web components with a design-to-code agent, guidelines skill, and Figma MCP.

Figma to Web — GitHub Copilot Plugin

Build a plugin once, use it everywhere!

One plugin packages a Design-to-Code Agent, web-design-guidelines skill, and Figma MCP integration. Use it to turn a Figma frame into an accessible, responsive UI in your own project.

What's inside

plugin.json
mcp.json
com.github.copilot/agents/design-to-code.agent.md
skills/web-design-guidelines/SKILL.md
.github/plugin/marketplace.json
  • Agent: Coordinates design retrieval, implementation, and review on supported Copilot clients.
  • MCP: Provides access to Figma design context after the client is authenticated and connected.
  • Skill: Supplies reusable UI quality and accessibility guidance.

The skill and MCP configuration use the Agent Plugins 1.0 layout. The custom agent is a Copilot-specific component; exact availability varies by client.

Install the plugin in your Copilot client

Clone the plugin repository first if you want to install from local source:

git clone https://github.com/vfm2/building-plugins-workshop.git
cd building-plugins-workshop

VS Code

  1. Sign in to GitHub Copilot in VS Code and ensure plugin support is enabled (chat.plugins.enabled, if required by your VS Code version).
  2. Open the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux).
  3. Run Chat: Install Plugin from Source (the command name may differ by version).
  4. Choose the local building-plugins-workshop folder or the repository source, as prompted.
  5. Open Copilot Chat customizations and confirm that figma-to-web is available.

GitHub Copilot CLI

Fastest for a live demo: From the cloned plugin repository, run:

copilot --plugin-dir .

This loads the local plugin for the current session, rather than installing it permanently.

For a marketplace-based installation, use the CLI's plugin management commands (confirm the syntax with copilot plugin --help for your installed version):

copilot plugin marketplace add vfm2/building-plugins-workshop
copilot plugin install figma-to-web@building-plugins-workshop
copilot plugin list

GitHub Copilot app

  1. Open the GitHub Copilot app and navigate to Customize / plugin management (labels may vary by release).
  2. Add the marketplace repository: https://github.com/vfm2/building-plugins-workshop.
  3. Locate figma-to-web and install it.
  4. Confirm the plugin is available in your installed customizations.

The app uses the committed version from the repository. Push plugin changes before installing or refreshing it there.

Client compatibility: Plugin installation, agent discovery, and MCP authorization may differ across VS Code, Copilot CLI, and Copilot app. Test all three on the versions you'll present. If a client does not expose the custom agent, demonstrate the shared skill and supported MCP functionality without claiming the agent is available there.

Connect Figma MCP

  1. Open the client's MCP configuration or tools panel.
  2. Locate the Figma server provided by the plugin, and complete any required sign-in/authorization.
  3. Test design-context retrieval with a Figma frame link before the live demo.

Figma authorization is client-specific. If unavailable, use the local demo/design-brief.md as a clearly labeled synthetic fallback. Don't imply that reading the brief is a Figma MCP call.

Try the workshop

  1. Open the separate starter repository: deployment-pipeline-demo.
  2. Install or load figma-to-web in your supported Copilot client using the instructions above.
  3. Connect Figma MCP if your demo uses live Figma retrieval.
  4. Select the design-to-code agent where supported and provide a Figma frame link and the starter app's target HTML file.
  5. Ask Copilot to implement an interactive, accessible Build → Test → Deploy simulation (no real deployment).
  6. Open the updated HTML in a browser and run the simulation.

Presenter: Follow the 10-minute demo guide for timing, prompts, and fallbacks.

Example prompt

Use the design-to-code agent where available and the web-design-guidelines skill. Retrieve this Figma frame with Figma MCP: [FRAME_URL]. Implement the design in the starter app's HTML file. Build an interactive local Build → Test → Deploy simulation with accessible status updates, keyboard focus, responsive layout, and reduced-motion support. Do not add dependencies or perform a real deployment. Explain which MCP tools and skill guidance you actually used.

Workshop architecture

  • Plugin repository (this repo): Reusable agent, skill, and MCP configuration.
  • Starter application repository (deployment-pipeline-demo): Intentionally plain HTML app.
  • Figma: Target appearance, layout, and component states.

No finished implementation is bundled with the public starter app. Keep a private rehearsal copy for a fallback.

About

Build a plugin once and use it everywhere!