"If you can play DOOM in Figma, why not use variable fonts?" - Lenny
A plugin to provide basic variable fonts support through Samsa.js.
This plugin allows you to:
- Render variable fonts in the Figma canvas
- Create static font instances, using a variable font's variable axes
- Load the static instances in a variable font's fvar table
- Preview, display, and update variable fonts
- Add and edit text for variable fonts to the Figma canvas
Go to Menu > Plugins > Development > New Plugin...
This will bring up the "Create a plugin" modal to create a sample plugin. Give it a name, then choose the folder you downloaded this plugin to.
Create a new design file in the Figma editor. Go to Menu > Plugins > Development > VariableFonts to run your newly created plugin.
-
install node modules either with
Yarn
ornpm
Yarn:
yarn
npm:
npm install
-
run
Yarn:
yarn build:watch
npm:
npm run build:watch