lit-and-figma

Develop Figma plugins with Lit web components and WebAssembly.

58|6|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/rodydavis/skills --skill lit-and-figma
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lit-and-figma
Source: https://github.com/rodydavis/skills/tree/main/skills/figma-and-lit
Command: npx skills add https://github.com/rodydavis/skills --skill lit-and-figma

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @figma/plugin-typings, html-webpack-inline-source-plugin, html-webpack-plugin, css-loader, ts-loader, typescript, url-loader, webpack, webpack-cli, @assemblyscript/loader, assemblyscript, js-inline-wasm, inlinewasm, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of creating custom plugins for Figma by leveraging Lit web components, enabling a more dynamic and interactive user interface within the design tool.

Core Features & Use Cases

  • Figma Plugin Development: Provides a structured approach to building Figma plugins using modern web technologies.
  • Lit Integration: Demonstrates how to integrate Lit, a lightweight library for building UIs, into a Figma plugin architecture.
  • WASM Support: Includes guidance on incorporating WebAssembly for performance-critical computations within the plugin.
  • Use Case: Design a Figma plugin that allows users to generate multiple design elements based on input parameters, with the generation logic potentially offloaded to a WebAssembly module for speed.

Quick Start

Use the lit-and-figma skill to build a Figma plugin that creates rectangles on the canvas.

Frequently Asked Questions about lit-and-figma

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Figma plugin using Lit web components?

Building a Figma plugin with Lit involves using Lit web components for the UI and Webpack to bundle TypeScript. This approach enables dynamic, interactive elements directly within the Figma design environment.

Can I use WebAssembly in Figma plugin development for performance?

Yes, you can use WebAssembly in Figma plugin development to enhance performance. By integrating AssemblyScript and WebAssembly modules, performance-critical computations like element generation are offloaded for faster execution speeds.

What do I need to start developing a Figma plugin with Lit and WebAssembly?

Starting Figma plugin development with Lit and WebAssembly requires Node.js, npm, TypeScript, Webpack, and AssemblyScript. These tools provide the environment to build, compile WASM modules, and integrate them into the plugin architecture.

What is the best way to generate multiple design elements in Figma programmatically?

The best way to generate multiple design elements in Figma programmatically is using a plugin that offloads generation logic to a WebAssembly module. This approach utilizes Lit for the input interface and WASM for rapid element creation.

Does Webpack support bundling TypeScript and Lit for Figma plugins?

Yes, Webpack supports bundling TypeScript and Lit for Figma plugins by utilizing ts-loader and css-loader. This configuration compiles the web components and inlines the source code for deployment within the Figma environment.