The UI-Kit of the example project in Figma:
FigmaExport Example File [Light]
FigmaExport Example File [Dark]
There are 2 example iOS projects in Example
and ExampleSwiftUI
directories which demostrates how to use figma-export with UIKit and SwiftUI.
How to setup iOS project
- Open
Example/fastlane/.env
file. - Change FIGMA_PERSONAL_TOKEN to your personal Figma token.
- Go to
Example
folder. - Run the following command in Termanal to install cocoapods and fastlane:
bundle install
- Run the following command in Termanal to install figma-export:
bundle exec pod install
How to export resources from figma
- To export colors run:
bundle exec fastlane export_colors
- To export typography run:
bundle exec fastlane export_typography
There is an example Android Studio project in AndroidExample
directory which demostrates how to use figma-export
.
How to export resources from figma to the project
- To export colors run:
figma-export colors
- To export typography run:
figma-export typography
There is an example Android Studio project in AndroidComposeExample
directory which demostrates how to use figma-export
configured for Jetpack Compose.
You can find the generated code for compose in the package com.redmadrobot.androidcomposeexample.ui.figmaexport
How to export resources from figma to the project
- To export colors run:
figma-export colors
- To export typography run:
figma-export typography