This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Chris Allen
Posted Jun 30 - Read on Facebook

Hey all - I have a quick question. Is there any way to set the font attributes (size, line-height, family, etc) in a global variable to be referenced by individual TextLayers? Typically I set global CSS styles and then use the style: attribute on normal Layers, but I'd like to start using TextLayers.

3 Comments

JiHoon Lee

How about using Class? You can use Class in Framer as well ~.

Chris Boy

You can set default settings

Chris Allen

I ended up setting a variable (bodyMedium = "300 64px/1 -apple-system, Helvetica Neue") and then applying it to the "font" attribute of a TextLayer. Thanks for the help JiHoon and Chris!

Read the entire post on Facebook