Skip to content
AddHunt
Figma plugins

Figblocks

Svelte UI component library for building Figma plugins

Open source

  • Open source

In short

Figblocks is an open-source set of Svelte UI components and icons for building Figma plugin interfaces, with a companion Figma library. It is aimed at developers who write Figma plugins in Svelte and want ready-made controls instead of styling each one by hand.

What you get

  • Svelte components for Figma plugin interfaces
  • Buttons, inputs, selects, tabs and more
  • Icon set and design token guidelines
  • Companion Figma library
  • Svelte starter template with build scripts

The details

Figblocks is a UI component library for developers who build Figma plugins with Svelte. Instead of styling every control from scratch, plugin authors import buttons, inputs and other elements from one npm package and assemble the plugin interface from them.

Components and guidelines

The library covers buttons, option buttons and icon buttons, checkboxes, radios and switches, text and number inputs, textareas, selects, labels, section titles, disclosures, dividers, tabs, text and icons. Its documentation also describes guidelines for icons, color, type and other tokens, and a companion Figma library is linked for designers.

Getting started

Figblocks installs with npm. For developers without an existing setup, the author provides a Svelte template for Figma plugins on GitHub, with scripts that watch and rebuild the UI and the plugin code during development and compile both for production. After the global styles are imported in the main file, components and icons are imported from the package and used directly in Svelte markup.

Status and resources

The library is at version 0.0.10 and is maintained by Mohan Vadivel on GitHub. The documentation site links to Figma's plugin documentation, community forum, plugin review guidelines and brand guidelines, and has a dark mode toggle.

Alternatives to Figblocks

All alternatives

Questions

How is Figblocks installed?

Install it from npm, import its global styles in the main file, and then import components and icons into Svelte files.

Is an existing plugin setup required?

No. The author offers a Svelte template for Figma plugins with watch and build scripts for the UI and the plugin code.

Which components are included?

Buttons, option and icon buttons, checkboxes, radios, switches, text and number inputs, textareas, selects, labels, section titles, disclosures, dividers, tabs, text and icons.

More like this