Skip to the content
FilDocs

Export a website, or sync it to GitHub

Download a Fil site as HTML or a zip, copy a page as a prompt, bring it into Figma or Framer as layers, or push it to its own GitHub repository.

Every site you make in Fil is yours to take away. Download one page as an HTML file, a whole Website as a zip with its pictures, data and design system, or a React app as a Vite project, checked that it builds first if you like. Copy a page as a prompt that builds it in Claude Code, Lovable, v0 or Cursor, or open it in Lovable. Bring it into Figma or Framer as layers to keep designing there. Or keep the site in a GitHub repository of its own: Fil commits and pushes its changes, and pulls what changes on GitHub back in.

With GitHub already connected: a private repository for the site, and its first push

Download a page as an HTML file

  • On the canvas: select a page and click Download HTML in its properties.
  • In the full view: click Download at the top.
  • In the Design tab: Export at the top right, then This page (.html).
The Shop page selected on the Kinfolk Tea canvas, its properties beside it: Design, Turn into skill, Download HTML and Published
Download HTML in a page's properties

You get one .html file with the pictures and videos it shows inside it, so it opens anywhere. Web fonts and scripts from the internet stay as links. A Simple HTML page has no zip: its Export menu has the page, Copy prompt and Open in Lovable.

Download a whole website as a zip

  1. Open one of the site's pages in the Design tab: select it on the canvas and click Design in its properties.
  2. Click Export at the top right, then The whole site (.zip). (The main menu, the Fil logo at the top left, has it too: File, then Download the whole site (.zip).) Fil shows "Zipping the site…", then "Downloaded Kinfolk-Tea.zip: 4 pages."
The Design tab's Export menu open below its button on Kinfolk Tea's home page: This page (.html), The whole site (.zip), Copy prompt, Open in Lovable, Copy for Figma, Copy for Framer and Fil’s Figma plugin
A file, a zip, a prompt for another tool, or layers
In the zipWhat it is
index.html, shop.html…Every page, the home page as index.html. Links between them work
products/…A page for each entry of a collection with a detail page
data/The site's content as JSON (or CSV or SQL, as its data node keeps it)
images/Every picture and video the pages show, at full size, as they were made
design-system/Its colours, type and components: tokens.css, tokens.json (W3C design tokens), design-system.json, a styleguide.html, each component as HTML, and a README

The zip is named after the site. Open index.html in a browser, or upload the folder to any web host. Its pictures are the originals, so a zip can be bigger than the published site, which serves lighter copies (see Publish a website). To export the design system on its own, see Design systems.

Copy a page as a prompt

Copy prompt writes the page out as a prompt for Claude Code, Lovable, v0, Cursor or any other tool that builds from words. Fil reads it from the page as it shows in the Design tab, so it has the page's exact words, colours, fonts and sizes, not a guess at them.

  1. Open the page in the Design tab.
  2. Click Export at the top right, then Copy prompt. (Or the main menu: File, then Copy prompt.)
  3. Paste it into the other tool. Fil says "Prompt copied, with its 8 pictures."
In the promptWhat it says
LookThe colours, most used first, with the page's names for them; its fonts and where they come from; each text style (font, weight, size, line height, letter spacing, colour); corners, shadows and how wide the content runs
SectionsEach section from top to bottom: its words as written, links and where they go, buttons and how they look, pictures and their size, what sits side by side, and rows of cards
PicturesA link to each picture. They work for a day, so the prompt asks the tool to save them into the project
MotionEach appear, scroll, hover, press and loop, with its timing
Smaller screensHow the page changes on tablets and phones
The siteFor a page of a website: its other pages and their addresses, and its content as JSON

Copying is free, and nothing leaves Fil until you paste it. A picture written into the page's own code has no link to share: the prompt asks for one like it.

Open a page in Lovable

