Set bound variable for Typography

Hi :wave: Using variables for setting fonts are cool and helps our design system a lot.
But is there any way to set bound variables for text properties via Plugin API?

It’s complex read-only property and simple setBoundVariable() does not work. We don’t have known methods like setBoundVariableForFont().

Can we wait for Plugin API to support typography variables any time soon?

List of properties I can’t manage to set:
fontFamily, letterSpacing, fontSize, paragraphSpacing, paragraphIndent, fontWeight, lineHeight and unexpectedly stroke for sections :smile:

API for typography and gradients variables is still in development.

Regarding stroke for sections, I think this might be considered a bug.

1 Like

Thanks, Bleb
Hope to see it soon!

We have a guide for typography variables in the plugin API here: Working with Variables | Plugin API

1 Like

Great news, thank you!
Didn’t see that few days ago. Glad it exists.