bghryct / variable-fonts-figma

A plugin to run variable fonts in Figma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Figma Variable Fonts

"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

How to install

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.

Running the plugin

Create a new design file in the Figma editor. Go to Menu > Plugins > Development > VariableFonts to run your newly created plugin.

Development

  • install node modules either with Yarn or npm

    Yarn:

    yarn
    

    npm:

    npm install
    
  • run

    Yarn:

    yarn build:watch
    

    npm:

    npm run build:watch
    

About

A plugin to run variable fonts in Figma

License:Apache License 2.0


Languages

Language:JavaScript 74.9%Language:TypeScript 25.0%Language:HTML 0.2%