• Stars
    star
    767
  • Rank 58,972 (Top 2 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Sketch plugin to easily export your mockups to FramerJS

This plugin is no longer maintained, since Framer Studio now imports from Sketch natively

The code and the rest of the README are left here for historical reasons


Sketch Framer

A plugin to export Sketch.app documents into FramerJS to make interactive prototypes.

Common questions

  • Only works with Sketch Beta right now because the App Store version is sandboxed. Download Sketch Beta here.
  • Make sure you copy both files as specified below.

Sketch 3 Support

We're hard at work updating the plugin for Sketch 3! You can use the plugin with a few caveats:

  • Artboards aren't supported yet. Please ungroup your artboard and have elements directly on the canvas. We suggest you group everything at top level, and move the parent group to 0,0 position.
  • Symbols aren't supported. We suggest making a copy of your file, going to Manage Symbols and deleting the symbols, which will effectively detach all the symbol layers from the symbol (but keep them on the canvas).

Installation

  1. Download the repository using this link
  2. Grab these files from the ZIP: Export to Framer.sketchplugin, sandbox.js and sketch-framer-config.js
  3. In Sketch 3, select Plugins > Reveal Plugins Folder... from the menu bar, and put those files in this folder.

This is what your plugins folder should look like after you copy them:

Directory structure

Then you'll see the plugin in the plugins menu:

Plugins menu

Usage

  1. Create your layered Sketch file, and save it somewhere
  2. Run the plugin from the plugins menu
  3. The framer prototype will be generated in a folder right next to where the Sketch file is saved

Exported files

Tips

  • Don't use artboards (Known bug, trying to fix it)
  • Group everything in your document in a main "Phone" group, and align it to (0,0)
  • Use unique names for each group in your document to avoid conflicts
  • Every group in your document will become a Framer view

Special operations

  • Flatten To have a group flattened so its child groups don't export individually, append * to its name. Example: Card*. Flattening complex groups will improve performance.
  • Shape/text layers To export a shape or a text layer as a view, put it in a group, or append + to its name. Otherwise they will export as a background image.
  • Ignore To ignore a layer, append - to its name. Example: Ignored-
  • Hidden layers Hidden layers in Sketch will be exported as hidden layers in Framer. To show the layer in framer, try view.visible = true
  • Masks Native masks now work! You can also use Scroll in the name of a group that includes a mask to make that group scrollable.

Configuration

You can customize the exported files (index.html, app.js) by tweaking sketch-framer-config.js. The most common thing you might want to do is import a library file and include it in all your projects.

Known bugs

  • Very complicated files may cause the plugin to crash, or result in a sluggish Framer mockup. Flatten groups (by appending * to their names or using Sketch 3's Layer > Flatten Selection to Bitmap command) where you don't need to access the contents individually.
  • Only rectangular masks work. If you're masking with an odd shape, try flattening the group (by appending * to its name)
  • Effects that expand beyond the boundaries of a layer (eg. drop shadows, outside borders) cause minor positioning bugs. Try flattening these layers to bitmaps.
  • Avoid background blur, it causes bugs in positioning.

Help us improve Sketch Framer

To propose changes, fork the repository and submit a pull request!

Questions?

Reach out to @bomberstudios or @gem_ray on Twitter!

More Repositories

1

sketch-commands

A collection of script commands for Sketch.app
JavaScript
826
star
2

artboard-manager

Because moving Artboards manually is *so* 2016
JavaScript
678
star
3

Strip-Whitespace-On-Save.tmbundle

TextMate 2 bundle: Strips trailing whitespace from current document when saving
127
star
4

Cleanup-Useless-Groups

A Sketch plugin that cleans up your layer list by removing empty groups and flattening deeply nested groups.
103
star
5

fireworks

Support files for Adobe Fireworks
JavaScript
82
star
6

sinatra_wiki

An ultralight, ultraminimal wiki thing with Markdown
Ruby
50
star
7

Save-On-Focus-Lost.tmbundle

Re-enables the "Save files when focus is lost" preference from TextMate 1 in TextMate 2
45
star
8

bliki

A small blog + wiki engine built on Sinatra + Stone
Ruby
38
star
9

nanoc_extensions

Testing ground for nanoc filters, plugins and commands
Ruby
29
star
10

sketch-sandbox

A small library to work around sandboxing issues in Sketch
JavaScript
29
star
11

sketch-action-api-tester

A plugin to listen to all the events in the Action API
26
star
12

install-library-bundle

Installs a bunch of shared Sketch Libraries at once, because life is too short to spend it clicking links
JavaScript
24
star
13

sketch-duplicate-and-nudge

A port to Sketch.app of Photoshop's Duplicate and Nudge feature
23
star
14

coding-designer

My stack to design in code, explained
Ruby
21
star
15

sketchtool-action

A sample repo to show how to run sketchtool as a GitHub Action
20
star
16

check-for-library-updates

A Sketch plugin to check for Sketch Cloud library updates
18
star
17

noteplan-backlinks

Ruby script to create backlinks for NotePlan notes
Ruby
17
star
18

mtasc

A fork of a fork of MTASC
OCaml
16
star
19

sketchpotify

A silly hack to control Spotify from Sketch, because why not.
JavaScript
15
star
20

voodoopad-gtd

A collection of scripts for a GTD workflow in VoodooPad
Python
13
star
21

psd-extract-font-info

A quick Ruby script to extract font information from PSD files
Ruby
12
star
22

sketch-color-blindness

A Sketch plugin that simulates the three more common forms of color blindness
JavaScript
12
star
23

flvplayer

Hopefully, the last FLV player I'll ever code
ActionScript
10
star
24

recetas

Un sitio donde poner mis recetas de cocina
SCSS
7
star
25

memesketch

Memes in Sketch!
JavaScript
7
star
26

rack-footnotes

Rack middleware to insert text comments into pages. First created to be used with jlong's serve, but should work with pretty much every rack app
Ruby
7
star
27

sketchplugins.tmbundle

A TextMate bundle for Sketch Plugins development
5
star
28

rack-smusher

Rack middleware to smush images
Ruby
5
star
29

obsidian-mono-theme

A very opinionated monospaced theme for Obsidian
CSS
5
star
30

serve-livereload

A barebones @jlong/serve project including support for LiveReload (via rack-liverload and guard-livereload, so no browser extensions needed!)
CSS
5
star
31

dokuwiki-offline-html

A fork of http://code.google.com/p/offlinehtml-plugin
PHP
4
star
32

artboard-border

Adds a border around the Artboards in the current page.
JavaScript
4
star
33

simplyphone

A simple theme for jailbroken iPhones
4
star
34

webhacker

A collection of tools for web design
Python
4
star
35

image-size-assistant

An Assistant to check the size of bitmap images
TypeScript
4
star
36

fluby

A simple command to create an empty ActionScript project for MTASC + SWFMILL + Rake
Ruby
4
star
37

run-node-with-github-actions

A template repository for running node scripts using GitHub Actions
3
star
38

fireworks-tmbundle

A TextMate bundle for Adobe Fireworks development
3
star
39

super-sharp-shooter

A Sketch plugin to resize the main window, for screenshots
JavaScript
3
star
40

poster

An anonymous image hosting service, with a companion Fireworks plugin to upload images.
Ruby
3
star
41

swfmp3

The MP3 player that Does Much Less™
ActionScript
3
star
42

qmk_user_folder

C
2
star
43

cornelius

Keymap for my Cornelius keyboard
C
2
star
44

sketch-image-downloader

A Sketch module to handle image downloads and insertion in documents
JavaScript
2
star
45

jcrop

git mirror of http://deepliquid.com/content/Jcrop.html
JavaScript
2
star
46

green-theme-for-dokuwiki

A simple theme for DokuWiki
PHP
2
star
47

sketch-alpha-window

JavaScript
2
star
48

crkbd-mini

QMK keymap for 3x5 Corne Keyboard
C
2
star
49

chic

A Sketch Assistant to warn you about text layers that don't use a Style
TypeScript
2
star
50

me

HTML
2
star
51

poster-plugin-fireworks

The companion Fireworks plugin for Poster
JavaScript
2
star
52

nathan-pitman-fireworks-extensions

A mirror of the Fireworks extensions released by Nathan Pitman
2
star
53

bsapi

A collection of ActionScript libraries I happen to use *quite* a lot
ActionScript
2
star
54

10th-anniversary

A Sketch plugin to celebrate its 10th Anniversary
JavaScript
2
star
55

open-export-folder

Opens the export folder in Finder after an export operation in Sketch
JavaScript
1
star
56

reveal-local-cache-sketchplugin

Plugin to reveal the currently open document in Finder
JavaScript
1
star
57

dotfiles

My dotfiles
Shell
1
star
58

safari-css-cursor-bug

Sample code to demonstrate a bug in Safari’s rendering of CSS cursors
HTML
1
star
59

sketch-plugin-update-demo

JavaScript
1
star
60

sofanaranja

sofanaranja.com
HTML
1
star
61

sketch-plugin-updater-lib

A library to check if a Sketch plugin is up to date compare to its master version
JavaScript
1
star
62

artboard-automargin

Automatically expand your layers to fill the Artboard width
JavaScript
1
star
63

atreus

Keymap for Keyboardio Atreus
C
1
star
64

sketch-data-parser

A sketch plugin to parse your data and populate your design
1
star
65

idobo

QMK Keymap & configuration for my Idobo keyboard
C
1
star
66

ama

Ask Me Anything!
1
star
67

fontbook

FontBook creates a bunch of random text layers, using all the installed font families in your computer
JavaScript
1
star