Export, then Open in Lovable, opens Lovable with the page's prompt in its box, ready for you to send. Lovable also gets a picture of the page and, once the site is published for everyone, its address, so it can look at the page itself. In Fil for Mac it opens in Fil's browser; in a web browser, in a new tab.

A long page is shortened to fit Lovable's 50,000 characters: repeated cards are summed up and long text cut.

Copy a page to Figma or Framer

Copy for Figma and Copy for Framer bring a page into Figma or Framer as layers you can edit: its boxes as frames, with their fills, borders, corners and shadows, its text with its fonts, its pictures and its drawings. Fil reads the page as the Design tab shows it at desktop width, so it comes in looking the same, however it was made.

The Design tab's Export menu on Kinfolk Tea's home page: Copy prompt and Open in Lovable, then Copy for Figma, Copy for Framer and Fil’s Figma plugin
Layers for Figma or Framer

Into Framer

  1. Open the page in the Design tab and click Export, then Copy for Framer. Fil says "Copied Kinfolk Tea for Framer."
  2. In Framer, click on a page's canvas and paste (⌘V). The page comes in as one frame the page's size, with its layers inside.

Framer reads what Fil copies as it reads its own HTML to Framer extension's copies, so nothing needs installing.

Into Figma

The page's design system comes with it: its colours and sizes as Figma variables, with the fills that use them bound to them; its text styles, under Fil in Figma's text styles; and its components, each a main beside the page, with what's on the page an instance of it that keeps its own words and pictures.

Figma takes the page through Fil's plugin, which you add once, in Figma's desktop app:

  1. In the Design tab, click Export, then Fil’s Figma plugin. Unzip Fil for Figma.zip somewhere it can stay.
  2. In Figma, open a design file, then the main menu: Plugins, Development, Import plugin from manifest…, and pick manifest.json in that folder.

Then, for each page:

  1. In the Design tab, click Export, then Copy for Figma.
  2. In Figma, open Plugins, Development, Fil, and press ⌘V in its window. It reads the page's pictures, then builds the page as one frame, selected, in the middle of your view: "Added Kinfolk Tea. 103 layers."
Fil’s plugin window in Figma after a paste: Added Kinfolk Tea, 103 layers, paste another or close
Fil's plugin in Figma, after a paste
  • Rows and columns that line up exactly, such as a menu, a row of cards or sections stacked down the page, come in as auto layout. Everything else keeps its place.
  • Text keeps its font, size, weight, line height, letter spacing, colour and case, and its bold, italic and links. A variable font such as Fraunces keeps its exact weight, and a Figma too old for that gets the nearest style. A font Figma doesn't have becomes Inter: install the page's fonts on your computer first to keep them.
  • Buttons and badges come in as a frame holding their words.

What comes across

FigmaFramer
Boxes, fills, gradients, borders, corners, shadows, blurs✓✓
Text, with its fonts and styles✓✓
Pictures (by links that work for a day)✓✓
Drawings (SVG)✓ as vectors✓
Rows and columns as auto layout or stacks✓As Framer lays them out
Motion, hover states, forms that send, other screen sizes––

A React app has them too: Export in its editor, then Copy for Figma or Copy for Framer. It copies the app as the frame you're editing shows it. Copying is free. A very long page sends its first 4,000 layers, and says so.

Download a React app as a Vite project

  • On the canvas: select the app and click Download project in its properties.
  • In its editor: click Export, then Vite project ("Every module as a file, ready for npm install") or HTML file ("The app as one file, as it runs here").
A React app's Export menu: Vite project, Every module as a file, ready for npm install, HTML file, The app as one file, as it runs here, then Copy prompt, Open in Lovable, Copy for Figma, Copy for Framer and Fil’s Figma plugin
A project to build, one file to open, a prompt, or layers

The same menu has Copy prompt, the app as a prompt with every file of its Vite project in full, and Open in Lovable (see Copy prompt and Open in Lovable).

Download project checks the build first

