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

What is Framer? Join the Community
Return to index
Brian Byle
Posted Jun 13 - Read on Facebook

Good day Framers. I can create a layer with an html property to create basically a text layer.

Easiest way to control size of text? Color? Font?

I thought this would work but it does not:

fromText = new Layer
html:"First Last Name"
color: "red"
fontSize: 48

Thx in advance!


Trevor Phillippi

Color should work as a regular property, but all CSS is accepted via camel case or regular CSS property string syntax inside of the style object which is a property of the layer. So...

fromText = new Layer
----html: "First Last Name"
----color: "red"
--------fontSize: "48px"

Brian Byle

I knew it was a simple thing, I probably tried everything but this! Thx.

Read the entire post on Facebook