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

What is Framer? Join the Community
Return to index
Aalok Trivedi
Posted Dec 11 - Read on Facebook

What's the best way to create your own snippets so you can grab them from the dropdown menu? For example, I want to put a bunch of variables in a snippet to use for multiple projects

3 Comments

Marc Krenn

"Show Snippets Folder" -> copy Example.coffee -> rename the copy to your liking -> ONLY replace "Hello World" with the desired code, everything else must NOT be deleted! Example:

plugin.run = (contents, options) ->
"""
#{contents}

Framer.Device.background.backgroundColor = "#1a1c20"

"""

Marc Krenn

Do NOT delete the quotation-mark-triplet (""") at the end! ;)

Aalok Trivedi

haha yupp^^ didn't even notice those were there at first so be careful

Read the entire post on Facebook