A Vite project can be checked before it downloads, the way build checks work: Fil installs, builds and tests it as its download. A version that passed its check ("Builds · 152 KB") downloads at once. One that hasn't been checked, or didn't pass, opens a panel under the button first.

Checked first, then downloaded as soon as it passes
  1. Click Download project. The panel reads "This version hasn't been checked", or "This version didn't pass its check" with what failed.
  2. Click Check first (Check again after a check that failed or couldn't run). It's free and takes about 20 seconds: "Checking the build", then "It downloads as soon as it passes."
  3. When it passes, the project downloads, even if you closed the panel, and the properties read "Builds · 152 KB". If it fails, a message says what failed ("The build check found an error, so Driftline wasn't downloaded.") with Download anyway.
    • Or click Download anyway in the panel to take it as it is, unchecked.

In the editor, Download › Vite project checks the version you just saved; when that fails, its panel lists the errors with Fix with agent. Check first counts toward the day's 30 checks; past them, the panel says so and Download anyway still works.

The Vite project is a zip named after the app, such as Driftline.zip. "Downloaded Driftline.zip, a Vite project: npm install, then npm run dev."

unzip Driftline.zip -d driftline
cd driftline
npm install
npm run dev

npm run build writes the finished site to dist/. Inside the project:

FileWhat it is
src/main.jsx, src/index.cssThe entry that starts the app, and its global styles
src/App.jsxThe app and its list of pages
src/pages/, src/components/Each page and component, with its CSS
src/data.jsonIts content, from its data node
src/tokens.cssIts colours and type, from its design system
public/images/The pictures it shows, at full size
index.html, package.jsonThe page that loads the app, and its packages, with React 18
vite.config.js, README.mdVite's settings, and how to run it

The HTML file loads React from the internet when it opens, and isn't checked first. For an app made from a folder you dropped, the HTML file still loads that app's files from Fil, so keep your original project folder for an offline copy. See React apps.

Push a website to GitHub

A Website, a Simple HTML page or a React app can live in a GitHub repository of its own, with every page, its data and its design system as files. It's free on every plan, and each person connects their own GitHub account, so commits are theirs.

Connect your GitHub account

  1. Open the site in the Design tab, or the app in its editor, and click Publish at the top right (Published or Update once the site is live).
  2. In the GitHub row, click Connect…. The GitHub panel opens: "Keep Kinfolk Tea on GitHub" (for a React app, "Keep this app on GitHub").
  3. Click Connect GitHub and sign in to GitHub in the window that opens.
  4. The first time, the panel then reads Install Fil on GitHub: click it, and on GitHub choose the account or organization Fil may make repositories in. You can limit it to the repositories you pick.
The GitHub panel before connecting: Keep Kinfolk Tea on GitHub, a private repository of your own, and Connect GitHub
Fil acts as you, only on the repositories you let it reach

Make a repository and push the site

Once you're connected, the panel offers a repository (the recording at the top of this page shows every step). Once it's made, the panel lists what the first push sends:

The GitHub panel after Create repository: avalin/kinfolk-tea, Not pushed yet with 25 files ready, the files listed, the message Kinfolk Tea from Fil and Push to GitHub, under the bar's GitHub button with ↑25
A new repository, and what its first push will send
  1. Pick New repository, and the Account to make it in: yours, or an organization (Add an account or organization… adds another). The name starts as the site's; Private is on. Click Create repository: "Made avalin/kinfolk-tea. Push the site to fill it."
  2. The panel says "Not pushed yet" and lists the files. The commit message starts as "Kinfolk Tea from Fil" ("The app from Fil" for a React app). Click Push to GitHub.
  3. "Pushed 25 files." with View the commit, and the status reads Up to date.
  • Use an existing one links a repository you already have instead. An empty one, or one with only a README, a license or this site's own files, links at once. One with other files asks first, and its button becomes Link portfolio, keeping its files (with your repository's name). Fil never changes the files it didn't make, such as a backend, workflows or docs, and any of the site's own files that GitHub has differently wait for you to pick Keep GitHub’s or Keep Fil’s.
  • Sync automatically is on once a site has a repository, new or linked: while the site is open in the Design tab, saves go to GitHub and GitHub's changes come in on their own. Turn it off in the panel to push and pull yourself. A repository linked keeping its files starts with it off: turn it on once its files are settled.
  • Once a site has a repository, a GitHub button sits at the top of its editor, with a badge for what's waiting: ↑3 to push, ↓1 to pull.
