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

What is Framer? Join the Community
Return to index
Evan Yang
Posted Mar 31 - Read on Facebook

Guys, need your help.
How to define the font-family in Framer?


Yao Jueyi

我也在愁此事,输入font-family 总是无法自动提示。

Tes Mat

Shouldn’t it be fontFamily (camelCase)?

Øyvind Nordbø

I usually do: =
----"property": "value"
----"property": "value"

Which let's use the exact same property terms as in CSS, because that's essentially what you're injecting with the code in your picture. And as an added bonus it's easier to read/maintain. :)

Koen Bok

Yeah it's either:
.style["font-family"] = ...
.style.fontFamily = ...

Read the entire post on Facebook