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
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ env:
jobs:
macOS:
name: macOS
runs-on: macOS-13
runs-on: macos-15
env:
DEVELOPER_DIR: /Applications/Xcode_15.1.app/Contents/Developer
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@v2
- uses: actions/checkout@v4
- name: Ruby
uses: ruby/setup-ruby@v1
- name: Bundler
Expand All @@ -49,7 +50,7 @@ jobs:
container:
image: swift:5.9
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update
Expand All @@ -72,7 +73,7 @@ jobs:
name: CocoaPods
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Ruby
uses: ruby/setup-ruby@v1
- name: Bundler
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
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