The GitHub panel's Use an existing one with portfolio picked, which has files: portfolio has 4 files of its own, Fil leaves them as they are, and Link portfolio, keeping its files
A repository with files of its own keeps them

Push later changes

The bar's GitHub button with ↑3 above the GitHub panel: 3 changes to push, Home and Shop where 16 became 17 and a price in Kinfolk Tea data, then the message and Commit & push 3 changes
Each changed file, and what changed in it
  1. Click the GitHub button at the top of the editor.
  2. The panel lists each changed file with a letter (A new, M changed, D removed) and what changed in it, such as “16” → “17” for a price. The message is written from those changes; edit it if you like.
  3. Click Commit & push 3 changes (the number is how many).

With Sync automatically on, Fil does this on each save.

Bring a repository onto the canvas

A project already on GitHub can come into Fil, as a React app or a site.

  1. On the canvas, click + in the toolbar, then Import › From GitHub….
  2. Paste the repository's link, such as github.com/owner/repository, or just owner/repository, and click Import. For one folder of it, paste that folder's link, such as github.com/owner/repository/tree/main/web.
  3. A React project (a package.json with React and a src folder) becomes a React app node, a site a Website, with its pictures and files. The node's note says which repository it came from.
  • Public repositories come straight in. For a private one, connect GitHub first in any site's GitHub panel: Fil reads it with your GitHub account, so it brings in what you can see.
  • Fil reads up to 800 files, and leaves out what a site doesn't use, such as node_modules, workflows and the README. The note after it says what was left out.
  • What comes in is a copy. To keep it in step with the repository, open its GitHub panel and link it with Use an existing one.

Pull changes made on GitHub

When someone changes the repository on GitHub, the badge shows ↓ and the panel says Updates on GitHub, with the new commits and the files they touched.

The GitHub panel with Updates on GitHub: nora-k changed About to "blended and packed by hand", and Pull 1 file
Changes from GitHub come back as new versions
  • Click Pull 1 file (the number is how many). Each file comes back as a new version of its page, data or design system, at no cost, and pages that use them follow.
  • Pages and text merge line by line, and data field by field, so changes to different parts never clash. When GitHub and Fil both changed a file, in different places, the button reads Pull and merge: one pull brings both together.
  • When Fil and GitHub changed the same lines, the panel shows both: pick Keep GitHub’s or Keep Fil’s.
  • A new top-level page file made on GitHub, such as contact-us.html, becomes a new page of the site. A page deleted on GitHub stays in Fil.
  • Files Fil doesn't make, such as a license or GitHub workflows, are never touched.

What's in the repository

  • A Simple HTML page: the page and the pictures it shows, with a README.
  • A Website: the same files as its zip, plus a README, except that a collection's detail page is one template, products/[slug].html, instead of a page for each entry. Pages, data/ and design-system/tokens.css and styleguide.html come back into Fil when you pull; the other design-system files and the pictures, at full size, are made from Fil's copies.
  • A React app: its Vite project. Its modules, src/data.json and src/tokens.css come back when you pull; index.html, package.json and the rest of the project stay as GitHub has them.
  • Unlink, at the foot of the panel, stops syncing this site for everyone on the canvas. The repository stays on GitHub.
  • Disconnect signs you out of GitHub in Fil. Your repositories stay.

What's next