material-foundation / material-theme-builder

Visualize dynamic color and create a custom Material Theme.
https://material-foundation.github.io/material-theme-builder/
Apache License 2.0
364 stars 28 forks source link

Crash on open #57

Closed lloydrichards closed 1 year ago

lloydrichards commented 2 years ago

Am trying to use the Material Theme Builder plugin for Figma and every time I open the plugin, it crashes. There is no message or anything, just closes.

rodydavis commented 2 years ago

I have discovered the bug! There was a change recently to figma causing all the plugins to crash.

figma.loadFontAsync({ family: "Inter", style: "Regular" })

This line is needed to be added when the plugin opens. The plugin was working correctly and something changed on how nodes are updated on the canvas when no font is detected.

rodydavis commented 2 years ago

Fix is being applied and a new change will roll out soon.