Supernova is a design system platform that manages your assets, tokens, components and allows you to write spectacular documentations for your entire teams. And because you found your way here, you are probably interested in its most advanced functionality - automatic hand-off of design and development assets, tokens and data in general. To learn everything Supernova, please check out our developer documentation.
The PNG Asset exporter allows you to export a list of images in such a way that it can be immediately used in your production codebase. This specific exporter exports assets in generic fashion, as 1x, 2x and 3x PNG format.
This exporter will render image assets defined inside one specific brand and will produce the following structure:
/icons
/top_menu
|- burger.png
|- [email protected]
|- [email protected]
|- user.png
|- [email protected]
|- [email protected]
The names of icons will be constructed from the original name and path built from segments which correspond to groups the Supernova (and Figma) groups. For example:
Icons
|- Top Menu
|- burger
|- user
Names follow icon-name
convention and will create separate directories for each group detected, also following directory-name
convention. The above example will be converted to the following icon paths:
/icons/top-menu/burger.png
/icons/top-menu/[email protected]
/icons/top-menu/[email protected]
/icons/top-menu/user.png
/icons/top-menu/[email protected]
/icons/top-menu/[email protected]
This behavior can be fully customized by simply modifying the path generation template file asset_path.pr
. Simply fork, modify and upload as your version of the exporter. If you have never done this before, follow our guide to modifying existing exporters.
In order to make the Supernova Flutter PNG Asset exporter available for your organization so you can start generating code from your design system, please follow the installation guide in our developer documentation.
In order to faciliate easy communication and speed up delivery of fixes and features for this exporter, we require everyone to log all issues and feature requests through the issue tracking of this repository.
Please read through the existing issues before you open a new issue! It might be that we have already discussed it before. If you are sure your request wasn't mentioned just yet, proceed to open a new issue and fill in the required information. Thank you!
If you have an idea for improving this exporter package or want a specific issue fixed quickly, we would love to see you contribute to its development!
There are multiple ways you can contribute, so we have written a contribution guide that will walk your through the process. Any pull requests to this repository are very welcome.
Would love to help us build more but maybe need a little bit of support? Join our community and drop us a message, we will support any of your wild ideas!
This exporter is distributed under the MIT license. We absolutely encourage you to clone it and modify it for your purposes, so it fits the requirements of your stack. If you see that you have created something amazing in the process that others would benefit from, we strongly recommend you consider publishing it back to the community as well.
- To learn more about Supernova, go visit our website
- To join our community of fellow developers where we try to push what is possible with design systems and code automation, join our community discord
- To understand everything you can do with Supernova and how much time and resources it can save you, go read our product documentation
- Finally, to learn everything about what exporters are and how you can integrate with your codebase, go read our developer documentation
We are developing and maintaining exporters for many major technologies. Here are all the official exporters maintained by Supernova:
- iOS Token & Style Exporter
- iOS Localization Exporter
- Android Token & Style Exporter
- React Token & Style Exporter
- Flutter Token & Style Exporter
- Angular Token & Style Exporter
- Typescript Token & Style Exporter
- CSS Token & Style Exporter
- LESS Token & Style Exporter
- SCSS Token & Style Exporter
- Style Dictionary Exporter
Additionally, you can also use asset exporters for all major targets, enjoy!:
- SVG Asset Exporter
- PDF Asset Exporter
- PNG Asset Exporter
- iOS Asset Catalogue Exporter
- React Native Asset Exporter
- Android Asset Exporter
- Flutter PNG Asset Exporter
- Flutter SVG Asset Exporter
To browse all exporters created by our amazing community, please visit the Supernova Exporter Store.