Skip to content
Closed
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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion Demo/.figmagen.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
}

Expand Down
Loading