From 65edeb07333fd2f1d0d6f64632746a4112263a98 Mon Sep 17 00:00:00 2001 From: "p.strelchenko" Date: Sun, 10 May 2026 19:01:04 +0500 Subject: [PATCH 1/3] =?UTF-8?q?[MOB-60077]=20=D0=94=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D1=8F=D0=B5=D1=82=20=D0=BF=D1=80=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=BE=D1=81=20rawValue=20=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B0?= =?UTF-8?q?=D1=81=D0=BF=D0=B0=D1=80=D1=88=D0=B5=D0=BD=D0=BD=D1=8B=D1=85=20?= =?UTF-8?q?=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D0=B9=20letterSpacin?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Generators/Tokens/Contexts/TypographyToken.swift | 10 +++++++++- .../Typography/DefaultTypographyTokensGenerator.swift | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Sources/FigmaGen/Generators/Tokens/Contexts/TypographyToken.swift b/Sources/FigmaGen/Generators/Tokens/Contexts/TypographyToken.swift index 28d06cf..8cd2cb0 100644 --- a/Sources/FigmaGen/Generators/Tokens/Contexts/TypographyToken.swift +++ b/Sources/FigmaGen/Generators/Tokens/Contexts/TypographyToken.swift @@ -6,12 +6,20 @@ struct TypographyToken { typealias FontSizeToken = ContextToken typealias FontScaleToken = ContextToken - typealias LetterSpacingToken = ContextToken typealias LineHeightToken = ContextToken typealias TextDecorationToken = ContextToken typealias ParagraphSpacingToken = ContextToken typealias ParagraphIndentToken = ContextToken + struct LetterSpacingToken { + + // MARK: - Instance Properties + + let path: [String] + let value: String + let rawValue: String + } + // MARK: - Instance Properties let path: [String] diff --git a/Sources/FigmaGen/Generators/Tokens/Generators/Typography/DefaultTypographyTokensGenerator.swift b/Sources/FigmaGen/Generators/Tokens/Generators/Typography/DefaultTypographyTokensGenerator.swift index ea3d501..882811d 100644 --- a/Sources/FigmaGen/Generators/Tokens/Generators/Typography/DefaultTypographyTokensGenerator.swift +++ b/Sources/FigmaGen/Generators/Tokens/Generators/Typography/DefaultTypographyTokensGenerator.swift @@ -85,7 +85,8 @@ final class DefaultTypographyTokensGenerator: TypographyTokensGenerator { return TypographyToken.LetterSpacingToken( path: letterSpacingValue.components(separatedBy: "."), - value: String(round(fontLetterSpacing * 100) / 100.0) + value: String(round(fontLetterSpacing * 100) / 100.0), + rawValue: String(letterSpacing) ) } From c341975c2725d3d91a0372379e9716f99dca9700 Mon Sep 17 00:00:00 2001 From: "p.strelchenko" Date: Tue, 12 May 2026 17:21:16 +0500 Subject: [PATCH 2/3] =?UTF-8?q?[MOB-60077]=20=D0=94=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D1=8F=D0=B5=D1=82=20=D0=BF=D1=80=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=BE=D1=81=20access=20token=20=D0=B8=D0=B7=20=D1=81=D0=B5?= =?UTF-8?q?=D0=BA=D1=80=D0=B5=D1=82=D0=BE=D0=B2=20Github=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 1 + Demo/.figmagen.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f573669..2bf9a55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,7 @@ jobs: DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer SWIFTLINT_VERSION: 0.52.2 DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} + FIGMAGEN_ACCESS_TOKEN: ${{ secrets.FIGMAGEN_ACCESS_TOKEN }} steps: - uses: actions/checkout@v4 - name: Ruby diff --git a/Demo/.figmagen.yml b/Demo/.figmagen.yml index 8253f18..f44d7d2 100644 --- a/Demo/.figmagen.yml +++ b/Demo/.figmagen.yml @@ -1,5 +1,6 @@ base: - accessToken: 25961-4ac9fbc9-3bd8-4c43-bbe2-95e477f8a067 + accessToken: + env: FIGMAGEN_ACCESS_TOKEN colorStyles: file: https://www.figma.com/file/61xw2FQn61Xr7VVFYwiHHy/Fugen-Demo?node-id=91%3A3 From dbba1d336c49f19fb34e1528edf6bbc283186068 Mon Sep 17 00:00:00 2001 From: "p.strelchenko" Date: Tue, 12 May 2026 17:36:58 +0500 Subject: [PATCH 3/3] =?UTF-8?q?[MOB-60077]=20=D0=94=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D1=8F=D0=B5=D1=82=20=D1=82=D1=80=D0=B8=D0=B3=D0=B3?= =?UTF-8?q?=D0=B5=D1=80=20=D0=B4=D0=BB=D1=8F=20=D1=81=D0=B1=D0=BE=D1=80?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8fcc9be..a476e22 100755 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ FigmaGen is a command line tool for exporting resources and generating code from your [Figma](http://figma.com/) files. Currently, FigmaGen supports the following entities: + - ✅ Color styles - ✅ Text styles - ✅ Shadow styles