forked from RedMadRobot/figma-export
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfigma-export.yaml
More file actions
71 lines (65 loc) · 3.31 KB
/
figma-export.yaml
File metadata and controls
71 lines (65 loc) · 3.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
figma:
lightFileId: BEjfU0kCVnPqXdRLfoLvkf
darkFileId: QwF30YrucxVwQyBNT0C09i
# [optional] Common export parameters
common:
# [optional]
colors:
# [optional] RegExp pattern for color name validation before exporting. Use to validate color name in Figma file
nameValidateRegexp: '^[a-zA-Z_]+$' # RegExp pattern for: background, background_primary, widget_primary_background
# [optional]
icons:
# [optional] RegExp pattern for icon name validation before exporting. Use to validate icon name in Figma file
nameValidateRegexp: '^(ic)_(\d\d)_([a-z0-9_~]+)$' # RegExp pattern for: ic_24_icon_name, ic_24_icon
# [optional]
images:
# [optional] RegExp pattern for image name validation before exporting. Use to validate image name in Figma file
nameValidateRegexp: '^(img)_([a-z0-9_~]+)$' # RegExp pattern for: img_zero_empty, img_widget_large
# [optional] iOS export parameters
ios:
# Path to xcodeproj
xcodeprojPath: "./Example.xcodeproj"
# Xcode Target containing resources and corresponding swift code
target: "UIComponents"
# Path to the Assets.xcassets directory
xcassetsPath: "./UIComponents/Resource/Assets.xcassets"
# Is Assets.xcassets located in the main bundle?
xcassetsInMainBundle: false
# Parameters for exporting colors
colors:
# Should be generate color assets instead of pure swift code
useColorAssets: True
# Name of the folder inside Assets.xcassets where to place colors (.colorset directories)
assetsFolder: Colors
# Color name style: camelCase or snake_case
nameStyle: camelCase
# [optional] Absolute or relative path to swift file where to export UIKit colors (UIColor) for accessing from the code (e.g. UIColor.backgroundPrimary)
colorSwift: "./UIComponents/Source/UIColor+extension.swift"
# Parameters for exporting icons
icons:
format: pdf
# Name of the folder inside Assets.xcassets where to place icons (.imageset directories)
assetsFolder: Icons
# Icon name style: camelCase or snake_case
nameStyle: camelCase
# [optional] Absolute or relative path to swift file where to generate extension for UIImage for accessing icons from the code (e.g. UIImage.ic24ArrowRight)
imageSwift: "./UIComponents/Source/UIImage+extension_icons.swift"
# Parameters for exporting images
images:
# Name of the folder inside Assets.xcassets where to place images (.imageset directories)
assetsFolder: Illustrations
# Image name style: camelCase or snake_case
nameStyle: camelCase
# [optional] Absolute or relative path to swift file where to generate extension for UIImage for accessing illustrations from the code (e.g. UIImage.illZeroNoInternet)
imageSwift: "./UIComponents/Source/UIImage+extension_illustrations.swift"
# Parameters for exporting typography
typography:
# [optional] Absolute or relative path to styles folder.
stylesDirectory: "./Source/UIKit/Styles"
# [optional] Absolute or relative path to swift file where to export SwiftUI fonts (Font extension).
swiftUIFontSwift: "./Source/View/Common/Font+extension.swift"
# Should FigmaExport generate components for styling
generateComponents: true
# Relative or absolute path to directory where to place component files: labels, buttons, etc. (Requred if generateLabels = true)
componentsDirectory: "./Source/UIKit/Components"