Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 551 Bytes

File metadata and controls

18 lines (15 loc) · 551 Bytes

TextLayer textstyle property

Demo: https://framer.cloud/hwCDE

Use

Place textstyles.coffee into myproject.framer/modules. Add your own text styles to the switch case area of textstyles.coffee.

require 'textstyles'
heading = new TextLayer
  text: "Hello World"
  textstyle: "heading"

body = new TextLayer
  text: "It was the best of times, it was the blurst of times."
  textstyle: "body"

Notes

Maybe someday I'll write an addStyle method to this module so you can add styles on the fly.