-
Notifications
You must be signed in to change notification settings - Fork 114
/
figma-export.yaml
73 lines (67 loc) · 3.5 KB
/
figma-export.yaml
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
72
73
---
figma:
lightFileId: G85iqgmYDrE5WrjDmiAZ6G
darkFileId: 3xUDq03vQwF1tAFBK6A9Tf
# [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:
# Path to directory where to place UIFont+extension.swift file
fontSwift: "./UIComponents/Source/Typography/UIFont+extension.swift"
# [optional] Absolute or relative path to swift file where to generate LabelStyle extensions for each style (LabelStyle extension).
labelStyleSwift: "./UIComponents/Source/Typography/LabelStyle+extension.swift"
# Will FigmaExport generate UILabel for each text style (font) e.g. HeaderLabel, BodyLabel, CaptionLabel.
generateLabels: true
# Path to directory where to place UILabel for each text style (font) (Required if generateLabels = true)
labelsDirectory: "./UIComponents/Source/Typography"
# Typography name style: camelCase or snake_case
nameStyle: camelCase