How to Run Framer JS on Windows
2 (Mostly) hassle free ways to compile and run
Since releasing the Fluent Design Toolkit, there’s been a lot of interest in the Windows Framer Toolkit. Framer is a powerful tool that we use every day here at Microsoft, which may lead some to wonder How do you run Framer on Windows?
Framer Studio is only available for Mac. But since Framer’s code is open source, you can compile and run on Windows without much hassle (ok, a little bit). There are two options to do this. Option 1 is based on node.js, uses VS Code, and Gulp. We use this method a lot, especially since we create and use a lot of modules, and it offers full module support. Option 2 is easier, uses Atom, but has some limitations, especially with modules.
Option 1— Framer Boilerplate
- Install node.js
- Install Git (if you haven’t already)
- Install Gulp — Open up Command Prompt and type
npm install -g gulp-cli. Gulp enables compiling a Framer project and viewing it in any browser.
- Download Framer Boilerplate to a place that you’ll remember. You’ll be coming back to this for each Framer project you create. Framer Boilerplate is what does all the Framery magic.
- Copy the Framer Boilerplate files to your working directory. I put mine at
- If you are using any Modules, put them in the
C:\src\[project-name]\app\modules\directory. You’ll see we’ve already included some basic modules from the Windows Framer Toolkit.
- In Command Prompt, browse to your project
cd \src\[project-name]and type
- Open up your project in VS Code. Because CoffeeScript files are whitespace dependent, it’s important to make sure your code editor has the correct whitespace and tab settings.
* Tab space: 4
* Tab type: hard
- In Command Prompt, run a gulp server by typing
gulpfrom the root of your project.
- Browse to http://localhost:3000 and witness the magic!
Option 2 — atom-live-server
- Install Atom
control + ,to get into Atom’s settings
- Click on
- Search for
atom-live-serverand install it
- Open your Framer project’s
app.coffeefile in Atom
- In Atom do
ctrl + alt +lto run a server (or, find your
Packagesmenu, and select
atom-live-server > start server. It will automatically open your Framer project in your default browser.
- To stop a server, in Atom do
ctrl + alt + q(or, find your
Packagemenu, and select
atom-live-server > stop server)
With atom-live-server, it might be good to create an empty Framer project from Framer Studio that you can use as a starting point for new projects. OR, you can copy/paste/rename existing projects.
More on Fluent Design System
Joe Day designs for Windows, does music and photography for fun, and is a PSIA certified ski instructor.