Skip to content

Extending the Framer TextLayer with text styles that work like CSS classes

Notifications You must be signed in to change notification settings

jesselcampbell/framer-module-textlayer-textstyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Extending the Framer TextLayer with text styles that work like CSS classes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published