0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-21 21:23:06 -05:00
Penpot exporter Figma plugin
Find a file
github-actions[bot] b652af158e
Version Packages (#182)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-19 17:02:20 +02:00
.changeset Version Packages (#182) 2024-06-19 17:02:20 +02:00
.github/workflows Add release management with changelog (#46) 2024-04-19 13:21:32 +02:00
plugin-src Use Fill Styles to generate fills more efficiently (#180) 2024-06-19 15:58:13 +02:00
resources Uploaded screenshot explaining import (#19) 2023-01-11 09:43:44 +01:00
ui-src Fix plugin scrollbar (#181) 2024-06-19 17:01:37 +02:00
.editorconfig Update packages and add linters (#1) 2024-04-08 11:43:30 +02:00
.eslintignore replace webpack for esbuild (#17) 2024-04-12 18:52:19 +02:00
.eslintrc.cjs Implement unordered and ordered lists (#88) 2024-05-07 12:18:15 +02:00
.gitignore Update packages and add linters (#1) 2024-04-08 11:43:30 +02:00
.nvmrc Update packages and add linters (#1) 2024-04-08 11:43:30 +02:00
.prettierignore Added support for corner radius (#57) 2024-04-22 12:50:38 +02:00
CHANGELOG.md Version Packages (#182) 2024-06-19 17:02:20 +02:00
DEV_GUIDE.md Update packages and add linters (#1) 2024-04-08 11:43:30 +02:00
LICENSE Update LICENSE 2023-02-07 15:52:31 +01:00
manifest.json Change plugin ID (#147) 2024-06-07 11:09:12 +02:00
package-lock.json Fix plugin scrollbar (#181) 2024-06-19 17:01:37 +02:00
package.json Version Packages (#182) 2024-06-19 17:02:20 +02:00
penpotexporter.gif v0.0.1 2022-10-11 15:55:08 +02:00
prettier.config.mjs Add typescript aliases for imports (#16) 2024-04-12 16:52:36 +02:00
README.md Add release management with changelog (#46) 2024-04-19 13:21:32 +02:00
stylelint.config.mjs Update packages and add linters (#1) 2024-04-08 11:43:30 +02:00
tsconfig.base.json replace webpack for esbuild (#17) 2024-04-12 18:52:19 +02:00
vite.config.ts fix styles (#101) 2024-05-13 10:29:40 +02:00


PENPOT
PENPOT EXPORTER

License: MPL-2.0 Managed with Taiga.io Gitpod ready-to-code

Penpot WebsiteExport Figma to Penpot (penpot community)Penpot Community

Help us

This is a very early-stage Figma plugin to export Figma files to Penpot format. For now is little more than a proof of concept, or a first scaffolding, not a fully functional exporter.

Table of contents

Why a Penpot exporter

The aim of this plugin is to help people migrate their files from Figma to Penpot. Migrating work from one design tool to another was never an easy task due to the abundance of closed and non-standard formats, and this is not a different case. Our approach to better solve this situation is to release a code skeleton for the minimum version of a Figma plugin that can convert a Figma file into a Penpot annotated SVG file.

There is a sense of urgency for this capability because there is a feeling that Adobe might force Figma to limit exports and interoperability via plugins very soon.

Getting started

This plugin makes use of npm, webpack and react, and is written on TypeScript. It also includes a Penpot file builder library.

Pre-requisites

To use this plugin, you will need to have node and npm installed on your computer. If you don't already have these, you can download and install them from the official website (https://nodejs.org/en/).

Once you have node and npm installed, you will need to download the source code for this plugin. You can do this by clicking the "Clone or download" button on the GitHub page for this project and then selecting "Download ZIP". Extract the ZIP file to a location on your computer.

Building

For Windows users:

  1. Open the terminal by searching for "Command Prompt" in the start menu.
  2. Use the cd command to navigate to the folder where the repository has been extracted. For example, if the repository is located in the Downloads folder, you can use the following command: cd Downloads/penpot-exporter-figma-plugin.
  3. Once you are in the correct folder, you can run the npm install command to install the dependencies, and then the npm run build command to build the plugin.

For Mac users:

  1. Open the terminal by searching for "Terminal" in the Launchpad or by using the Command + Space keyboard shortcut and searching for "Terminal".
  2. Use the cd command to navigate to the folder where the repository has been extracted. For example, if the repository is located in the Downloads folder, you can use the following command: cd Downloads/penpot-exporter-figma-plugin.
  3. Once you are in the correct folder, you can run the npm install command to install the dependencies, and then the npm run build command to build the plugin.

For Linux users:

  1. Open the terminal by using the Ctrl + Alt + T keyboard shortcut.
  2. Use the cd command to navigate to the folder where the repository has been extracted. For example, if the repository is located in the Downloads folder, you can use the following command: cd Downloads/penpot-exporter-figma-plugin.
  3. Once you are in the correct folder, you can run the npm install command to install the dependencies, and then the npm run build command to build the plugin.

Add to Figma

Figma menu > Plugins > Development > Import plugin from manifest… To add the plugin to Figma, open Figma and go to the Plugins menu. Select Development and then choose Import plugin from manifest….

Screenshot of the Plugins > Development menus open showing the, "Import plugin from manifest" option.

Select the manifest.json file that is located in the folder where you extracted the source code for the plugin.

To use the plugin

  1. Select what you want to export
  2. Figma menu > Plugins > Development > Penpot Exporter go to the Plugins menu in Figma and select Development followed by Penpot Exporter.
  3. This will generate a .zip file that you can import into Penpot.

Call to the community

Answering to the interest expressed by community members to build the plugin by themselves, at the Penpot team we decided to help solve the need without having to depend on our current product priorities. That is why we have published this bare minimum version of the plugin, unsatisfactory in itself, but it unlocks the possibility for others to continue the task.

Yes, we are asking for help. 🤗

We have explained this approach in a community post. Feel free to join the conversation there.

What can this plugin currently import?

As mentioned above, this plugin gets you to a starting point. Things that are currently included in the import are:

  • Basic shapes (rectangles, ellipses).
  • Frames (Boards in Penpot).
  • Groups.
  • Fills (solid colors and linear gradients).
  • Texts (basic support. Only fonts available on Google fonts).
  • Images (basic support)

Limitations

The obvious limitations are the features that are in Figma but not in Penpot or work differently in both tools so they can not be easily converted. We leave some comments below about the ones that are commonly considered more important:

  • Autolayout: Not in Penpot yet but in a very advanced state of development. There will be news soon.
  • Components: Currently very different from their counterparts at Figma. However, Penpot components are under a rework that we expect will make the conversion easier.
  • Variants: Not expected in the short term. Also, we are thinking of different solutions to solve component states, things that eventually could make it difficult to import.

Contributing

If you want to make many people very happy and help us build this code skeleton for the minimum version of the Figma plugin, a further effort will be needed to have a satisfactory import experience.

For instance, it will be interesting to add:

  • Strokes
  • Fills with radial gradients
  • Paths
  • Images (full support)
  • Texts (full support)
  • Rotations
  • Constraints
  • ...

Motivated to contribute? Take a look at our Contributing Guide that explains our guidelines (they're for the Penpot Core, but are mostly of application here too).

License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) KALEIDOS INC

Penpot and the Penpot exporter plugin are Kaleidos open source projects