Skip to content

Commit

Permalink
chore: update tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
boosted-bot committed Dec 11, 2024
1 parent 7c5f492 commit a18ee43
Showing 1 changed file with 43 additions and 79 deletions.
122 changes: 43 additions & 79 deletions OUDS/Core/Tokens/RawTokens/Sources/Values/FontRawTokens+Values.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,47 +11,43 @@
// Software description: A SwiftUI components library with code examples for Orange Unified Design System
//

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team

// swiftlint:disable missing_docs

/// Extracted in a separated file to help the *Figma* JSON to Swift parser to generate files to include easily.
extension FontRawTokens {

// MARK: Primitive token - Typography - Font family

// WARNING: Raw values, do not use as is, ensure fonts are available

public static let fontFamilyBrandDefault: FontFamilyRawToken = "Helvetica Neue"
public static let fontFamilyBrandTV: FontFamilyRawToken = "Helvetica Neue LT"
public static let fontFamilySystemArial: FontFamilyRawToken = "Arial"
public static let fontFamilySystemHelvetica: FontFamilyRawToken = "Helvetica"
public static let fontFamilySystemNotoSans: FontFamilyRawToken = "Noto sans"
public static let fontFamilySystemSFPro: FontFamilyRawToken = "SF Pro"
public static let fontFamilySystemRoboto: FontFamilyRawToken = "Roboto"
public static let fontFamilyMonospaceMenlo: FontFamilyRawToken = "Menlo"
public static let fontFamilyMonospaceMonaco: FontFamilyRawToken = "Monaco"
public static let fontFamilyMonospaceCourierNew: FontFamilyRawToken = "Courier New"

// MARK: Primitive token - Typography - Font weight

public static let fontWeight100: FontWeightRawToken = 100
public static let fontWeight200: FontWeightRawToken = 200
public static let fontWeight300: FontWeightRawToken = 300
public static let fontWeight400: FontWeightRawToken = 400
public static let fontWeight500: FontWeightRawToken = 500
public static let fontWeight600: FontWeightRawToken = 600
public static let fontWeight700: FontWeightRawToken = 700
public static let fontWeight800: FontWeightRawToken = 800
public static let fontWeight900: FontWeightRawToken = 900
public static let fontWeight950: FontWeightRawToken = 950

// MARK: Primitive token - Typography - Font size

// WARNING: values in pixels and not in points, do not use as is!

public static let fontFamilySystemSfPro: FontFamilyRawToken = "SF Pro"
public static let fontLetterSpacing150: FontLetterSpacingRawToken = 0.18
public static let fontLetterSpacing175: FontLetterSpacingRawToken = 0.19
public static let fontLetterSpacing200: FontLetterSpacingRawToken = 0.17
public static let fontLetterSpacing250: FontLetterSpacingRawToken = 0.2
public static let fontLetterSpacing300: FontLetterSpacingRawToken = 0.18
public static let fontLetterSpacing350: FontLetterSpacingRawToken = 0
public static let fontLetterSpacing450: FontLetterSpacingRawToken = -0.12
public static let fontLetterSpacing550: FontLetterSpacingRawToken = -0.28
public static let fontLetterSpacing650: FontLetterSpacingRawToken = -0.32
public static let fontLetterSpacing750: FontLetterSpacingRawToken = -0.36
public static let fontLetterSpacing850: FontLetterSpacingRawToken = -0.4
public static let fontLetterSpacing950: FontLetterSpacingRawToken = -0.55
public static let fontLetterSpacing1050: FontLetterSpacingRawToken = -0.6
public static let fontLetterSpacing1150: FontLetterSpacingRawToken = -0.65
public static let fontLetterSpacing1250: FontLetterSpacingRawToken = -0.7
public static let fontLetterSpacing1450: FontLetterSpacingRawToken = -0.96
public static let fontLetterSpacing1850: FontLetterSpacingRawToken = -1.08
public static let fontLineHeight250: FontLineHeightRawToken = 16
public static let fontLineHeight350: FontLineHeightRawToken = 20
public static let fontLineHeight450: FontLineHeightRawToken = 24
public static let fontLineHeight550: FontLineHeightRawToken = 28
public static let fontLineHeight650: FontLineHeightRawToken = 32
public static let fontLineHeight750: FontLineHeightRawToken = 36
public static let fontLineHeight850: FontLineHeightRawToken = 40
public static let fontLineHeight950: FontLineHeightRawToken = 44
public static let fontLineHeight1050: FontLineHeightRawToken = 48
public static let fontLineHeight1150: FontLineHeightRawToken = 52
public static let fontLineHeight1250: FontLineHeightRawToken = 56
public static let fontLineHeight1350: FontLineHeightRawToken = 60
public static let fontLineHeight1450: FontLineHeightRawToken = 64
public static let fontLineHeight1850: FontLineHeightRawToken = 72
public static let fontLineHeight2050: FontLineHeightRawToken = 80
public static let fontSize150: FontSizeRawToken = 12
public static let fontSize175: FontSizeRawToken = 13
public static let fontSize200: FontSizeRawToken = 14
Expand All @@ -69,48 +65,16 @@ extension FontRawTokens {
public static let fontSize1250: FontSizeRawToken = 56
public static let fontSize1450: FontSizeRawToken = 64
public static let fontSize1850: FontSizeRawToken = 72

// MARK: Primitive token - Typography - Line height

// WARNING: values in pixels and not in points, do not use as is!

public static let fontLineHeight250: FontLineHeightRawToken = 16
public static let fontLineHeight350: FontLineHeightRawToken = 20
public static let fontLineHeight450: FontLineHeightRawToken = 24
public static let fontLineHeight550: FontLineHeightRawToken = 28
public static let fontLineHeight650: FontLineHeightRawToken = 32
public static let fontLineHeight750: FontLineHeightRawToken = 36
public static let fontLineHeight850: FontLineHeightRawToken = 40
public static let fontLineHeight950: FontLineHeightRawToken = 44
public static let fontLineHeight1050: FontLineHeightRawToken = 48
public static let fontLineHeight1150: FontLineHeightRawToken = 52
public static let fontLineHeight1250: FontLineHeightRawToken = 56
public static let fontLineHeight1350: FontLineHeightRawToken = 60
public static let fontLineHeight1450: FontLineHeightRawToken = 64
public static let fontLineHeight1850: FontLineHeightRawToken = 72
public static let fontLineHeight2050: FontLineHeightRawToken = 80

// MARK: Primitive token - Typography - Letter spacing

// WARNING: values in pixels and not in points, do not use as is!

public static let fontLetterSpacing150: FontLetterSpacingRawToken = 150
public static let fontLetterSpacing175: FontLetterSpacingRawToken = 175
public static let fontLetterSpacing200: FontLetterSpacingRawToken = 200
public static let fontLetterSpacing250: FontLetterSpacingRawToken = 250
public static let fontLetterSpacing300: FontLetterSpacingRawToken = 300
public static let fontLetterSpacing350: FontLetterSpacingRawToken = 350
public static let fontLetterSpacing450: FontLetterSpacingRawToken = 450
public static let fontLetterSpacing550: FontLetterSpacingRawToken = 550
public static let fontLetterSpacing650: FontLetterSpacingRawToken = 650
public static let fontLetterSpacing750: FontLetterSpacingRawToken = 750
public static let fontLetterSpacing850: FontLetterSpacingRawToken = 850
public static let fontLetterSpacing950: FontLetterSpacingRawToken = 950
public static let fontLetterSpacing1050: FontLetterSpacingRawToken = 1_050
public static let fontLetterSpacing1150: FontLetterSpacingRawToken = 1_150
public static let fontLetterSpacing1250: FontLetterSpacingRawToken = 1_250
public static let fontLetterSpacing1450: FontLetterSpacingRawToken = 1_450
public static let fontLetterSpacing1850: FontLetterSpacingRawToken = 1_850
public static let fontWeight100: FontWeightRawToken = 100
public static let fontWeight200: FontWeightRawToken = 200
public static let fontWeight300: FontWeightRawToken = 300
public static let fontWeight400: FontWeightRawToken = 400
public static let fontWeight500: FontWeightRawToken = 500
public static let fontWeight600: FontWeightRawToken = 600
public static let fontWeight700: FontWeightRawToken = 700
public static let fontWeight800: FontWeightRawToken = 800
public static let fontWeight900: FontWeightRawToken = 900
public static let fontWeight950: FontWeightRawToken = 950
}

// swiftlint:enable missing_docs

0 comments on commit a18ee43

Please sign in to comment.