You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -311,11 +311,12 @@ File | Styles
311
311
312
312
For `figma-export icons`
313
313
314
-
Your Figma file must contains a frame with `Icons` name which contains components for each icon.
314
+
By default your Figma file should contains a frame with `Icons` name which contains components for each icon. You may change a frame name in a [config](Config.md) file by setting `common.icons.figmaFrameName` property.
315
315
316
316
For `figma-export images`
317
317
318
-
Your Figma file must contains a frame with `Illustrations` name which contains components for each illustration.
318
+
Your Figma file should contains a frame with `Illustrations` name which contains components for each illustration. You may change a frame name in a [config](Config.md) file by setting `common.images.figmaFrameName` property.
319
+
319
320
If you support dark mode you must have two Figma files.
Copy file name to clipboardExpand all lines: Release/figma-export.yaml
+31-8Lines changed: 31 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
figma:
3
-
# Identifier of Figma file
3
+
# Identifier of the file containing light color palette, icons and light images. To obtain a file id, open the file in the browser. The file id will be present in the URL after the word file and before the file name.
4
4
lightFileId: shPilWnVdJfo10YF12345
5
-
# [optional] Identifier of Figma file for dark mode
5
+
# [optional] Identifier of the file containing dark color palette and dark images.
6
6
darkFileId: KfF6DnJTWHGZzC912345
7
7
8
8
# [optional] Common export parameters
@@ -11,24 +11,30 @@ common:
11
11
# RegExp pattern for color name validation before exporting
# Xcode Target containing resources and corresponding swift code
29
+
target: "UIComponents"
24
30
# Absolute or relative path to the Assets.xcassets directory
25
31
xcassetsPath: "./Resources/Assets.xcassets"
26
32
# Is Assets.xcassets located in the main bundle?
27
33
xcassetsInMainBundle: true
28
34
29
35
# Parameters for exporting colors
30
36
colors:
31
-
#Should be generate color assets instead of pure swift code
37
+
#How to export colors? Use .xcassets and UIColor extension (useColorAssets = true) or extension only (useColorAssets = false)
32
38
useColorAssets: True
33
39
# [required if useColorAssets: True] Name of the folder inside Assets.xcassets where to place colors (.colorset directories)
34
40
assetsFolder: Colors
@@ -47,13 +53,15 @@ ios:
47
53
assetsFolder: Icons
48
54
# Icon name style: camelCase or snake_case
49
55
nameStyle: camelCase
50
-
# [optional] Enable Preserve Vector Data for specified icons
56
+
# [optional] An array of icon names that will supports Preseve Vecotor Data
51
57
preservesVectorRepresentation:
52
58
- ic24TabBarMain
53
59
- ic24TabBarEvents
54
60
- ic24TabBarProfile
55
61
# [optional] Absolute or relative path to swift file where to export icons (SwiftUI’s Image) for accessing from the code (e.g. Image.illZeroNoInternet)
# [optional] Absolute or relative path to swift file where to generate extension for UIImage for accessing icons from the code (e.g. UIImage.ic24ArrowRight)
# [optional] Absolute or relative path to swift file where to export images (SwiftUI’s Image) for accessing from the code (e.g. Image.illZeroNoInternet)
# [optional] Absolute or relative path to swift file where to generate extension for UIImage for accessing illustrations from the code (e.g. UIImage.illZeroNoInternet)
0 commit comments