Skip to content

Commit

Permalink
Sort Android tokens alphabetically in the output files (#125)
Browse files Browse the repository at this point in the history
* Sort Android tokens alphabetically in the output files

* Reverse sorting configuration so we always sort by name unless it's disabled

* Generate new tokens with alphabetical ordering
  • Loading branch information
jmartinesp authored Nov 19, 2024
1 parent 6aca370 commit 04dc58a
Show file tree
Hide file tree
Showing 9 changed files with 1,292 additions and 1,290 deletions.
564 changes: 282 additions & 282 deletions assets/android/src/internal/DarkColorTokens.kt

Large diffs are not rendered by default.

564 changes: 282 additions & 282 deletions assets/android/src/internal/DarkHcColorTokens.kt

Large diffs are not rendered by default.

564 changes: 282 additions & 282 deletions assets/android/src/internal/LightColorTokens.kt

Large diffs are not rendered by default.

564 changes: 282 additions & 282 deletions assets/android/src/internal/LightHcColorTokens.kt

Large diffs are not rendered by default.

112 changes: 56 additions & 56 deletions assets/ios/swift/CompoundColorTokens.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,72 +6,72 @@
import SwiftUI

public class CompoundColorTokens {
public let iconOnSolidPrimary = CompoundCoreColorTokens.themeBg
public let iconInfoPrimary = CompoundCoreColorTokens.blue900
public let iconSuccessPrimary = CompoundCoreColorTokens.green900
public let iconCriticalPrimary = CompoundCoreColorTokens.red900
public let iconAccentPrimary = CompoundCoreColorTokens.green900
public let iconAccentTertiary = CompoundCoreColorTokens.green800
public let iconQuaternaryAlpha = CompoundCoreColorTokens.alphaGray700
public let iconTertiaryAlpha = CompoundCoreColorTokens.alphaGray800
public let iconSecondaryAlpha = CompoundCoreColorTokens.alphaGray900
public let iconPrimaryAlpha = CompoundCoreColorTokens.alphaGray1400
public let iconDisabled = CompoundCoreColorTokens.gray700
public let iconQuaternary = CompoundCoreColorTokens.gray700
public let iconTertiary = CompoundCoreColorTokens.gray800
public let iconSecondary = CompoundCoreColorTokens.gray900
public let iconPrimary = CompoundCoreColorTokens.gray1400
public let borderInfoSubtle = CompoundCoreColorTokens.blue500
public let borderSuccessSubtle = CompoundCoreColorTokens.green500
public let borderCriticalSubtle = CompoundCoreColorTokens.red500
public let borderCriticalHovered = CompoundCoreColorTokens.red1000
public let borderCriticalPrimary = CompoundCoreColorTokens.red900
public let borderInteractiveHovered = CompoundCoreColorTokens.gray1100
public let borderInteractiveSecondary = CompoundCoreColorTokens.gray600
public let borderInteractivePrimary = CompoundCoreColorTokens.gray800
public let borderFocused = CompoundCoreColorTokens.blue900
public let borderDisabled = CompoundCoreColorTokens.gray500
public let bgAccentPressed = CompoundCoreColorTokens.green1100
public let bgAccentHovered = CompoundCoreColorTokens.green1000
public let bgAccentPressed = CompoundCoreColorTokens.green1100
public let bgAccentRest = CompoundCoreColorTokens.green900
public let bgDecorative6 = CompoundCoreColorTokens.orange300
public let bgDecorative5 = CompoundCoreColorTokens.pink300
public let bgDecorative4 = CompoundCoreColorTokens.purple300
public let bgDecorative3 = CompoundCoreColorTokens.fuchsia300
public let bgDecorative2 = CompoundCoreColorTokens.cyan300
public let bgDecorative1 = CompoundCoreColorTokens.lime300
public let bgInfoSubtle = CompoundCoreColorTokens.blue200
public let bgSuccessSubtle = CompoundCoreColorTokens.green200
public let bgCriticalSubtleHovered = CompoundCoreColorTokens.red300
public let bgCriticalSubtle = CompoundCoreColorTokens.red200
public let bgCriticalHovered = CompoundCoreColorTokens.red1000
public let bgCriticalPrimary = CompoundCoreColorTokens.red900
public let bgActionSecondaryPressed = CompoundCoreColorTokens.alphaGray300
public let bgActionSecondaryHovered = CompoundCoreColorTokens.alphaGray200
public let bgActionSecondaryRest = CompoundCoreColorTokens.themeBg
public let bgActionPrimaryDisabled = CompoundCoreColorTokens.gray700
public let bgActionPrimaryPressed = CompoundCoreColorTokens.gray1100
public let bgActionPrimaryHovered = CompoundCoreColorTokens.gray1200
public let bgActionPrimaryPressed = CompoundCoreColorTokens.gray1100
public let bgActionPrimaryRest = CompoundCoreColorTokens.gray1400
public let bgCanvasDisabled = CompoundCoreColorTokens.gray200
public let bgActionSecondaryHovered = CompoundCoreColorTokens.alphaGray200
public let bgActionSecondaryPressed = CompoundCoreColorTokens.alphaGray300
public let bgActionSecondaryRest = CompoundCoreColorTokens.themeBg
public let bgCanvasDefault = CompoundCoreColorTokens.themeBg
public let bgSubtleSecondary = CompoundCoreColorTokens.gray300
public let bgCanvasDisabled = CompoundCoreColorTokens.gray200
public let bgCriticalHovered = CompoundCoreColorTokens.red1000
public let bgCriticalPrimary = CompoundCoreColorTokens.red900
public let bgCriticalSubtle = CompoundCoreColorTokens.red200
public let bgCriticalSubtleHovered = CompoundCoreColorTokens.red300
public let bgDecorative1 = CompoundCoreColorTokens.lime300
public let bgDecorative2 = CompoundCoreColorTokens.cyan300
public let bgDecorative3 = CompoundCoreColorTokens.fuchsia300
public let bgDecorative4 = CompoundCoreColorTokens.purple300
public let bgDecorative5 = CompoundCoreColorTokens.pink300
public let bgDecorative6 = CompoundCoreColorTokens.orange300
public let bgInfoSubtle = CompoundCoreColorTokens.blue200
public let bgSubtlePrimary = CompoundCoreColorTokens.gray400
public let textDecorative6 = CompoundCoreColorTokens.orange1100
public let textDecorative5 = CompoundCoreColorTokens.pink1100
public let textDecorative4 = CompoundCoreColorTokens.purple1100
public let textDecorative3 = CompoundCoreColorTokens.fuchsia1100
public let textDecorative2 = CompoundCoreColorTokens.cyan1100
public let textDecorative1 = CompoundCoreColorTokens.lime1100
public let textOnSolidPrimary = CompoundCoreColorTokens.themeBg
public let textInfoPrimary = CompoundCoreColorTokens.blue900
public let textSuccessPrimary = CompoundCoreColorTokens.green900
public let textCriticalPrimary = CompoundCoreColorTokens.red900
public let textLinkExternal = CompoundCoreColorTokens.blue900
public let bgSubtleSecondary = CompoundCoreColorTokens.gray300
public let bgSuccessSubtle = CompoundCoreColorTokens.green200
public let borderCriticalHovered = CompoundCoreColorTokens.red1000
public let borderCriticalPrimary = CompoundCoreColorTokens.red900
public let borderCriticalSubtle = CompoundCoreColorTokens.red500
public let borderDisabled = CompoundCoreColorTokens.gray500
public let borderFocused = CompoundCoreColorTokens.blue900
public let borderInfoSubtle = CompoundCoreColorTokens.blue500
public let borderInteractiveHovered = CompoundCoreColorTokens.gray1100
public let borderInteractivePrimary = CompoundCoreColorTokens.gray800
public let borderInteractiveSecondary = CompoundCoreColorTokens.gray600
public let borderSuccessSubtle = CompoundCoreColorTokens.green500
public let iconAccentPrimary = CompoundCoreColorTokens.green900
public let iconAccentTertiary = CompoundCoreColorTokens.green800
public let iconCriticalPrimary = CompoundCoreColorTokens.red900
public let iconDisabled = CompoundCoreColorTokens.gray700
public let iconInfoPrimary = CompoundCoreColorTokens.blue900
public let iconOnSolidPrimary = CompoundCoreColorTokens.themeBg
public let iconPrimary = CompoundCoreColorTokens.gray1400
public let iconPrimaryAlpha = CompoundCoreColorTokens.alphaGray1400
public let iconQuaternary = CompoundCoreColorTokens.gray700
public let iconQuaternaryAlpha = CompoundCoreColorTokens.alphaGray700
public let iconSecondary = CompoundCoreColorTokens.gray900
public let iconSecondaryAlpha = CompoundCoreColorTokens.alphaGray900
public let iconSuccessPrimary = CompoundCoreColorTokens.green900
public let iconTertiary = CompoundCoreColorTokens.gray800
public let iconTertiaryAlpha = CompoundCoreColorTokens.alphaGray800
public let textActionAccent = CompoundCoreColorTokens.green900
public let textActionPrimary = CompoundCoreColorTokens.gray1400
public let textCriticalPrimary = CompoundCoreColorTokens.red900
public let textDecorative1 = CompoundCoreColorTokens.lime1100
public let textDecorative2 = CompoundCoreColorTokens.cyan1100
public let textDecorative3 = CompoundCoreColorTokens.fuchsia1100
public let textDecorative4 = CompoundCoreColorTokens.purple1100
public let textDecorative5 = CompoundCoreColorTokens.pink1100
public let textDecorative6 = CompoundCoreColorTokens.orange1100
public let textDisabled = CompoundCoreColorTokens.gray800
public let textSecondary = CompoundCoreColorTokens.gray900
public let textInfoPrimary = CompoundCoreColorTokens.blue900
public let textLinkExternal = CompoundCoreColorTokens.blue900
public let textOnSolidPrimary = CompoundCoreColorTokens.themeBg
public let textPrimary = CompoundCoreColorTokens.gray1400
public let textSecondary = CompoundCoreColorTokens.gray900
public let textSuccessPrimary = CompoundCoreColorTokens.green900
public init() { }
}
Loading

0 comments on commit 04dc58a

Please sign in to comment.