Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Demo/.figmagen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ tokens:
destination: FigmaGenDemo/Generated/BaseColorTokens.swift
templateOptions:
publicAccess: true
fontFamilies:
destination: FigmaGenDemo/Generated/FontFamilyTokens.swift
templateOptions:
publicAccess: true
typographies:
destination: FigmaGenDemo/Generated/TypographyTokens.swift
templateOptions:
publicAccess: true
styleTypeName: Typography
28 changes: 24 additions & 4 deletions Demo/FigmaGenDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
8E5334162A420D9B006D6569 /* SF-Pro-Display-Semibold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 8E5334062A420D9B006D6569 /* SF-Pro-Display-Semibold.otf */; };
8E5334172A420D9B006D6569 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E5334072A420D9B006D6569 /* AppDelegate.swift */; };
8E53341C2A420DA4006D6569 /* FigmaGenDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E53341A2A420DA4006D6569 /* FigmaGenDemoTests.swift */; };
8EFF17F52A70096E00C47577 /* FontFamilyTokens.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EFF17F32A70096D00C47577 /* FontFamilyTokens.swift */; };
8EFF17F62A70096E00C47577 /* TypographyTokens.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EFF17F42A70096D00C47577 /* TypographyTokens.swift */; };
8EFF17F92A70233300C47577 /* Inter-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = 8EFF17F72A70233300C47577 /* Inter-Regular.otf */; };
8EFF17FA2A70233300C47577 /* Inter-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 8EFF17F82A70233300C47577 /* Inter-Bold.otf */; };
8EFF17FC2A7023AE00C47577 /* Roboto-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8EFF17FB2A7023AE00C47577 /* Roboto-Regular.ttf */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -76,6 +81,11 @@
8E5334082A420D9B006D6569 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
8E53341A2A420DA4006D6569 /* FigmaGenDemoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FigmaGenDemoTests.swift; sourceTree = "<group>"; };
8E53341B2A420DA4006D6569 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
8EFF17F32A70096D00C47577 /* FontFamilyTokens.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FontFamilyTokens.swift; sourceTree = "<group>"; };
8EFF17F42A70096D00C47577 /* TypographyTokens.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TypographyTokens.swift; sourceTree = "<group>"; };
8EFF17F72A70233300C47577 /* Inter-Regular.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Inter-Regular.otf"; sourceTree = "<group>"; };
8EFF17F82A70233300C47577 /* Inter-Bold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Inter-Bold.otf"; sourceTree = "<group>"; };
8EFF17FB2A7023AE00C47577 /* Roboto-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-Regular.ttf"; sourceTree = "<group>"; };
8FC235E00E36DC62C4755546 /* Pods-Fugen Demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Fugen Demo.debug.xcconfig"; path = "Target Support Files/Pods-Fugen Demo/Pods-Fugen Demo.debug.xcconfig"; sourceTree = "<group>"; };
A8D0E422FCBD612FC060F4E3 /* Pods-FigmaGenDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FigmaGenDemo.debug.xcconfig"; path = "Target Support Files/Pods-FigmaGenDemo/Pods-FigmaGenDemo.debug.xcconfig"; sourceTree = "<group>"; };
BEAAC6E1082665BBB49FA803 /* Pods-FugenDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FugenDemo.release.xcconfig"; path = "Target Support Files/Pods-FugenDemo/Pods-FugenDemo.release.xcconfig"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -135,9 +145,11 @@
8E44BFD22A67ECB300EE5D7E /* BaseColorTokens.swift */,
8E5333F72A420D9B006D6569 /* ColorStyle.swift */,
8E44BFD32A67ECB300EE5D7E /* ColorTokens.swift */,
8EFF17F32A70096D00C47577 /* FontFamilyTokens.swift */,
8E5333F62A420D9B006D6569 /* Images.swift */,
8E5333F42A420D9B006D6569 /* ShadowStyle.swift */,
8E5333F52A420D9B006D6569 /* TextStyle.swift */,
8EFF17F42A70096D00C47577 /* TypographyTokens.swift */,
);
path = Generated;
sourceTree = "<group>";
Expand All @@ -164,10 +176,13 @@
8E5334012A420D9B006D6569 /* Fonts */ = {
isa = PBXGroup;
children = (
8E5334022A420D9B006D6569 /* SF-Pro-Display-Light.otf */,
8E5334032A420D9B006D6569 /* SF-Pro-Display-Regular.otf */,
8EFF17F82A70233300C47577 /* Inter-Bold.otf */,
8EFF17F72A70233300C47577 /* Inter-Regular.otf */,
8EFF17FB2A7023AE00C47577 /* Roboto-Regular.ttf */,
8E5334042A420D9B006D6569 /* SF-Pro-Display-Bold.otf */,
8E5334022A420D9B006D6569 /* SF-Pro-Display-Light.otf */,
8E5334052A420D9B006D6569 /* SF-Pro-Display-Medium.otf */,
8E5334032A420D9B006D6569 /* SF-Pro-Display-Regular.otf */,
8E5334062A420D9B006D6569 /* SF-Pro-Display-Semibold.otf */,
);
path = Fonts;
Expand Down Expand Up @@ -304,10 +319,13 @@
buildActionMask = 2147483647;
files = (
8E5334152A420D9B006D6569 /* SF-Pro-Display-Medium.otf in Resources */,
8EFF17F92A70233300C47577 /* Inter-Regular.otf in Resources */,
8E5334102A420D9B006D6569 /* Colors.xcassets in Resources */,
8E5334122A420D9B006D6569 /* SF-Pro-Display-Light.otf in Resources */,
8E5334112A420D9B006D6569 /* Images.xcassets in Resources */,
8E53340D2A420D9B006D6569 /* LaunchScreen.storyboard in Resources */,
8EFF17FC2A7023AE00C47577 /* Roboto-Regular.ttf in Resources */,
8EFF17FA2A70233300C47577 /* Inter-Bold.otf in Resources */,
8E5334142A420D9B006D6569 /* SF-Pro-Display-Bold.otf in Resources */,
8E5334162A420D9B006D6569 /* SF-Pro-Display-Semibold.otf in Resources */,
8E5334132A420D9B006D6569 /* SF-Pro-Display-Regular.otf in Resources */,
Expand Down Expand Up @@ -373,6 +391,8 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
8EFF17F62A70096E00C47577 /* TypographyTokens.swift in Sources */,
8EFF17F52A70096E00C47577 /* FontFamilyTokens.swift in Sources */,
8E44BFD42A67ECB300EE5D7E /* BaseColorTokens.swift in Sources */,
8E5334172A420D9B006D6569 /* AppDelegate.swift in Sources */,
8E53340F2A420D9B006D6569 /* ViewController.swift in Sources */,
Expand Down Expand Up @@ -523,7 +543,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -578,7 +598,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down
21 changes: 21 additions & 0 deletions Demo/FigmaGenDemo/Generated/FontFamilyTokens.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// swiftlint:disable all
// Generated using FigmaGen - https://github.com/hhru/FigmaGen
public struct FontFamilyTokens {

public struct Heading {
public let headingRegular = "Inter-Regular"
public let headingBold = "Inter-Bold"
public let bodyRegular = "Inter-Regular"
public let bodyBold = "Inter-Bold"
}

public struct Body {
public let headingRegular = "Roboto-Regular"
public let headingBold = "Roboto-Bold"
public let bodyRegular = "Roboto-Regular"
public let bodyBold = "Roboto-Bold"
}

public let heading = Heading()
public let body = Body()
}
Loading