diff --git a/.github/DEVELOP.md b/.github/DEVELOP.md index c53f6301ae..86425d25b8 100644 --- a/.github/DEVELOP.md +++ b/.github/DEVELOP.md @@ -468,8 +468,28 @@ Remember _Gitleaks_ is also used in GitHub project side thanks to the [dedicated We use _SwiftLint_ in this project so as to be sure the source code follows defined guidelines for the syntax and other points. You must run _SwiftLint_ in CLI or using _Xcode_ to be sure you don't keep and submit warnings. -In most of cases you **must** fiw warnigns, but it could happen some of them should be disabled, mainly for tests cases. -Explain why in yout commtis and pull request comments you choose to disable them. +**In most of cases you must fix warnings, or explain why in your commtis and pull request comments you choose to disable them.** + +Today, only in very few cases some SwiftLint warnings are disabled: +- in tests classes +- in files containing tokens which will be generated + +The warnings which can be disabled for token files: +- *missing_docs*: because tokens will be generated without documentation by the tokenator +- *identifier_name*: because the name of the tokens are defined in *Figma* and strongly related to the design system +- *line_length*: because tokens definition can take a lot of place +- *file_length*: because the files containing declarations or definitions of tokens can be very long + +The warnings which can be disabled for test classes files and mocks files: +- *identifier_name*: because of length of tokens names +- *type_name*: because stringly related to the types under test, which can have a long name +- *line_length*: because of length of tokens names +- *file_length*: because of the amount of tokens to test +- *type_body_length*: because we can have a lot of tests to do +- *required_deinit*: because we do not need to manage init and deinit of test classe +- *implicitly_unwrapped_optional*: because for declaration of themes to test we bang! + +Do not forget if possible to enable the warnings in the end of the file to reduce as much as possible the scope of the disabled warnings. Disable warnings only if needed. ## CI/CD diff --git a/.swiftlint.yml b/.swiftlint.yml index f2c1098fbb..a7a07b39b3 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -168,15 +168,15 @@ cyclomatic_complexity: ignores_case_statements: true file_length: - warning: 800 - error: 1000 + warning: 500 + error: 800 force_cast: severity: error function_body_length: warning: 50 - error: 100 + error: 80 function_parameter_count: warning: 6 @@ -187,8 +187,8 @@ implicit_getter: identifier_name: max_length: - warning: 60 - error: 80 + warning: 40 + error: 50 min_length: warning: 1 allowed_symbols: @@ -230,8 +230,8 @@ type_body_length: 250 type_name: max_length: - warning: 60 - error: 80 + warning: 40 + error: 50 min_length: warning: 1 allowed_symbols: diff --git a/CHANGELOG.md b/CHANGELOG.md index 43b2b471b7..7b2801be7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- [Library] Add semantic color tokens ([#124](https://github.com/Orange-OpenSource/ouds-ios/issues/124)) - [DemoApp] Fix some design issues and mutualize some UI elements ([#189](https://github.com/Orange-OpenSource/ouds-ios/issues/189)) - [DemoApp] Add sizing token screen in demo app ([#150](https://github.com/Orange-OpenSource/ouds-ios/issues/150)) - [DemoApp] Add spacing token screen in demo app ([#149](https://github.com/Orange-OpenSource/ouds-ios/issues/149)) @@ -16,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- [Library] Update of semantic color tokens - [Library/DemoApp] Updates SwiftLint rules, fix linter warnings ([#143](https://github.com/Orange-OpenSource/ouds-ios/issues/143)) - [Tool] Update the templates for GitHub issues - [Tool] Improve script for documentation generation ([#168](https://github.com/Orange-OpenSource/ouds-ios/issues/168)) @@ -36,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed +- [Library] Remove all color alias semantic tokens and any optional color tokens type uses - [Library] `SoshTheme` ([#180](https://github.com/Orange-OpenSource/ouds-ios/issues/180)) - [Library] `fontSizeMobile*`, `fontSizeTablet*`, `fontLineHeightMobile*`, `fontLineHeightTablet*`, `fontLetterSpacingMobile*`, `fontLetterSpacingTablet*` removed (update of October 4th) - [Library] `spaceRowGapWithIconTaller`, `spaceColumnGapWithIconTaller` removed (update of October 7th) diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+ComponentTokens/OUDSTheme+ButtonsComponentTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+ComponentTokens/OUDSTheme+ButtonsComponentTokens.swift index 625f17a369..e7f8473816 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+ComponentTokens/OUDSTheme+ButtonsComponentTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+ComponentTokens/OUDSTheme+ButtonsComponentTokens.swift @@ -17,7 +17,6 @@ import OUDSTokensRaw import OUDSTokensSemantic // TODO: Check if we can get rid of alias colors tokens which are optional -// swiftlint:disable force_unwrapping /// Defines for `OUDSButton` the basic configuration which can be overriden in subthemes / subclasses of this theme. /// **Warning: These are random and dumb values** @@ -26,17 +25,15 @@ extension OUDSTheme: ButtonsComponentTokens { @objc open var buttonInternalSpacing: SpacingPaddingInlineSemanticToken { spacePaddingInlineShort } @objc open var buttonBorderStyle: BorderStyleSemanticToken { borderStyleDefault } - @objc open var buttonBorderColor: ColorSemanticToken { colorBorderDefault! } + @objc open var buttonBorderColor: ColorSemanticToken { colorBorderDefault } @objc open var buttonBorderWidth: BorderWidthSemanticToken { borderWidthDefault } @objc open var buttonBorderRadius: BorderRadiusSemanticToken { borderRadiusShort } - @objc open var buttonForegroundColor: ColorSemanticToken { colorContentBrandPrimary! } - @objc open var buttonBackgroundColor: ColorSemanticToken { colorBackgroundBrandPrimary! } + @objc open var buttonForegroundColor: ColorSemanticToken { colorContentBrandPrimary } + @objc open var buttonBackgroundColor: ColorSemanticToken { colorBackgroundBrandPrimary } @objc open var buttonWidth: SizingSemanticToken { DimensionRawTokens.dimension3000 } @objc open var buttonHeight: SizingSemanticToken { DimensionRawTokens.dimension1000 } @objc open var buttonTypography: MultipleTypographyTokens { typeDisplayMedium } } - -// swiftlint:enable force_unwrapping diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorSemanticTokens.swift index 03dcfaf97e..2b6174c209 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorSemanticTokens.swift @@ -20,319 +20,536 @@ import OUDSTokensSemantic // WARNING: Not synchronized anymore with the Figjam // swiftlint:disable line_length +// swiftlint:disable identifier_name +// swiftlint:disable file_length + /// Defines basic values common to all themes for `ColorSemanticTokens`. /// These values can be overriden inside `OUDSTheme` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. extension OUDSTheme: ColorSemanticTokens { - // MARK: Semantic token - Colors - Alias - Primary - - @objc open var sysColorBrandPrimaryLowest: ColorAliasSemanticToken? { nil } // Defined in OrangeTheme+SemanticColorTokens.swift because uses an Orange brand color - @objc open var sysColorBrandPrimaryLower: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandPrimaryLow: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandPrimaryDefault: ColorAliasSemanticToken? { nil } // Defined in OrangeTheme+SemanticColorTokens.swift because uses an Orange brand color - @objc open var sysColorBrandPrimaryHigh: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandPrimaryHigher: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandPrimaryHighest: ColorAliasSemanticToken? { nil } - - // MARK: Semantic token - Colors - Alias - Secondary - - @objc open var sysColorBrandSecondaryLowest: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandSecondaryLower: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandSecondaryLow: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandSecondaryDefault: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandSecondaryHigh: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandSecondaryHigher: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandSecondaryHighest: ColorAliasSemanticToken? { nil } - - // MARK: Semantic token - Colors - Alias - Tertiary - - @objc open var sysColorBrandTertiaryLowest: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandTertiaryLower: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandTertiaryLow: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandTertiaryDefault: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandTertiaryHigh: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandTertiaryHigher: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandTertiaryHighest: ColorAliasSemanticToken? { nil } - - // MARK: Semantic token - Colors - Alias - Neutral - Muted - - @objc open var sysColorBrandNeutralMutedWhite: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalWhite } - @objc open var sysColorBrandNeutralMutedLowest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalLightGray80 } - @objc open var sysColorBrandNeutralMutedLower: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalLightGray160 } - @objc open var sysColorBrandNeutralMutedLow: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandNeutralMutedMedium: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalLightGray400 } - @objc open var sysColorBrandNeutralMutedHigh: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalLightGray560 } - @objc open var sysColorBrandNeutralMutedHigher: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandNeutralMutedHighest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalDarkGray160 } - - // MARK: Semantic token - Colors - Alias - Neutral - Emphasized - - @objc open var sysColorBrandNeutralEmphasizedLowest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalDarkGray400 } - @objc open var sysColorBrandNeutralEmphasizedLower: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalDarkGray480 } - @objc open var sysColorBrandNeutralEmphasizedLow: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalDarkGray560 } - @objc open var sysColorBrandNeutralEmphasizedMedium: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalDarkGray640 } - @objc open var sysColorBrandNeutralEmphasizedHigh: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalDarkGray720 } - @objc open var sysColorBrandNeutralEmphasizedHigher: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalDarkGray800 } - @objc open var sysColorBrandNeutralEmphasizedHighest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalDarkGray880 } - @objc open var sysColorBrandNeutralEmphasizedBlack: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalBlack } - - // MARK: Semantic token - Colors - Alias - Positive - - @objc open var sysColorBrandPositiveLowest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalMalachite100 } - @objc open var sysColorBrandPositiveLower: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandPositiveLow: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandPositiveDefault: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalMalachite500 } - @objc open var sysColorBrandPositiveHigh: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalMalachite600 } - @objc open var sysColorBrandPositiveHigher: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandPositiveHighest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalMalachite800 } - - // MARK: Semantic token - Colors - Alias - Information - - @objc open var sysColorBrandInformationLowest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalMalachite100 } - @objc open var sysColorBrandInformationLower: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandInformationLow: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandInformationDefault: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalMalachite500 } - @objc open var sysColorBrandInformationHigh: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalDodgerBlue600 } - @objc open var sysColorBrandInformationHigher: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandInformationHighest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalMalachite900 } - - // MARK: Semantic token - Colors - Alias - Warning - - @objc open var sysColorBrandWarningLowest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalSun100 } - @objc open var sysColorBrandWarningLower: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandWarningLow: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandWarningDefault: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalSun500 } - @objc open var sysColorBrandWarningHigh: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalSun600 } - @objc open var sysColorBrandWarningHigher: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandWarningHighest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalSun900 } - - // MARK: Semantic token - Colors - Alias - Negative - - @objc open var sysColorBrandNegativeLowest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalScarlet100 } - @objc open var sysColorBrandNegativeLower: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandNegativeLow: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandNegativeDefault: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalScarlet600 } - @objc open var sysColorBrandNegativeHigh: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandNegativeHigher: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandNegativeHighest: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalScarlet900 } - - // MARK: Semantic token - Colors - Alias - Attractive - - @objc open var sysColorBrandAttractiveLowest: ColorAliasSemanticToken? { nil } // Defined in OrangeTheme+SemanticColorTokens.swift because uses an Orange brand color - @objc open var sysColorBrandAttractiveLower: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandAttractiveLow: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandAttractiveMedium: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalSun500 } - @objc open var sysColorBrandAttractiveHigh: ColorAliasSemanticToken? { ColorRawTokens.colorFunctionalSun600 } - @objc open var sysColorBrandAttractiveHigher: ColorAliasSemanticToken? { nil } - @objc open var sysColorBrandAttractiveHighest: ColorAliasSemanticToken? { nil } // Defined in OrangeTheme+SemanticColorTokens.swift because uses an Orange brand color - // MARK: Semantic token - Colors - Background - @objc open var colorBackgroundDefaultPrimary: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralMutedWhite, dark: sysColorBrandNeutralEmphasizedHighest) } + @objc open var colorBackgroundPrimary: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalDarkGray880) } - @objc open var colorBackgroundDefaultSecondary: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralMutedLowest, dark: sysColorBrandNeutralEmphasizedHigher) } + @objc open var colorBackgroundSecondary: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray80, dark: ColorRawTokens.colorFunctionalDarkGray800) } - @objc open var colorBackgroundDefaultTertiary: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandAttractiveLowest, dark: sysColorBrandAttractiveHighest) } + // WARNING: #124 - Colors to use are part of OUDSOran MultipleColorTokens(light: ColorRawTokens., dark: ColorRawTokens.)heme so are not reachable at this level, as a workaround add raw values + @objc open var colorBackgroundTertiary: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorBackgroundBrandSecondary!") } - @objc open var colorBackgroundEmphasizedPrimary: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedHighest, dark: sysColorBrandNeutralEmphasizedMedium) } + @objc open var colorBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray880, dark: ColorRawTokens.colorFunctionalDarkGray640) } - @objc open var colorBackgroundBrandPrimary: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandPrimaryDefault, dark: sysColorBrandPrimaryLow) } + // WARNING: #124 - Colors to use are part of OUDSOran MultipleColorTokens(light: ColorRawTokens., dark: ColorRawTokens.)heme so are not reachable at this level, as a workaround add raw values + @objc open var colorBackgroundBrandPrimary: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorBackgroundBrandPrimary!") } - @objc open var colorBackgroundBrandSecondary: ColorSemanticToken? { nil } + @objc open var colorBackgroundBrandSecondary: ColorSemanticToken { fatalError("🤖 No value defined for colorBackgroundBrandSecondary!") } - @objc open var colorBackgroundBrandTertiary: ColorSemanticToken? { nil } + @objc open var colorBackgroundBrandTertiary: ColorSemanticToken { fatalError("🤖 No value defined for colorBackgroundBrandTertiary!") } - @objc open var colorBackgroundStatusNeutral: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedLowest, dark: sysColorBrandNeutralEmphasizedHigh) } + @objc open var colorBackgroundStatusNeutral: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray80, dark: ColorRawTokens.colorFunctionalDarkGray720) } - @objc open var colorBackgroundStatusNeutralOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedHigh, dark: sysColorBrandNeutralEmphasizedHigh) } + @objc open var colorBackgroundStatusNeutralOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray720, dark: ColorRawTokens.colorFunctionalDarkGray720) } - @objc open var colorBackgroundStatusAttractiveMuted: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandAttractiveLowest, dark: sysColorBrandAttractiveHighest) } + @objc open var colorBackgroundStatusPositiveMuted: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalMalachite100, dark: ColorRawTokens.colorFunctionalMalachite900) } - @objc open var colorBackgroundStatusAttractiveEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandWarningDefault, dark: sysColorBrandWarningDefault) } + @objc open var colorBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalMalachite900) } - @objc open var colorBackgroundStatusWarningMuted: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandWarningLowest, dark: sysColorBrandWarningHighest) } + @objc open var colorBackgroundStatusPositiveEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalMalachite500) } - @objc open var colorBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandWarningHighest, dark: sysColorBrandWarningHighest) } + @objc open var colorBackgroundStatusInfoMuted: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDodgerBlue100, dark: ColorRawTokens.colorFunctionalDodgerBlue900) } - @objc open var colorBackgroundStatusWarningEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandWarningDefault, dark: sysColorBrandWarningDefault) } + @objc open var colorBackgroundStatusInfoMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDodgerBlue900) } - @objc open var colorBackgroundStatusNegativeMuted: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNegativeLowest, dark: sysColorBrandNeutralEmphasizedHighest) } + @objc open var colorBackgroundStatusInfoEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDodgerBlue500) } - @objc open var colorBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNegativeHighest) } + @objc open var colorBackgroundStatusWarningMuted: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalSun100, dark: ColorRawTokens.colorFunctionalSun900) } - @objc open var colorBackgroundStatusNegativeEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNegativeDefault, dark: sysColorBrandNegativeHighest) } + @objc open var colorBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun900) } - @objc open var colorBackgroundStatusPositiveMuted: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandPositiveLowest, dark: sysColorBrandNeutralEmphasizedHigh) } + @objc open var colorBackgroundStatusWarningEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun500) } - @objc open var colorBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPositiveHighest) } + @objc open var colorBackgroundStatusNegativeMuted: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalScarlet100, dark: ColorRawTokens.colorFunctionalScarlet900) } - @objc open var colorBackgroundStatusPositiveEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandPositiveDefault, dark: sysColorBrandPositiveHighest) } + @objc open var colorBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet900) } - @objc open var colorBackgroundStatusInformationMuted: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandInformationLowest, dark: sysColorBrandNeutralEmphasizedHigh) } + @objc open var colorBackgroundStatusNegativeEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet600) } - @objc open var colorBackgroundStatusInformationMutedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandInformationHighest) } + @objc open var colorBackgroundStatusAccentMuted: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorBackgroundStatusAccentMuted!") } - @objc open var colorBackgroundStatusInformationEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandInformationDefault, dark: sysColorBrandInformationHighest) } + @objc open var colorBackgroundStatusAccentMutedOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorBackgroundStatusAccentMutedOnBackgroundEmphasized!") } - // MARK: Semantic token - Colors - Background - Action + @objc open var colorBackgroundStatusAccentEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun500) } - @objc open var colorBackgroundActionEnabled: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedBlack, dark: sysColorBrandNeutralMutedLower) } + // MARK: Semantic token - Colors - Content - @objc open var colorBackgroundActionEnabledOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralMutedLower, dark: sysColorBrandNeutralMutedLower) } + @objc open var colorContentDefault: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalBlack, dark: ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorBackgroundActionEnabledOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedBlack, dark: sysColorBrandNeutralEmphasizedBlack) } + @objc open var colorContentContentDefaultOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorBackgroundActionEnabledOnBackgroundStatusNegative: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralMutedWhite, dark: sysColorBrandNeutralMutedWhite) } + @objc open var colorContentMuted: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray400, dark: ColorRawTokens.colorFunctionalLightGray400) } - @objc open var colorBackgroundActionPressed: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryLow) } + @objc open var colorContentContentMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray400) } - @objc open var colorBackgroundActionPressedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryLow) } + @objc open var colorContentDisabled: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray400, dark: ColorRawTokens.colorFunctionalDarkGray400) } - @objc open var colorBackgroundActionPressedOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryDefault) } + @objc open var colorContentContentDisabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray400) } - @objc open var colorBackgroundActionPressedOnBackgroundStautsNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryDefault) } + @objc open var colorContentBrandPrimary: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorContentBrandPrimary!") } - @objc open var colorBackgroundActionDisabled: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralMutedMedium, dark: sysColorBrandNeutralMutedLowest) } + @objc open var colorContentBrandSecondary: ColorSemanticToken { fatalError("🤖 No value defined for colorContentBrandSecondary!") } - @objc open var colorBackgroundActionDisabledOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedLowest) } + @objc open var colorContentBrandTertiary: ColorSemanticToken { fatalError("🤖 No value defined for colorContentBrandTertiary!") } - @objc open var colorBackgroundActionDisabledOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedMedium) } + @objc open var colorContentStatusPositive: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalMalachite500) } - @objc open var colorBackgroundActionDisabledOnBackgroundStatusNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLowest) } + @objc open var colorContentStatusInfo: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDodgerBlue500) } - @objc open var colorBackgroundActionFocus: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedLowest, dark: sysColorBrandNeutralMutedMedium) } + @objc open var colorContentStatusWarning: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun500) } - @objc open var colorBackgroundActionFocusOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedMedium) } + @objc open var colorContentStatusNegative: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet600) } - @objc open var colorBackgroundActionFocusOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLow) } + @objc open var colorContentStatusAccent: ColorSemanticToken { fatalError("🤖 No value defined for colorContentStatusAccent!") } - @objc open var colorBackgroundActionFocusOnBackgroundStatusNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack) } + // MARK: Semantic token - Colors - Content - On Background - // MARK: Semantic token - Colors - Background - Always + @objc open var colorContentOnBackgroundPrimary: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalBlack) } - @objc open var colorBackgroundAlwaysBlack: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack) } + @objc open var colorContentOnBackgroundSecondary: ColorSemanticToken { fatalError("🤖 No value defined for colorContentOnBackgroundSecondary!") } - @objc open var colorBackgroundAlwaysWhite: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedWhite) } + @objc open var colorContentOnBackgroundTertiary: ColorSemanticToken { fatalError("🤖 No value defined for colorContentOnBackgroundTertiary!") } - @objc open var colorBackgroundAlwaysAttractive: ColorSemanticToken? { MultipleColorTokens(sysColorBrandWarningDefault) } + @objc open var colorContentOnBackgroundStatusPositiveMuted: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalBlack, dark: ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorBackgroundAlwaysWarning: ColorSemanticToken? { MultipleColorTokens(sysColorBrandWarningDefault) } + @objc open var colorContentOnBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorBackgroundAlwaysNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNegativeDefault) } + @objc open var colorContentOnBackgroundStatusPositiveEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - @objc open var colorBackgroundAlwaysPositive: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPositiveDefault) } + @objc open var colorContentOnBackgroundStatusInfoMuted: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalBlack, dark: ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorBackgroundAlwaysInformation: ColorSemanticToken? { MultipleColorTokens(sysColorBrandInformationDefault) } + @objc open var colorContentOnBackgroundStatusInfoMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - // MARK: Semantic token - Colors - Background - Transparent + @objc open var colorContentOnBackgroundStatusInfoEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - @objc open var colorBackgroundTransparentDefault: ColorSemanticToken? { MultipleColorTokens(ColorRawTokens.colorTransparentBlack0) } + @objc open var colorContentOnBackgroundStatusWarningMuted: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalBlack, dark: ColorRawTokens.colorFunctionalLightGray160) } - // MARK: Semantic token - Colors - Content + @objc open var colorContentOnBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorContentDefault: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedBlack, dark: sysColorBrandNeutralMutedLower) } + @objc open var colorContentOnBackgroundStatusWarningEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - @objc open var colorContentDefaultOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralMutedLower, dark: sysColorBrandNeutralMutedLower) } + @objc open var colorContentOnBackgroundStatusNegativeMuted: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalBlack, dark: ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorContentMuted: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedLowest, dark: sysColorBrandNeutralEmphasizedHigh) } + @objc open var colorContentOnBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorContentMutedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralMutedMedium, dark: sysColorBrandNeutralMutedHigh) } + @objc open var colorContentOnBackgroundStatusNegativeEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } - @objc open var colorContentBrandPrimary: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandPrimaryDefault, dark: sysColorBrandPrimaryLow) } + @objc open var colorContentOnBackgroundStatusAccentMuted: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalBlack, dark: ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorContentBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandPrimaryLow, dark: sysColorBrandPrimaryLow) } + @objc open var colorContentOnBackgroundStatusAccentMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorContentBrandSecondary: ColorSemanticToken? { nil } + @objc open var colorContentOnBackgroundStatusAccentedEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - @objc open var colorContentBrandTertiary: ColorSemanticToken? { nil } + // MARK: Semantic token - Colors - Border - @objc open var colorContentStatusAttractive: ColorSemanticToken? { nil } + @objc open var colorBorderDefault: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray400, dark: ColorRawTokens.colorFunctionalDarkGray400) } - @objc open var colorContentStatusNegative: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNegativeDefault, dark: sysColorBrandNegativeDefault) } + @objc open var colorBorderDefaultOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray400) } - @objc open var colorContentStatusPositive: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandPositiveDefault, dark: sysColorBrandPositiveDefault) } + @objc open var colorBorderEmphasized: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalBlack, dark: ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorContentStatusInformation: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandInformationDefault, dark: sysColorBrandInformationDefault) } + @objc open var colorBorderEmphasizedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorContentActionEnabled: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedBlack, dark: sysColorBrandNeutralMutedLower) } + @objc open var colorBorderFocus: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalDarkGray880) } - @objc open var colorContentActionEnabledOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedLower) } + @objc open var colorBorderBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorBorderBrandPrimaryOnBackgroundEmphasized!") } - @objc open var colorContentActionEnabledOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack) } + @objc open var colorBorderBrandPrimary: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorBorderBrandPrimary!") } - @objc open var colorContentActionEnabledOnBackgroundStatusNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedWhite) } + @objc open var colorBorderBrandSecondary: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderBrandSecondary!") } - @objc open var colorContentActionHover: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedLowest, dark: sysColorBrandNeutralMutedMedium) } + @objc open var colorBorderBrandTertiary: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderBrandTertiary!") } - @objc open var colorContentActionHoverOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedMedium) } + @objc open var colorBorderStatusPositive: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderStatusPositive!") } - @objc open var colorContentActionHoverOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLow) } + @objc open var colorBorderStatusInfo: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderStatusInfo!") } - @objc open var colorContentActionHoverOnBackgroundStatusNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack) } + @objc open var colorBorderStatusWarning: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderStatusWarning!") } - @objc open var colorContentTransparentDefault: ColorSemanticToken? { MultipleColorTokens(ColorRawTokens.colorTransparentBlack0) } + @objc open var colorBorderStatusNegative: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderStatusNegative!") } - // MARK: Semantic token - Colors - Border + @objc open var colorBorderStatusAccent: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderStatusAccent!") } + + @objc open var colorBorderOnBackgroundBrandPrimary: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorBorderOnBackgroundBrandSecondary: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderOnBackgroundBrandSecondary!") } + + @objc open var colorBorderOnBackgroundBrandTertiary: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderOnBackgroundBrandTertiary!") } + + // MARK: Semantic token - Colors - Action + + @objc open var colorActionSelected: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorActionSelected!") } + + @objc open var colorActionSelectedOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorActionSelectedOnBackgroundEmphasized!") } + + @objc open var colorActionDisabled: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray400, dark: ColorRawTokens.colorFunctionalDarkGray400) } + + @objc open var colorActionDisabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray400) } + + @objc open var colorActionVisited: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst600, dark: ColorRawTokens.colorDecorativeAmethyst400) } + + @objc open var colorActionVistedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst400) } + + @objc open var colorActionPrimaryEnabled: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalBlack, dark: ColorRawTokens.colorFunctionalLightGray160) } + + @objc open var colorActionPrimaryEnabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } + + @objc open var colorActionPrimaryHover: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray400, dark: ColorRawTokens.colorFunctionalLightGray400) } + + @objc open var colorActionPrimaryHoverOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray400) } + + @objc open var colorActionPrimaryPressed: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorActionPrimaryPressed!") } + + @objc open var colorActionPrimaryPressedOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorActionPrimaryPressedOnBackgroundEmphasized!") } + + @objc open var colorActionPrimaryLoading: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorActionPrimaryLoading!") } + + @objc open var colorActionPrimaryLoadingOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorActionPrimaryLoadingOnBackgroundEmphasized!") } + + @objc open var colorActionPrimaryFocus: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray400, dark: ColorRawTokens.colorFunctionalLightGray400) } + + @objc open var colorActionPrimaryFocusOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray400) } + + @objc open var colorActionSecondaryEnabled: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray80, dark: ColorRawTokens.colorFunctionalLightGray160) } + + @objc open var colorActionSecondaryEnabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray720) } + + @objc open var colorActionSecondaryHover: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray160, dark: ColorRawTokens.colorFunctionalDarkGray640) } + + @objc open var colorActionSecondaryHoverOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } + + @objc open var colorActionSecondaryPressed: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray160, dark: ColorRawTokens.colorFunctionalDarkGray640) } + + @objc open var colorActionSecondaryPressedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + @objc open var colorActionSecondaryLoading: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray160, dark: ColorRawTokens.colorFunctionalDarkGray640) } + + @objc open var colorActionSecondaryLoadingOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + @objc open var colorActionSecondaryFocus: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray160, dark: ColorRawTokens.colorFunctionalDarkGray640) } + + @objc open var colorActionSecondaryFocusOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + @objc open var colorActionNegativeEnabled: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet600) } + + @objc open var colorActionNegativeHover: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet700) } + + @objc open var colorActionNegativePressed: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet800) } + + @objc open var colorActionNegativeLoading: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet800) } + + @objc open var colorActionNegativeFocus: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet700) } + + @objc open var colorActionOnBackgroundActionDisabled: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionDisabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionNegative: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + @objc open var colorActionOnBackgroundActionPrimaryEnabled: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionPrimaryEnabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionPrimaryHover: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionPrimaryHoverOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionPrimaryPressed: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionPrimaryPressedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionPrimaryLoading: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionPrimaryLoadingOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionPrimaryFocus: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionPrimaryFocusOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorActionOnBackgroundActionSecondaryEnabled: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryEnabled!") } + + @objc open var colorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized!") } + + @objc open var colorActionOnBackgroundActionSecondaryHover: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryHover!") } + + @objc open var colorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized!") } + + @objc open var colorActionOnBackgroundActionSecondaryPressed: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryPressed!") } + + @objc open var colorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized!") } + + @objc open var colorActionOnBackgroundActionSecondaryLoading: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryLoading!") } + + @objc open var colorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized!") } + + @objc open var colorActionOnBackgroundActionSecondaryFocus: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryFocus!") } + + @objc open var colorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized!") } + + // MARK: Semantic token - Colors - Always + + @objc open var colorAlwaysBlack: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorAlwaysWhite: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + @objc open var colorAlwaysWarning: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun500) } + + @objc open var colorAlwaysNegative: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet600) } + + @objc open var colorAlwaysPositive: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalMalachite500) } + + @objc open var colorAlwaysInfo: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDodgerBlue500) } + + @objc open var colorAlwaysAccent: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun500) } + + @objc open var colorAlwaysOnBackgroundBlack: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + @objc open var colorAlwaysOnBackgroundWhite: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorAlwaysOnBackgroundWarning: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorAlwaysOnBackgroundNegative: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + @objc open var colorAlwaysOnBackgroundPositive: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorAlwaysOnBackgroundInfo: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + @objc open var colorAlwaysOnBackgroundAccent: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + // MARK: Semantic token - Colors - Transparent + + @objc open var colorTransparentDefault: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorTransparentBlack0) } + + // MARK: Semantic token - Colors - Elevation + + @objc open var colorElevationRaised: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalDarkGray800) } + + @objc open var colorElevationRaisedOnBackgroundSecondary: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalDarkGray720) } + + @objc open var colorElevationRaisedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray800, dark: ColorRawTokens.colorFunctionalDarkGray560) } + + @objc open var colorElevationDrag: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray80, dark: ColorRawTokens.colorFunctionalDarkGray720) } + + @objc open var colorElevationDragOnBackgroundSecondary: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray80, dark: ColorRawTokens.colorFunctionalDarkGray640) } + + @objc open var colorElevationDragOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray720, dark: ColorRawTokens.colorFunctionalDarkGray480) } - @objc open var colorBorderDefault: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralMutedMedium, dark: sysColorBrandNeutralEmphasizedLowest) } + @objc open var colorElevationOverlayDefault: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalDarkGray720) } - @objc open var colorBorderDefaultOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedLowest, dark: sysColorBrandNeutralEmphasizedLowest) } + @objc open var colorElevationOverlayDefaultOnBackgroundSecondary: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalDarkGray640) } - @objc open var colorContentDefaultOnBackgroundBrandPrimary: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralMutedWhite, dark: sysColorBrandNeutralEmphasizedBlack) } + @objc open var colorElevationOverlayDefaultOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray720, dark: ColorRawTokens.colorFunctionalDarkGray480) } - @objc open var colorBorderEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralEmphasizedBlack, dark: sysColorBrandNeutralMutedLower) } + @objc open var colorElevationOverlayEmphasized: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray640, dark: ColorRawTokens.colorFunctionalDarkGray480) } - @objc open var colorBorderEmphasizedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralMutedWhite, dark: sysColorBrandNeutralMutedLower) } + @objc open var colorElevationOverlayEmphasizedOnBackgroundSecondary: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray640, dark: ColorRawTokens.colorFunctionalDarkGray480) } - @objc open var colorContentDisabled: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandNeutralMutedMedium, dark: sysColorBrandNeutralEmphasizedLowest) } + @objc open var colorElevationOverlayEmphasizedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray80, dark: ColorRawTokens.colorFunctionalDarkGray480) } - @objc open var colorContentDisabledOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLowest) } + @objc open var colorElevationModal: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalWhite, dark: ColorRawTokens.colorFunctionalDarkGray640) } - @objc open var colorBorderBrandPrimary: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandPrimaryDefault, dark: sysColorBrandPrimaryLow) } + // MARK: Semantic token - Colors - Decorative - @objc open var colorBorderBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(light: sysColorBrandPrimaryLow, dark: sysColorBrandPrimaryLow) } + @objc open var colorDecorativeBrandPrimary: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorDecorativeBrandPrimary!") } - @objc open var colorBorderBrandSecondary: ColorSemanticToken? { nil } + @objc open var colorDecorativeBrandPrimaryMuted: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeBrandPrimaryMuted!") } - @objc open var colorBorderBrandTertiary: ColorSemanticToken? { nil } + @objc open var colorDecorativeBrandPrimaryEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeBrandPrimaryEmphasized!") } - @objc open var colorBorderBrandStatusAttractive: ColorSemanticToken? { nil } + @objc open var colorDecorativeSecondary: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalBlack, dark: ColorRawTokens.colorFunctionalLightGray160) } - @objc open var colorBorderBrandStatusWarning: ColorSemanticToken? { nil } + @objc open var colorDecorativeSecondaryMuted: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeSecondaryMuted!") } - @objc open var colorBorderBrandStatusNegative: ColorSemanticToken? { nil } + @objc open var colorDecorativeSecondaryEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeSecondaryEmphasized!") } - @objc open var colorBorderBrandStatusPositive: ColorSemanticToken? { nil } + @objc open var colorDecorativeBrandTertiary: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalBlack, dark: ColorRawTokens.colorFunctionalDarkGray880) } - @objc open var colorBorderBrandStatusInformation: ColorSemanticToken? { nil } + @objc open var colorDecorativeBrandTertiaryMuted: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeBrandTertiaryMuted!") } - @objc open var colorBorderTransparentDefault: ColorSemanticToken? { MultipleColorTokens(ColorRawTokens.colorTransparentBlack0) } + @objc open var colorDecorativeBrandTertiaryEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeBrandTertiaryEmphasized!") } - // TODO: #124 - Add missing colorBorderActionEnabled* - // TODO: #124 - Add missing colorBorderActionHover* - // TODO: #124 - Add missing colorBorderActionPressed* - // TODO: #124 - Add missing colorBorderActionDisabled* - // TODO: #124 - Add missing colorBorderActionFocus* - // TODO: #124 - Add missing colorBorderSelectionSelected* - // TODO: #124 - Add missing colorBorderSelectionUnselected* - // TODO: #124 - Add missing colorBorderAlways* - // TODO: #124 - Add missing colorBorderOutside - // TODO: #124 - Add missing colorOnBackgroundStatusAttractive* - // TODO: #124 - Add missing colorOnBackgroundStatusWarning* - // TODO: #124 - Add missing colorOnBackgroundStatusNegative* - // TODO: #124 - Add missing colorOnBackgroundStatusPositive* - // TODO: #124 - Add missing colorOnBackgroundStatusInformation* - // TODO: #124 - Add missing colorOnBackgroundActionEnabled* - // TODO: #124 - Add missing colorOnBackgroundActionHover* - // TODO: #124 - Add missing colorOnBackgroundActionPressed* - // TODO: #124 - Add missing colorOnBackgroundActionDisabled* - // TODO: #124 - Add missing colorOnBackgroundActionFocus* - // TODO: #124 - Add missing colorOnBackgroundActionAlways* - // TODO: #124 - Add missing colorElevation* - // TODO: #124 - Add missing colorDecorativeBrand* - // TODO: #124 - Add missing colorDecorativeNeutral* - // TODO: #124 - Add missing colorDecorativeAccent* - // TODO: #124 - Add missing colorDecorativeSkin* - // TODO: #124 - Add missing colorChart* + @objc open var colorDecorativeNeutralMuted: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray160, dark: ColorRawTokens.colorFunctionalDarkGray560) } + + @objc open var colorDecorativeNeutralDefault: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray400, dark: ColorRawTokens.colorFunctionalLightGray560) } + + @objc open var colorDecorativeNeutralEmphasized: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray640, dark: ColorRawTokens.colorFunctionalLightGray160) } + + @objc open var colorDecorativeAccent1Muted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald200) } + + @objc open var colorDecorativeAccent1Default: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald500) } + + @objc open var colorDecorativeAccent1Emphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald700) } + + @objc open var colorDecorativeAccent2Muted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky200) } + + @objc open var colorDecorativeAccent2Default: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky400) } + + @objc open var colorDecorativeAccent2Emphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky700) } + + @objc open var colorDecorativeAccent3Muted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun200) } + + @objc open var colorDecorativeAccent3Default: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun500) } + + @objc open var colorDecorativeAccent3Emphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmber500) } + + @objc open var colorDecorativeAccent4Muted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst200) } + + @objc open var colorDecorativeAccent4Default: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst400) } + + @objc open var colorDecorativeAccent4Emphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst800) } + + @objc open var colorDecorativeAccent5Muted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink100) } + + @objc open var colorDecorativeAccent5Default: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink200) } + + @objc open var colorDecorativeAccent5Emphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink300) } + + @objc open var colorDecorativeSkintTint100: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach100) } + + @objc open var colorDecorativeSkintTint200: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach200) } + + @objc open var colorDecorativeSkintTint300: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach300) } + + @objc open var colorDecorativeSkintTint400: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach400) } + + @objc open var colorDecorativeSkintTint500: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach500) } + + @objc open var colorDecorativeSkintTint600: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach600) } + + @objc open var colorDecorativeSkintTint700: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach700) } + + @objc open var colorDecorativeSkintTint800: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach800) } + + @objc open var colorDecorativeSkintTint900: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach900) } + + // MARK: Semantic token - Colors - Chart + + @objc open var colorChartCategoricalNeutral: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalLightGray160, dark: ColorRawTokens.colorFunctionalDarkGray720) } + + @objc open var colorChartCategoricalBrand: ColorSemanticToken { fatalError("🤖 Raw token unavailable for colorChartCategoricalBrand!") } + + @objc open var colorChartCategoricalPositive: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalMalachite500) } + + @objc open var colorChartCategoricalNegative: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet600) } + + @objc open var colorChartCategoricalTier1: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst600, dark: ColorRawTokens.colorDecorativeAmethyst500) } + + @objc open var colorChartCategoricalTier2: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeShockingPink700, dark: ColorRawTokens.colorDecorativeShockingPink400) } + + @objc open var colorChartCategoricalTier3: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeEmerald700, dark: ColorRawTokens.colorDecorativeEmerald600) } + + @objc open var colorChartCategoricalTier4: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeSky700, dark: ColorRawTokens.colorDecorativeSky200) } + + @objc open var colorChartCategoricalTier5: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmber800, dark: ColorRawTokens.colorDecorativeAmber700) } + + @objc open var colorChartCategoricalTier6: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst500, dark: ColorRawTokens.colorDecorativeAmethyst300) } + + @objc open var colorChartCategoricalTier7: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeShockingPink800, dark: ColorRawTokens.colorDecorativeShockingPink600) } + + @objc open var colorChartCategoricalTier8: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeEmerald600, dark: ColorRawTokens.colorDecorativeEmerald400) } + + @objc open var colorChartCategoricalTier9: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeSky800, dark: ColorRawTokens.colorDecorativeSky500) } + + @objc open var colorChartCategoricalTier10: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmber700, dark: ColorRawTokens.colorDecorativeAmber300) } + + @objc open var colorChartSequentialAccent1Tint100: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeSky100, dark: ColorRawTokens.colorDecorativeSky900) } + + @objc open var colorChartSequentialAccent1Tint200: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeSky200, dark: ColorRawTokens.colorDecorativeSky800) } + + @objc open var colorChartSequentialAccent1Tint300: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeSky300, dark: ColorRawTokens.colorDecorativeSky700) } + + @objc open var colorChartSequentialAccent1Tint400: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeSky400, dark: ColorRawTokens.colorDecorativeSky600) } + + @objc open var colorChartSequentialAccent1Tint500: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeSky500, dark: ColorRawTokens.colorDecorativeSky500) } + + @objc open var colorChartSequentialAccent1Tint600: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeSky600, dark: ColorRawTokens.colorDecorativeSky400) } + + @objc open var colorChartSequentialAccent1Tint700: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeSky700, dark: ColorRawTokens.colorDecorativeSky300) } + + @objc open var colorChartSequentialAccent1Tint800: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeSky800, dark: ColorRawTokens.colorDecorativeSky200) } + + @objc open var colorChartSequentialAccent1Tint900: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeSky900, dark: ColorRawTokens.colorDecorativeSky100) } + + @objc open var colorChartSequentialAccent2Tint100: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeEmerald100, dark: ColorRawTokens.colorDecorativeEmerald900) } + + @objc open var colorChartSequentialAccent2Tint200: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeEmerald200, dark: ColorRawTokens.colorDecorativeEmerald800) } + + @objc open var colorChartSequentialAccent2Tint300: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeEmerald300, dark: ColorRawTokens.colorDecorativeEmerald700) } + + @objc open var colorChartSequentialAccent2Tint400: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeEmerald400, dark: ColorRawTokens.colorDecorativeEmerald600) } + + @objc open var colorChartSequentialAccent2Tint500: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeEmerald500, dark: ColorRawTokens.colorDecorativeEmerald500) } + + @objc open var colorChartSequentialAccent2Tint600: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeEmerald600, dark: ColorRawTokens.colorDecorativeEmerald400) } + + @objc open var colorChartSequentialAccent2Tint700: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeEmerald700, dark: ColorRawTokens.colorDecorativeEmerald300) } + + @objc open var colorChartSequentialAccent2Tint800: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeEmerald800, dark: ColorRawTokens.colorDecorativeEmerald200) } + + @objc open var colorChartSequentialAccent2Tint900: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeEmerald900, dark: ColorRawTokens.colorDecorativeEmerald100) } + + @objc open var colorChartSequentialAccent3Tint100: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeShockingPink100, dark: ColorRawTokens.colorDecorativeShockingPink900) } + + @objc open var colorChartSequentialAccent3Tint200: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeShockingPink200, dark: ColorRawTokens.colorDecorativeShockingPink800) } + + @objc open var colorChartSequentialAccent3Tint300: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeShockingPink300, dark: ColorRawTokens.colorDecorativeShockingPink700) } + + @objc open var colorChartSequentialAccent3Tint400: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeShockingPink400, dark: ColorRawTokens.colorDecorativeShockingPink600) } + + @objc open var colorChartSequentialAccent3Tint500: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeShockingPink500, dark: ColorRawTokens.colorDecorativeShockingPink500) } + + @objc open var colorChartSequentialAccent3Tint600: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeShockingPink600, dark: ColorRawTokens.colorDecorativeShockingPink400) } + + @objc open var colorChartSequentialAccent3Tint700: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeShockingPink700, dark: ColorRawTokens.colorDecorativeShockingPink300) } + + @objc open var colorChartSequentialAccent3Tint800: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeShockingPink800, dark: ColorRawTokens.colorDecorativeShockingPink200) } + + @objc open var colorChartSequentialAccent3Tint900: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeShockingPink900, dark: ColorRawTokens.colorDecorativeShockingPink100) } + + @objc open var colorChartSequentialAccent4Tint100: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst100, dark: ColorRawTokens.colorDecorativeAmethyst900) } + + @objc open var colorChartSequentialAccent4Tint200: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst200, dark: ColorRawTokens.colorDecorativeAmethyst800) } + + @objc open var colorChartSequentialAccent4Tint300: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst300, dark: ColorRawTokens.colorDecorativeAmethyst700) } + + @objc open var colorChartSequentialAccent4Tint400: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst400, dark: ColorRawTokens.colorDecorativeAmethyst600) } + + @objc open var colorChartSequentialAccent4Tint500: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst500, dark: ColorRawTokens.colorDecorativeAmethyst500) } + + @objc open var colorChartSequentialAccent4Tint600: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst600, dark: ColorRawTokens.colorDecorativeAmethyst400) } + + @objc open var colorChartSequentialAccent4Tint700: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst700, dark: ColorRawTokens.colorDecorativeAmethyst300) } + + @objc open var colorChartSequentialAccent4Tint800: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst800, dark: ColorRawTokens.colorDecorativeAmethyst200) } + + @objc open var colorChartSequentialAccent4Tint900: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorDecorativeAmethyst900, dark: ColorRawTokens.colorDecorativeAmethyst100) } + + @objc open var colorChartSequentialAccent5Tint100: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalSun100, dark: ColorRawTokens.colorFunctionalSun900) } + + @objc open var colorChartSequentialAccent5Tint200: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalSun200, dark: ColorRawTokens.colorFunctionalSun800) } + + @objc open var colorChartSequentialAccent5Tint300: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalSun300, dark: ColorRawTokens.colorFunctionalSun700) } + + @objc open var colorChartSequentialAccent5Tint400: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalSun400, dark: ColorRawTokens.colorFunctionalSun600) } + + @objc open var colorChartSequentialAccent5Tint500: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalSun500, dark: ColorRawTokens.colorFunctionalSun500) } + + @objc open var colorChartSequentialAccent5Tint600: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalSun600, dark: ColorRawTokens.colorFunctionalSun400) } + + @objc open var colorChartSequentialAccent5Tint700: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalSun700, dark: ColorRawTokens.colorFunctionalSun300) } + + @objc open var colorChartSequentialAccent5Tint800: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalSun800, dark: ColorRawTokens.colorFunctionalSun200) } + + @objc open var colorChartSequentialAccent5Tint900: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalSun900, dark: ColorRawTokens.colorFunctionalSun100) } } + // swiftlint:enable line_length +// swiftlint:enable identifier_name +// swiftlint:enable file_length diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizingSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizingSemanticTokens.swift index 9621425a42..c2874a8461 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizingSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizingSemanticTokens.swift @@ -19,6 +19,7 @@ import OUDSTokensSemantic // [File to generate with the tokenator] // swiftlint:disable line_length + /// Defines basic values common to all themes for `SizingSemanticTokens`. /// These values can be overriden inside `OUDSTheme` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. extension OUDSTheme: SizingSemanticTokens { @@ -96,4 +97,5 @@ extension OUDSTheme: SizingSemanticTokens { @objc open var sizeMaxWidthTypeBodyMedium: MultipleSizingTokens { MultipleSizingTokens(compact: DimensionRawTokens.dimension6000, regular: DimensionRawTokens.dimension6000 ) } @objc open var sizeMaxWidthTypeBodyLarge: MultipleSizingTokens { MultipleSizingTokens(compact: DimensionRawTokens.dimension6000, regular: DimensionRawTokens.dimension6000 ) } } + // swiftlint:enable line_length diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+BorderSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+BorderSemanticTokens.swift deleted file mode 100644 index aa90dd07dd..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+BorderSemanticTokens.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// Software Name: OUDS iOS -// SPDX-FileCopyrightText: Copyright (c) Orange SA -// SPDX-License-Identifier: MIT -// -// This software is distributed under the MIT license, -// the text of which is available at https://opensource.org/license/MIT/ -// or see the "LICENSE" file for more details. -// -// Authors: See CONTRIBUTORS.txt -// Software description: A SwiftUI components library with code examples for Orange Unified Design System -// - -import Foundation -import OUDSTokensRaw -import OUDSTokensSemantic - -extension MockTheme { - - static let mockThemeBorderWidthRawToken: BorderWidthRawToken = 1_337 - static let mockThemeBorderRadiusRawToken: BorderRadiusRawToken = 42 - static let mockThemeBorderStyleRawToken: BorderStyleRawToken = "(╯°□°)╯︵ ┻━┻" - - // MARK: Semantic token - Border - Width - - override var borderWidthNone: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken } - override var borderWidthDefault: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} - override var borderWidthThin: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} - override var borderWidthMedium: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} - override var borderWidthThick: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} - override var borderWidthThicker: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} - override var borderWidthOutsideFocus: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} - - // MARK: Semantic token - Border - Radius - - override var borderRadiusNone: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } - override var borderRadiusDefault: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } - override var borderRadiusShort: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } - override var borderRadiusMedium: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } - override var borderRadiusTall: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } - - // MARK: Semantic token - Border - Style - - override var borderStyleDefault: BorderStyleSemanticToken { Self.mockThemeBorderStyleRawToken } - override var borderStyleDrag: BorderStyleSemanticToken { Self.mockThemeBorderStyleRawToken } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+ColorSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+ColorSemanticTokens.swift deleted file mode 100644 index 0f0304c421..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+ColorSemanticTokens.swift +++ /dev/null @@ -1,334 +0,0 @@ -// -// Software Name: OUDS iOS -// SPDX-FileCopyrightText: Copyright (c) Orange SA -// SPDX-License-Identifier: MIT -// -// This software is distributed under the MIT license, -// the text of which is available at https://opensource.org/license/MIT/ -// or see the "LICENSE" file for more details. -// -// Authors: See CONTRIBUTORS.txt -// Software description: A SwiftUI components library with code examples for Orange Unified Design System -// - -import Foundation -import OUDSTokensRaw -import OUDSTokensSemantic - -// swiftlint:disable implicitly_unwrapped_optional -extension MockTheme { - - static let mockThemeColorRawToken: ColorRawToken = "#68489D" - static let mockThemeMultipleColorTokens: ColorSemanticToken = MultipleColorTokens("#68489D") - - // MARK: Semantic token - Colors - Alias - Primary - - override var sysColorBrandPrimaryLowest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPrimaryLower: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPrimaryLow: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPrimaryDefault: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPrimaryHigh: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPrimaryHigher: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPrimaryHighest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - - // MARK: Semantic token - Colors - Alias - Secondary - - override var sysColorBrandSecondaryLowest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandSecondaryLower: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandSecondaryLow: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandSecondaryDefault: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandSecondaryHigh: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandSecondaryHigher: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandSecondaryHighest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - - // MARK: Semantic token - Colors - Alias - Tertiary - - override var sysColorBrandTertiaryLowest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandTertiaryLower: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandTertiaryLow: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandTertiaryDefault: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandTertiaryHigh: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandTertiaryHigher: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandTertiaryHighest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - - // MARK: Semantic token - Colors - Alias - Neutral - Muted - - override var sysColorBrandNeutralMutedWhite: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralMutedLowest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralMutedLower: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralMutedLow: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralMutedMedium: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralMutedHigh: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralMutedHigher: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralMutedHighest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - - // MARK: Semantic token - Colors - Alias - Neutral - Emphasized - - override var sysColorBrandNeutralEmphasizedLowest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralEmphasizedLower: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralEmphasizedLow: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralEmphasizedMedium: ColorAliasSemanticToken { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralEmphasizedHigh: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralEmphasizedHigher: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralEmphasizedHighest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNeutralEmphasizedBlack: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - - // MARK: Semantic token - Colors - Alias - Positive - - override var sysColorBrandPositiveLowest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPositiveLower: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPositiveLow: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPositiveDefault: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPositiveHigh: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPositiveHigher: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandPositiveHighest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - - // MARK: Semantic token - Colors - Alias - Information - - override var sysColorBrandInformationLowest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandInformationLower: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandInformationLow: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandInformationDefault: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandInformationHigh: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandInformationHigher: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandInformationHighest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - - // MARK: Semantic token - Colors - Alias - Warning - - override var sysColorBrandWarningLowest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandWarningLower: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandWarningLow: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandWarningDefault: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandWarningHigh: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandWarningHigher: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandWarningHighest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - - // MARK: Semantic token - Colors - Alias - Negative - - override var sysColorBrandNegativeLowest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNegativeLower: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNegativeLow: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNegativeDefault: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNegativeHigh: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNegativeHigher: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandNegativeHighest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - - // MARK: Semantic token - Colors - Alias - Attractive - - override var sysColorBrandAttractiveLowest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandAttractiveLower: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandAttractiveLow: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandAttractiveMedium: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandAttractiveHigh: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandAttractiveHigher: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - override var sysColorBrandAttractiveHighest: ColorAliasSemanticToken! { Self.mockThemeColorRawToken } - - // MARK: Semantic token - Colors - Background - - override var colorBackgroundDefaultPrimary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundDefaultSecondary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundDefaultTertiary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundEmphasizedPrimary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundBrandPrimary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundBrandSecondary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundBrandTertiary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusNeutral: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusNeutralOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusAttractiveMuted: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusAttractiveEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusWarningMuted: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusWarningEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusNegativeMuted: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusNegativeEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusPositiveMuted: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusPositiveEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusInformationMuted: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusInformationMutedOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundStatusInformationEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - // MARK: Semantic token - Colors - Background - Action - - override var colorBackgroundActionEnabled: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionEnabledOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionEnabledOnBackgroundStatusExcNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionEnabledOnBackgroundStatusNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionPressed: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionPressedOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionPressedOnBackgroundStatusExcNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionPressedOnBackgroundStautsNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionDisabled: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionDisabledOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionDisabledOnBackgroundStatusExcNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionDisabledOnBackgroundStatusNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionFocus: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionFocusOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionFocusOnBackgroundStatusExcNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBackgroundActionFocusOnBackgroundStatusNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - // MARK: Semantic token - Colors - Background - Transparent - - override var colorBackgroundTransparentDefault: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - // MARK: Semantic token - Colors - Content - - override var colorContentDefault: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentDefaultOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentDefaultOnBackgroundBrandPrimary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentMuted: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentMutedOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentDisabled: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentDisabledOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentBrandPrimary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentBrandSecondary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentBrandTertiary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentStatusAttractive: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentStatusNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentStatusPositive: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentStatusInformation: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentActionEnabled: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentActionEnabledOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentActionEnabledOnBackgroundStatusExcNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentActionEnabledOnBackgroundStatusNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentActionHover: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentActionHoverOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentActionHoverOnBackgroundStatusExcNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentActionHoverOnBackgroundStatusNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorContentTransparentDefault: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - // TODO: #124 - Add missing colorContentActionPressed* tokens - // TODO: #124 - Add missing colorContentActionDisabled* tokens - // TODO: #124 - Add missing colorContentActionFocus* tokens - // TODO: #124 - Add missing colorContentVisited* tokens - // TODO: #124 - Add missing colorContentActionSelectionSelected* tokens - // TODO: #124 - Add missing colorContentActionSelectionHover* tokens - // TODO: #124 - Add missing colorContentActionSelectionPressed* tokens - // TODO: #124 - Add missing colorContentActionSelectionSelectedFocus* tokens - // TODO: #124 - Add missing colorContentActionSelectionUnselected* tokens - // TODO: #124 - Add missing colorContentActionAlways* tokens - - // MARK: Semantic token - Colors - Border - - override var colorBorderDefault: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderDefaultOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandPrimary - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandSecondary - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandTertiary - - override var colorBorderEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderEmphasizedOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderBrandPrimary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderBrandSecondary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderBrandTertiary: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderBrandStatusAttractive: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderBrandStatusWarning: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderBrandStatusNegative: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderBrandStatusPositive: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderBrandStatusInformation: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - override var colorBorderTransparentDefault: ColorSemanticToken? { Self.mockThemeMultipleColorTokens } - - // TODO: #124 - Add missing colorBorderActionEnabled* - // TODO: #124 - Add missing colorBorderActionHover* - // TODO: #124 - Add missing colorBorderActionPressed* - // TODO: #124 - Add missing colorBorderActionDisabled* - // TODO: #124 - Add missing colorBorderActionFocus* - // TODO: #124 - Add missing colorBorderSelectionSelected* - // TODO: #124 - Add missing colorBorderSelectionUnselected* - // TODO: #124 - Add missing colorBorderAlways* - // TODO: #124 - Add missing colorBorderOutside - // TODO: #124 - Add missing colorOnBackgroundStatusAttractive* - // TODO: #124 - Add missing colorOnBackgroundStatusWarning* - // TODO: #124 - Add missing colorOnBackgroundStatusNegative* - // TODO: #124 - Add missing colorOnBackgroundStatusPositive* - // TODO: #124 - Add missing colorOnBackgroundStatusInformation* - // TODO: #124 - Add missing colorOnBackgroundActionEnabled* - // TODO: #124 - Add missing colorOnBackgroundActionHover* - // TODO: #124 - Add missing colorOnBackgroundActionPressed* - // TODO: #124 - Add missing colorOnBackgroundActionDisabled* - // TODO: #124 - Add missing colorOnBackgroundActionFocus* - // TODO: #124 - Add missing colorOnBackgroundActionAlways* - // TODO: #124 - Add missing colorElevation* - // TODO: #124 - Add missing colorDecorativeBrand* - // TODO: #124 - Add missing colorDecorativeNeutral* - // TODO: #124 - Add missing colorDecorativeAccent* - // TODO: #124 - Add missing colorDecorativeSkin* - // TODO: #124 - Add missing colorChart* -} -// swiftlint:enable implicitly_unwrapped_optional diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+DimensionSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+DimensionSemanticTokens.swift deleted file mode 100644 index fd92e762ef..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+DimensionSemanticTokens.swift +++ /dev/null @@ -1,47 +0,0 @@ -// -// Software Name: OUDS iOS -// SPDX-FileCopyrightText: Copyright (c) Orange SA -// SPDX-License-Identifier: MIT -// -// This software is distributed under the MIT license, -// the text of which is available at https://opensource.org/license/MIT/ -// or see the "LICENSE" file for more details. -// -// Authors: See CONTRIBUTORS.txt -// Software description: A SwiftUI components library with code examples for Orange Unified Design System -// - -import OUDSTokensSemantic - -/// Defines basic values common to all themes for `DimensionSemanticTokens`. -/// These values can be overriden inside `OUDSTheme` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. -extension MockTheme { - - static let mockThemeDimensionSemanticToken: DimensionSemanticToken = 007 - - override var dimensionNone: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension10XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension9XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension8XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension7XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension6XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension5XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension4XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension3XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension2XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimensionXS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimensionSM: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimensionMD: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimensionLG: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimensionXL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension2XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension3XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension4XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension5XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension6XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension7XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension8XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension9XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension10XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } - override var dimension11XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+ElevationSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+ElevationSemanticTokens.swift deleted file mode 100644 index f007466b30..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+ElevationSemanticTokens.swift +++ /dev/null @@ -1,117 +0,0 @@ -// -// Software Name: OUDS iOS -// SPDX-FileCopyrightText: Copyright (c) Orange SA -// SPDX-License-Identifier: MIT -// -// This software is distributed under the MIT license, -// the text of which is available at https://opensource.org/license/MIT/ -// or see the "LICENSE" file for more details. -// -// Authors: See CONTRIBUTORS.txt -// Software description: A SwiftUI components library with code examples for Orange Unified Design System -// - -import Foundation -import OUDSTokensRaw -import OUDSTokensSemantic - -extension MockTheme { - - static let mockThemeElevationXRawToken: ElevationRawToken = 711 - static let mockThemeElevationYRawToken: ElevationRawToken = 713 - static let mockThemeElevationBlurRawToken: ElevationRawToken = 816 - static let mockThemeElevationColorRawToken: ColorRawToken = ColorRawTokens.colorFunctionalMalachite500 - static let mockThemeElevationMultipleColorSemanticToken = ElevationColorSemanticToken(mockThemeElevationColorRawToken) - static let mockThemeElevationCompositeRawToken = ElevationCompositeRawToken(x: 118, y: 712, blur: 118, color: ColorRawTokens.colorFunctionalDodgerBlue800) - static let mockThemeElevationCompositeSemanticToken = ElevationCompositeSemanticToken(ElevationRawTokens.elevationBottom_1_600) - - // MARK: Semantic token - Elevation - X - - override var elevationXNone: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } - override var elevationXRaised: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } - override var elevationXDrag: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } - override var elevationXOverlayDefault: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } - override var elevationXOverlayEmphasized: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } - override var elevationXStickyDefault: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } - override var elevationXStickyEmphasized: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } - override var elevationXStickyNavigationScrolled: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } - override var elevationXFocus: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } - - // MARK: Semantic token - Elevation - Y - - override var elevationYNone: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } - override var elevationYRaised: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } - override var elevationYDrag: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } - override var elevationYOverlayDefault: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } - override var elevationYOverlayEmphasized: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } - override var elevationYStickyDefault: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } - override var elevationYStickyEmphasized: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } - override var elevationYStickyNavigationScrolled: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } - override var elevationYFocus: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } - - // MARK: Semantic token - Elevation - Blur - - override var elevationBlurNone: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - override var elevationBlurRaised: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - override var elevationBlurDrag: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - override var elevationBlurOverlayDefault: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - override var elevationBlurOverlayEmphasized: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - override var elevationBlurStickyDefault: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - override var elevationBlurStickyEmphasized: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - override var elevationBlurStickyNavigationScrolled: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - override var elevationBlurFocus: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - - // MARK: Semantic token - Elevation - Color - None - - override var elevationColorNone: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } - - // MARK: Semantic token - Elevation - Color - Raised - - override var elevationColorRaised: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } - - // MARK: Semantic token - Elevation - Color - Drag - - override var elevationColorDrag: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } - - // MARK: Semantic token - Elevation - Color - Overlay - Default - - override var elevationColorOverlayDefault: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } - - // MARK: Semantic token - Elevation - Color - Overlay - Emphasized - - override var elevationColorOverlayEmphasized: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } - - // MARK: Semantic token - Elevation - Color - Sticky - Default - - override var elevationColorStickyDefault: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } - - // MARK: Semantic token - Elevation - Color - Sticky - Emphasized - - override var elevationColorStickyEmphasized: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } - - // MARK: Semantic token - Elevation - Color - Sticky - Navigation scrolled - - override var elevationColorStickyNavigationScrolled: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } - - // MARK: Semantic token - Elevation - Color - Focus - - override var elevationColorFocus: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } - - // MARK: Semantic token - Elevation - Box shadow - - override var elevationRaised: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } - - override var elevationDrag: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } - - override var elevationOverlayDefault: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } - - override var elevationOverlayEmphasized: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } - - override var elevationStickyDefault: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } - - override var elevationStickyEmphasized: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } - - override var elevationStickyNavigationScrolled: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } - - override var elevationFocus: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+GridSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+GridSemanticTokens.swift deleted file mode 100644 index 36b142558f..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+GridSemanticTokens.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// Software Name: OUDS iOS -// SPDX-FileCopyrightText: Copyright (c) Orange SA -// SPDX-License-Identifier: MIT -// -// This software is distributed under the MIT license, -// the text of which is available at https://opensource.org/license/MIT/ -// or see the "LICENSE" file for more details. -// -// Authors: See CONTRIBUTORS.txt -// Software description: A SwiftUI components library with code examples for Orange Unified Design System -// - -import Foundation -import OUDSTokensRaw -import OUDSTokensSemantic - -extension MockTheme { - - static let mockThemeGridRawToken: GridRawToken = 3_630 - - override var gridExtraCompactMinWidth: GridExtraCompactSemanticToken { Self.mockThemeGridRawToken } - override var gridExtraCompactMaxWidth: GridExtraCompactSemanticToken { Self.mockThemeGridRawToken } - override var gridExtraCompactMargin: GridExtraCompactSemanticToken { Self.mockThemeGridRawToken } - override var gridExtraCompactColumnGap: GridExtraCompactSemanticToken { Self.mockThemeGridRawToken } - override var gridExtraCompactColumnCount: GridExtraCompactSemanticToken { Self.mockThemeGridRawToken } - - override var gridCompactMinWidth: GridCompactSemanticToken { Self.mockThemeGridRawToken } - override var gridCompactMaxWidth: GridCompactSemanticToken { Self.mockThemeGridRawToken } - override var gridCompactMargin: GridCompactSemanticToken { Self.mockThemeGridRawToken } - override var gridCompactColumnGap: GridCompactSemanticToken { Self.mockThemeGridRawToken } - override var gridCompactColumnCount: GridCompactSemanticToken { Self.mockThemeGridRawToken } - - override var gridRegularMinWidth: GridRegularSemanticToken { Self.mockThemeGridRawToken } - override var gridRegularMaxWidth: GridRegularSemanticToken { Self.mockThemeGridRawToken } - override var gridRegularMargin: GridRegularSemanticToken { Self.mockThemeGridRawToken } - override var gridRegularColumnGap: GridRegularSemanticToken { Self.mockThemeGridRawToken } - override var gridRegularColumnCount: GridRegularSemanticToken { Self.mockThemeGridRawToken } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+SizingSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+SizingSemanticTokens.swift deleted file mode 100644 index 7e464411a4..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+SizingSemanticTokens.swift +++ /dev/null @@ -1,94 +0,0 @@ -// -// Software Name: OUDS iOS -// SPDX-FileCopyrightText: Copyright (c) Orange SA -// SPDX-License-Identifier: MIT -// -// This software is distributed under the MIT license, -// the text of which is available at https://opensource.org/license/MIT/ -// or see the "LICENSE" file for more details. -// -// Authors: See CONTRIBUTORS.txt -// Software description: A SwiftUI components library with code examples for Orange Unified Design System -// - -import OUDSTokensRaw -import OUDSTokensSemantic - -extension MockTheme { - - static let mockThemeSizeRawToken: DimensionRawToken = 118_000 - static let mockThemeSizeCompositeToken = MultipleSizingTokens(compact: 1, regular: 151) - - // MARK: - Semantic token - Sizing - Icon decorative - - override var sizeIconDecorativeShortest: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconDecorativeShorter: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconDecorativeShort: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconDecorativeMedium: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconDecorativeTall: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconDecorativeTaller: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconDecorativeTallest: SizingSemanticToken { Self.mockThemeSizeRawToken } - - // MARK: - Semantic token - Sizing - Icon with typography - - override var sizeIconWithHeadingSmallShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithHeadingSmallMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithHeadingSmallTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - - override var sizeIconWithHeadingMediumShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithHeadingMediumMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithHeadingMediumTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - - override var sizeIconWithHeadingLargeShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithHeadingLargeMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithHeadingLargeTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - - override var sizeIconWithHeadingXLargeShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithHeadingXLargeMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithHeadingXLargeTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - - override var sizeIconWithBodySmallShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithBodySmallMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithBodySmallTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - - override var sizeIconWithBodyMediumShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithBodyMediumMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithBodyMediumTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - - override var sizeIconWithBodyLargeShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithBodyLargeMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeIconWithBodyLargeTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - - override var sizeIconWithLabelSmallSizeShort: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconWithLabelSmallSizeMedium: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconWithLabelSmallSizeTall: SizingSemanticToken { Self.mockThemeSizeRawToken } - - override var sizeIconWithLabelMediumSizeShort: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconWithLabelMediumSizeMedium: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconWithLabelMediumSizeTall: SizingSemanticToken { Self.mockThemeSizeRawToken } - - override var sizeIconWithLabelLargeSizeShorter: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconWithLabelLargeSizeShort: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconWithLabelLargeSizeMedium: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconWithLabelLargeSizeTall: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconWithLabelLargeSizeTaller: SizingSemanticToken { Self.mockThemeSizeRawToken } - - override var sizeIconWithLabelXLargeSizeShort: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconWithLabelXLargeSizeMedium: SizingSemanticToken { Self.mockThemeSizeRawToken } - override var sizeIconWithLabelXLargeSizeTall: SizingSemanticToken { Self.mockThemeSizeRawToken } - - // MARK: - Semantic token - Sizing - Max width typography - - override var sizeMaxWidthTypeDisplaySmall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeMaxWidthTypeDisplayMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeMaxWidthTypeDisplayLarge: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - - override var sizeMaxWidthTypeHeadingSmall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeMaxWidthTypeHeadingMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeMaxWidthTypeHeadingLarge: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeMaxWidthTypeHeadingXLarge: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - - override var sizeMaxWidthTypeBodySmall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeMaxWidthTypeBodyMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } - override var sizeMaxWidthTypeBodyLarge: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+SpacingSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+SpacingSemanticTokens.swift deleted file mode 100644 index 5e826f465a..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+SpacingSemanticTokens.swift +++ /dev/null @@ -1,142 +0,0 @@ -// -// Software Name: OUDS iOS -// SPDX-FileCopyrightText: Copyright (c) Orange SA -// SPDX-License-Identifier: MIT -// -// This software is distributed under the MIT license, -// the text of which is available at https://opensource.org/license/MIT/ -// or see the "LICENSE" file for more details. -// -// Authors: See CONTRIBUTORS.txt -// Software description: A SwiftUI components library with code examples for Orange Unified Design System -// - -import OUDSTokensRaw -import OUDSTokensSemantic - -extension MockTheme { - - static let mockThemeSpaceRawToken: DimensionRawToken = 911 - static let mockThemeSpaceSemanticToken = MultipleSpacingTokens(compact: 1, regular: 151) - - // MARK: Semantic token - Spacing - Layout fluid - - override var spaceScaledNone: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } - override var spaceScaledSmash: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } - override var spaceScaledShortest: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } - override var spaceScaledShorter: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } - override var spaceScaledShort: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } - override var spaceScaledMedium: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } - override var spaceScaledTall: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } - override var spaceScaledTaller: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } - override var spaceScaledTallest: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } - override var spaceScaledSpacious: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } - - // MARK: Semantic token - Spacing - Layout fix - - override var spaceFixedNone: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceFixedSmash: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceFixedShortest: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceFixedShorter: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceFixedShort: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceFixedMedium: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceFixedTall: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceFixedTaller: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceFixedTallest: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceFixedSpacious: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceFixedHuge: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceFixedJumbo: SpacingSemanticToken { Self.mockThemeSpaceRawToken } - - // MARK: Semantic token - Spacing - Padding - Padding inline - - override var spacePaddingInlineNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - - override var spacePaddingInlineWithIconNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithIconShortest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithIconShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithIconShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithIconMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithIconTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithIconTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithIconTallest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - - override var spacePaddingInlineWithArrowNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithArrowShortest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithArrowShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithArrowShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithArrowMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithArrowTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithArrowTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingInlineWithArrowTallest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - - // MARK: Semantic token - Padding - Padding stack - - override var spacePaddingBlockNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingBlockShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingBlockShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingBlockMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingBlockTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingBlockTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - - override var spacePaddingBlockWithIconNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingBlockWithIconShortest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingBlockWithIconShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingBlockWithIconShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingBlockWithIconMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingBlockWithIconTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spacePaddingBlockWithIconTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - - // MARK: Semantic token - Padding - Padding inset - - override var spaceInsetNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceInsetSmash: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceInsetShortest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceInsetShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceInsetShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceInsetMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceInsetTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceInsetTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceInsetTallest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceInsetSpacious: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - - // MARK: Semantic token - Padding - Gap inline - - override var spaceColumnGapNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - - override var spaceColumnGapWithIconNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapWithIconShortest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapWithIconShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapWithIconShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapWithIconMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapWithIconTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - - override var spaceColumnGapWithArrowNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapWithArrowShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapWithArrowShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapWithArrowMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapWithArrowTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceColumnGapWithArrowTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } - - // MARK: Semantic token - Padding - Gap stack - - override var spaceRowGapNone: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceRowGapShorter: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceRowGapShort: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceRowGapMedium: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceRowGapTall: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceRowGapWithIconNone: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceRowGapWithIconShortest: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceRowGapWithIconShorter: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceRowGapWithIconShort: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceRowGapWithIconMedium: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } - override var spaceRowGapWithIconTall: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+TypographySemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+TypographySemanticTokens.swift deleted file mode 100644 index a0886fd8f1..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+TypographySemanticTokens.swift +++ /dev/null @@ -1,146 +0,0 @@ -// -// Software Name: OUDS iOS -// SPDX-FileCopyrightText: Copyright (c) Orange SA -// SPDX-License-Identifier: MIT -// -// This software is distributed under the MIT license, -// the text of which is available at https://opensource.org/license/MIT/ -// or see the "LICENSE" file for more details. -// -// Authors: See CONTRIBUTORS.txt -// Software description: A SwiftUI components library with code examples for Orange Unified Design System -// - -import OUDSTokensRaw -import OUDSTokensSemantic - -extension MockTheme { - - static let mockThemeTypographyFontFamilyRawToken: TypographyFontFamilyRawToken = "o°xXSkyBl0GF0ntxXx°o" - static let mockThemeTypographyFontWeightRawToken: TypographyFontWeightRawToken = 888 - static let mockThemeTypographyFontSizeRawToken: TypographyFontSizeRawToken = 666 - static let mockThemeTypographyFontLineHeightRawToken: TypographyFontLineHeightRawToken = 321 - static let mockThemeTypographyFontLetterSpacingRawToken: TypographyFontLetterSpacingRawToken = 21_092_024 - static let mockThemeMultipleTypographyTokens = MultipleTypographyTokens(TypographyRawTokens.typeBold1850) - static let mockThemeMultipleTypographyFontSizeTokens = MultipleFontSizeTokens(mockThemeTypographyFontSizeRawToken) - static let mockThemeMultipleTypographyLineHeightTokens = MultipleFontLineHeightTokens(mockThemeTypographyFontLineHeightRawToken) - static let mockThemeMultipleTypographyLetterSpacingTokens = MultipleFontLetterSpacingTokens(mockThemeTypographyFontLetterSpacingRawToken) - - // MARK: Semantic token - Typography - Font - Family - - override var fontFamily: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } - override var fontFamilyDisplay: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } - override var fontFamilyHeading: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } - override var fontFamilyBody: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } - override var fontFamilyLabel: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } - override var fontFamilyCode: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } - - // MARK: Semantic token - Typography - Font - Weight - - override var fontWeightDisplay: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } - override var fontWeightHeading: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } - override var fontWeightBodyDefault: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } - override var fontWeightBodyStrong: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } - override var fontWeightLabelDefault: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } - override var fontWeightLabelStrong: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } - override var fontWeightCode: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } - - // MARK: Semantic token - Typography - Font - Size - - override var fontSizeDisplayLarge: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } - override var fontSizeDisplayMedium: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } - override var fontSizeDisplaySmall: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } - override var fontSizeHeadingXLarge: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } - override var fontSizeHeadingLarge: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } - override var fontSizeHeadingMedium: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } - override var fontSizeHeadingSmall: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } - override var fontSizeBodyLarge: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } - override var fontSizeBodyMedium: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } - override var fontSizeBodySmall: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } - - // MARK: Semantic token - Typography - Font - Size - Others - - override var fontSizeLabelXLarge: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } - override var fontSizeLabelLarge: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } - override var fontSizeLabelMedium: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } - override var fontSizeLabelSmall: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } - override var fontSizeCodeMedium: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } - override var fontSizeCodeSmall: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } - - // MARK: - Semantic token - Typography - Font - Line height - - override var fontLineHeightDisplayLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightDisplayMedium: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightDisplaySmall: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightHeadingXLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightHeadingLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightHeadingMedium: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightHeadingSmall: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightBodyLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightBodyMedium: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightBodySmall: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightLabelXLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightLabelLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightLabelMedium: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightLabelSmall: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightCodeMedium: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - override var fontLineHeightCodeSmall: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } - - // MARK: - Semantic token - Typography - Font - Letter spacing - - override var fontLetterSpacingDisplayLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingDisplayMedium: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingDisplaySmall: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingHeadingXLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingHeadingLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingHeadingMedium: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingHeadingSmall: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingBodyLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingBodyMedium: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingBodySmall: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - - override var fontLetterSpacingLabelXLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingLabelLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingLabelMedium: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingLabelSmall: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingCodeMedium: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - override var fontLetterSpacingCodeSmall: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } - - // MARK: - Semantic tokens - Typography - Composites - Display - - override var typeDisplayLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeDisplayMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeDisplaySmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - - // MARK: - Semantic tokens - Typography - Composites - Heading - - override var typeHeadingXLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeHeadingLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeHeadingMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeHeadingSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - - // MARK: - Semantic tokens - Typography - Composites - Body - - override var typeBodyDefaultLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeBodyDefaultMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeBodyDefaultSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeBodyStrongLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeBodyStrongMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeBodyStrongSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - - // MARK: - Semantic tokens - Typography - Composites - Label - - override var typeLabelDefaultXLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeLabelDefaultLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeLabelDefaultMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeLabelDefaultSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeLabelStrongXLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeLabelStrongLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeLabelStrongMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeLabelStrongSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - - // MARK: - Semantic tokens - Typography - Composites - Code - - override var typeCodeMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } - override var typeCodeSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+BorderSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+BorderSemanticTokens.swift new file mode 100644 index 0000000000..04ab251f2e --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+BorderSemanticTokens.swift @@ -0,0 +1,46 @@ +// +// Software Name: OUDS iOS +// SPDX-FileCopyrightText: Copyright (c) Orange SA +// SPDX-License-Identifier: MIT +// +// This software is distributed under the MIT license, +// the text of which is available at https://opensource.org/license/MIT/ +// or see the "LICENSE" file for more details. +// +// Authors: See CONTRIBUTORS.txt +// Software description: A SwiftUI components library with code examples for Orange Unified Design System +// + +import Foundation +import OUDSTokensRaw +import OUDSTokensSemantic + +extension MockTheme { + + static let mockThemeBorderWidthRawToken: BorderWidthRawToken = 1_337 + static let mockThemeBorderRadiusRawToken: BorderRadiusRawToken = 42 + static let mockThemeBorderStyleRawToken: BorderStyleRawToken = "(╯°□°)╯︵ ┻━┻" + + // MARK: Semantic token - Border - Width + + override open var borderWidthNone: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken } + override open var borderWidthDefault: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} + override open var borderWidthThin: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} + override open var borderWidthMedium: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} + override open var borderWidthThick: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} + override open var borderWidthThicker: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} + override open var borderWidthOutsideFocus: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken} + + // MARK: Semantic token - Border - Radius + + override open var borderRadiusNone: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } + override open var borderRadiusDefault: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } + override open var borderRadiusShort: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } + override open var borderRadiusMedium: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } + override open var borderRadiusTall: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } + + // MARK: Semantic token - Border - Style + + override open var borderStyleDefault: BorderStyleSemanticToken { Self.mockThemeBorderStyleRawToken } + override open var borderStyleDrag: BorderStyleSemanticToken { Self.mockThemeBorderStyleRawToken } +} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ColorSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ColorSemanticTokens.swift new file mode 100644 index 0000000000..cbc7cdee71 --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ColorSemanticTokens.swift @@ -0,0 +1,543 @@ +// +// Software Name: OUDS iOS +// SPDX-FileCopyrightText: Copyright (c) Orange SA +// SPDX-License-Identifier: MIT +// +// This software is distributed under the MIT license, +// the text of which is available at https://opensource.org/license/MIT/ +// or see the "LICENSE" file for more details. +// +// Authors: See CONTRIBUTORS.txt +// Software description: A SwiftUI components library with code examples for Orange Unified Design System +// + +import Foundation +import OUDSTokensRaw +import OUDSTokensSemantic + +// swiftlint:disable file_length + +extension MockTheme { + + static let mockThemeMultipleColorTokens: ColorSemanticToken = MultipleColorTokens("#68489D") + + // MARK: Semantic token - Colors - Background + + override open var colorBackgroundPrimary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundSecondary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundTertiary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundBrandPrimary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundBrandSecondary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundBrandTertiary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusNeutral: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusNeutralOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusPositiveMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusPositiveEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusInfoMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusInfoMutedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusInfoEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusWarningMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusWarningEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusNegativeMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusNegativeEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusAccentMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusAccentMutedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBackgroundStatusAccentEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Content - Status + + override open var colorContentDefault: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentContentDefaultOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentContentMutedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentDisabled: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentContentDisabledOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentBrandPrimary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentBrandSecondary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentBrandTertiary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentStatusPositive: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentStatusInfo: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentStatusWarning: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentStatusNegative: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentStatusAccent: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Content - On Background + + override open var colorContentOnBackgroundPrimary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundSecondary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundTertiary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusPositiveMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusPositiveEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusInfoMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusInfoMutedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusInfoEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusWarningMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusWarningEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusNegativeMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusNegativeEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusAccentMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusAccentMutedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorContentOnBackgroundStatusAccentedEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Border + + override open var colorBorderDefault: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderDefaultOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderEmphasizedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderFocus: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderBrandPrimary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderBrandSecondary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderBrandTertiary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderStatusPositive: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderStatusInfo: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderStatusWarning: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderStatusNegative: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderStatusAccent: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderOnBackgroundBrandPrimary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderOnBackgroundBrandSecondary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorBorderOnBackgroundBrandTertiary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Action + + override open var colorActionSelected: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionSelectedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionDisabled: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionDisabledOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionVisited: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionVistedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionPrimaryEnabled: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionPrimaryEnabledOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionPrimaryHover: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionPrimaryHoverOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionPrimaryPressed: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionPrimaryPressedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionPrimaryLoading: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionPrimaryLoadingOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionPrimaryFocus: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionPrimaryFocusOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionSecondaryEnabled: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionSecondaryEnabledOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionSecondaryHover: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionSecondaryHoverOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionSecondaryPressed: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionSecondaryPressedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionSecondaryLoading: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionSecondaryLoadingOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionSecondaryFocus: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionSecondaryFocusOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionNegativeEnabled: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionNegativeHover: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionNegativePressed: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionNegativeLoading: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionNegativeFocus: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionDisabled: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionDisabledOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionNegative: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionPrimaryEnabled: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionPrimaryEnabledOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionPrimaryHover: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionPrimaryHoverOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionPrimaryPressed: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionPrimaryPressedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionPrimaryLoading: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionPrimaryLoadingOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionPrimaryFocus: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionPrimaryFocusOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionSecondaryEnabled: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionSecondaryHover: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionSecondaryPressed: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionSecondaryLoading: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionSecondaryFocus: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Always + + override open var colorAlwaysBlack: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysWhite: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysWarning: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysNegative: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysPositive: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysInfo: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysAccent: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysOnBackgroundBlack: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysOnBackgroundWhite: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysOnBackgroundWarning: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysOnBackgroundNegative: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysOnBackgroundPositive: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysOnBackgroundInfo: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorAlwaysOnBackgroundAccent: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Transparent + + override open var colorTransparentDefault: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Elevation + + override open var colorElevationRaised: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationRaisedOnBackgroundSecondary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationRaisedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationDrag: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationDragOnBackgroundSecondary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationDragOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationOverlayDefault: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationOverlayDefaultOnBackgroundSecondary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationOverlayDefaultOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationOverlayEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationOverlayEmphasizedOnBackgroundSecondary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationOverlayEmphasizedOnBackgroundEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorElevationModal: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Decorative + + override open var colorDecorativeBrandPrimary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeBrandPrimaryMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeBrandPrimaryEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSecondary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSecondaryMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSecondaryEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeBrandTertiary: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeBrandTertiaryMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeBrandTertiaryEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeNeutralMuted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeNeutralDefault: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeNeutralEmphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent1Muted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent1Default: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent1Emphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent2Muted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent2Default: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent2Emphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent3Muted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent3Default: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent3Emphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent4Muted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent4Default: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent4Emphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent5Muted: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent5Default: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeAccent5Emphasized: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSkintTint100: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSkintTint200: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSkintTint300: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSkintTint400: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSkintTint500: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSkintTint600: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSkintTint700: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSkintTint800: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorDecorativeSkintTint900: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Chart + + override open var colorChartCategoricalNeutral: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalBrand: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalPositive: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalNegative: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalTier1: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalTier2: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalTier3: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalTier4: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalTier5: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalTier6: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalTier7: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalTier8: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalTier9: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartCategoricalTier10: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent1Tint100: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent1Tint200: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent1Tint300: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent1Tint400: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent1Tint500: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent1Tint600: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent1Tint700: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent1Tint800: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent1Tint900: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent2Tint100: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent2Tint200: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent2Tint300: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent2Tint400: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent2Tint500: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent2Tint600: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent2Tint700: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent2Tint800: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent2Tint900: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent3Tint100: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent3Tint200: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent3Tint300: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent3Tint400: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent3Tint500: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent3Tint600: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent3Tint700: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent3Tint800: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent3Tint900: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent4Tint100: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent4Tint200: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent4Tint300: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent4Tint400: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent4Tint500: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent4Tint600: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent4Tint700: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent4Tint800: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent4Tint900: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent5Tint100: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent5Tint200: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent5Tint300: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent5Tint400: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent5Tint500: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent5Tint600: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent5Tint700: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent5Tint800: ColorSemanticToken { Self.mockThemeMultipleColorTokens } + + override open var colorChartSequentialAccent5Tint900: ColorSemanticToken { Self.mockThemeMultipleColorTokens } +} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+DimensionSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+DimensionSemanticTokens.swift new file mode 100644 index 0000000000..9db3f915f8 --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+DimensionSemanticTokens.swift @@ -0,0 +1,47 @@ +// +// Software Name: OUDS iOS +// SPDX-FileCopyrightText: Copyright (c) Orange SA +// SPDX-License-Identifier: MIT +// +// This software is distributed under the MIT license, +// the text of which is available at https://opensource.org/license/MIT/ +// or see the "LICENSE" file for more details. +// +// Authors: See CONTRIBUTORS.txt +// Software description: A SwiftUI components library with code examples for Orange Unified Design System +// + +import OUDSTokensSemantic + +/// Defines basic values common to all themes for `DimensionSemanticTokens`. +/// These values can be override openn inside `OUDSTheme` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. +extension MockTheme { + + static let mockThemeDimensionSemanticToken: DimensionSemanticToken = 007 + + override open var dimensionNone: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension10XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension9XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension8XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension7XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension6XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension5XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension4XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension3XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension2XS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimensionXS: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimensionSM: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimensionMD: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimensionLG: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimensionXL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension2XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension3XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension4XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension5XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension6XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension7XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension8XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension9XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension10XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } + override open var dimension11XL: DimensionSemanticToken { Self.mockThemeDimensionSemanticToken } +} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ElevationSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ElevationSemanticTokens.swift new file mode 100644 index 0000000000..c20e66a3fd --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ElevationSemanticTokens.swift @@ -0,0 +1,120 @@ +// +// Software Name: OUDS iOS +// SPDX-FileCopyrightText: Copyright (c) Orange SA +// SPDX-License-Identifier: MIT +// +// This software is distributed under the MIT license, +// the text of which is available at https://opensource.org/license/MIT/ +// or see the "LICENSE" file for more details. +// +// Authors: See CONTRIBUTORS.txt +// Software description: A SwiftUI components library with code examples for Orange Unified Design System +// + +import Foundation +import OUDSTokensRaw +import OUDSTokensSemantic + +// swiftlint:disable identifier_name + +extension MockTheme { + + static let mockThemeElevationXRawToken: ElevationRawToken = 711 + static let mockThemeElevationYRawToken: ElevationRawToken = 713 + static let mockThemeElevationBlurRawToken: ElevationRawToken = 816 + static let mockThemeElevationColorRawToken: ColorRawToken = ColorRawTokens.colorFunctionalMalachite500 + static let mockThemeElevationMultipleColorSemanticToken = ElevationColorSemanticToken(mockThemeElevationColorRawToken) + static let mockThemeElevationCompositeRawToken = ElevationCompositeRawToken(x: 118, y: 712, blur: 118, color: ColorRawTokens.colorFunctionalDodgerBlue800) + static let mockThemeElevationCompositeSemanticToken = ElevationCompositeSemanticToken(ElevationRawTokens.elevationBottom_1_600) + + // MARK: Semantic token - Elevation - X + + override open var elevationXNone: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override open var elevationXRaised: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override open var elevationXDrag: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override open var elevationXOverlayDefault: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override open var elevationXOverlayEmphasized: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override open var elevationXStickyDefault: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override open var elevationXStickyEmphasized: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override open var elevationXStickyNavigationScrolled: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override open var elevationXFocus: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + + // MARK: Semantic token - Elevation - Y + + override open var elevationYNone: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override open var elevationYRaised: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override open var elevationYDrag: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override open var elevationYOverlayDefault: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override open var elevationYOverlayEmphasized: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override open var elevationYStickyDefault: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override open var elevationYStickyEmphasized: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override open var elevationYStickyNavigationScrolled: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override open var elevationYFocus: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + + // MARK: Semantic token - Elevation - Blur + + override open var elevationBlurNone: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override open var elevationBlurRaised: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override open var elevationBlurDrag: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override open var elevationBlurOverlayDefault: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override open var elevationBlurOverlayEmphasized: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override open var elevationBlurStickyDefault: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override open var elevationBlurStickyEmphasized: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override open var elevationBlurStickyNavigationScrolled: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override open var elevationBlurFocus: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + + // MARK: Semantic token - Elevation - Color - None + + override open var elevationColorNone: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } + + // MARK: Semantic token - Elevation - Color - Raised + + override open var elevationColorRaised: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } + + // MARK: Semantic token - Elevation - Color - Drag + + override open var elevationColorDrag: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } + + // MARK: Semantic token - Elevation - Color - Overlay - Default + + override open var elevationColorOverlayDefault: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } + + // MARK: Semantic token - Elevation - Color - Overlay - Emphasized + + override open var elevationColorOverlayEmphasized: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } + + // MARK: Semantic token - Elevation - Color - Sticky - Default + + override open var elevationColorStickyDefault: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } + + // MARK: Semantic token - Elevation - Color - Sticky - Emphasized + + override open var elevationColorStickyEmphasized: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } + + // MARK: Semantic token - Elevation - Color - Sticky - Navigation scrolled + + override open var elevationColorStickyNavigationScrolled: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } + + // MARK: Semantic token - Elevation - Color - Focus + + override open var elevationColorFocus: ElevationColorSemanticToken { Self.mockThemeElevationMultipleColorSemanticToken } + + // MARK: Semantic token - Elevation - Box shadow + + override open var elevationRaised: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override open var elevationDrag: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override open var elevationOverlayDefault: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override open var elevationOverlayEmphasized: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override open var elevationStickyDefault: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override open var elevationStickyEmphasized: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override open var elevationStickyNavigationScrolled: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override open var elevationFocus: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } +} +// swiftlint:enable identifier_name diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+GridSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+GridSemanticTokens.swift new file mode 100644 index 0000000000..2ef73119e4 --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+GridSemanticTokens.swift @@ -0,0 +1,39 @@ +// +// Software Name: OUDS iOS +// SPDX-FileCopyrightText: Copyright (c) Orange SA +// SPDX-License-Identifier: MIT +// +// This software is distributed under the MIT license, +// the text of which is available at https://opensource.org/license/MIT/ +// or see the "LICENSE" file for more details. +// +// Authors: See CONTRIBUTORS.txt +// Software description: A SwiftUI components library with code examples for Orange Unified Design System +// + +import Foundation +import OUDSTokensRaw +import OUDSTokensSemantic + +extension MockTheme { + + static let mockThemeGridRawToken: GridRawToken = 3_630 + + override open var gridExtraCompactMinWidth: GridExtraCompactSemanticToken { Self.mockThemeGridRawToken } + override open var gridExtraCompactMaxWidth: GridExtraCompactSemanticToken { Self.mockThemeGridRawToken } + override open var gridExtraCompactMargin: GridExtraCompactSemanticToken { Self.mockThemeGridRawToken } + override open var gridExtraCompactColumnGap: GridExtraCompactSemanticToken { Self.mockThemeGridRawToken } + override open var gridExtraCompactColumnCount: GridExtraCompactSemanticToken { Self.mockThemeGridRawToken } + + override open var gridCompactMinWidth: GridCompactSemanticToken { Self.mockThemeGridRawToken } + override open var gridCompactMaxWidth: GridCompactSemanticToken { Self.mockThemeGridRawToken } + override open var gridCompactMargin: GridCompactSemanticToken { Self.mockThemeGridRawToken } + override open var gridCompactColumnGap: GridCompactSemanticToken { Self.mockThemeGridRawToken } + override open var gridCompactColumnCount: GridCompactSemanticToken { Self.mockThemeGridRawToken } + + override open var gridRegularMinWidth: GridRegularSemanticToken { Self.mockThemeGridRawToken } + override open var gridRegularMaxWidth: GridRegularSemanticToken { Self.mockThemeGridRawToken } + override open var gridRegularMargin: GridRegularSemanticToken { Self.mockThemeGridRawToken } + override open var gridRegularColumnGap: GridRegularSemanticToken { Self.mockThemeGridRawToken } + override open var gridRegularColumnCount: GridRegularSemanticToken { Self.mockThemeGridRawToken } +} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+OpacitySemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+OpacitySemanticTokens.swift similarity index 54% rename from OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+OpacitySemanticTokens.swift rename to OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+OpacitySemanticTokens.swift index 012c5c743c..7e579b275c 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme+OpacitySemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+OpacitySemanticTokens.swift @@ -19,10 +19,10 @@ extension MockTheme { static let mockThemeOpacityRawToken: OpacityRawToken = 713 - override var opacityTransparent: OpacitySemanticToken { Self.mockThemeOpacityRawToken } - override var opacityWeaker: OpacitySemanticToken { Self.mockThemeOpacityRawToken } - override var opacityWeak: OpacitySemanticToken { Self.mockThemeOpacityRawToken } - override var opacityMedium: OpacitySemanticToken { Self.mockThemeOpacityRawToken } - override var opacityStrong: OpacitySemanticToken { Self.mockThemeOpacityRawToken } - override var opacityOpaque: OpacitySemanticToken { Self.mockThemeOpacityRawToken } + override open var opacityTransparent: OpacitySemanticToken { Self.mockThemeOpacityRawToken } + override open var opacityWeaker: OpacitySemanticToken { Self.mockThemeOpacityRawToken } + override open var opacityWeak: OpacitySemanticToken { Self.mockThemeOpacityRawToken } + override open var opacityMedium: OpacitySemanticToken { Self.mockThemeOpacityRawToken } + override open var opacityStrong: OpacitySemanticToken { Self.mockThemeOpacityRawToken } + override open var opacityOpaque: OpacitySemanticToken { Self.mockThemeOpacityRawToken } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SizingSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SizingSemanticTokens.swift new file mode 100644 index 0000000000..d922e00521 --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SizingSemanticTokens.swift @@ -0,0 +1,94 @@ +// +// Software Name: OUDS iOS +// SPDX-FileCopyrightText: Copyright (c) Orange SA +// SPDX-License-Identifier: MIT +// +// This software is distributed under the MIT license, +// the text of which is available at https://opensource.org/license/MIT/ +// or see the "LICENSE" file for more details. +// +// Authors: See CONTRIBUTORS.txt +// Software description: A SwiftUI components library with code examples for Orange Unified Design System +// + +import OUDSTokensRaw +import OUDSTokensSemantic + +extension MockTheme { + + static let mockThemeSizeRawToken: DimensionRawToken = 118_000 + static let mockThemeSizeCompositeToken = MultipleSizingTokens(compact: 1, regular: 151) + + // MARK: - Semantic token - Sizing - Icon decorative + + override open var sizeIconDecorativeShortest: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconDecorativeShorter: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconDecorativeShort: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconDecorativeMedium: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconDecorativeTall: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconDecorativeTaller: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconDecorativeTallest: SizingSemanticToken { Self.mockThemeSizeRawToken } + + // MARK: - Semantic token - Sizing - Icon with typography + + override open var sizeIconWithHeadingSmallShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithHeadingSmallMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithHeadingSmallTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + + override open var sizeIconWithHeadingMediumShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithHeadingMediumMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithHeadingMediumTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + + override open var sizeIconWithHeadingLargeShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithHeadingLargeMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithHeadingLargeTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + + override open var sizeIconWithHeadingXLargeShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithHeadingXLargeMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithHeadingXLargeTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + + override open var sizeIconWithBodySmallShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithBodySmallMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithBodySmallTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + + override open var sizeIconWithBodyMediumShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithBodyMediumMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithBodyMediumTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + + override open var sizeIconWithBodyLargeShort: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithBodyLargeMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeIconWithBodyLargeTall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + + override open var sizeIconWithLabelSmallSizeShort: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconWithLabelSmallSizeMedium: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconWithLabelSmallSizeTall: SizingSemanticToken { Self.mockThemeSizeRawToken } + + override open var sizeIconWithLabelMediumSizeShort: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconWithLabelMediumSizeMedium: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconWithLabelMediumSizeTall: SizingSemanticToken { Self.mockThemeSizeRawToken } + + override open var sizeIconWithLabelLargeSizeShorter: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconWithLabelLargeSizeShort: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconWithLabelLargeSizeMedium: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconWithLabelLargeSizeTall: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconWithLabelLargeSizeTaller: SizingSemanticToken { Self.mockThemeSizeRawToken } + + override open var sizeIconWithLabelXLargeSizeShort: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconWithLabelXLargeSizeMedium: SizingSemanticToken { Self.mockThemeSizeRawToken } + override open var sizeIconWithLabelXLargeSizeTall: SizingSemanticToken { Self.mockThemeSizeRawToken } + + // MARK: - Semantic token - Sizing - Max width typography + + override open var sizeMaxWidthTypeDisplaySmall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeMaxWidthTypeDisplayMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeMaxWidthTypeDisplayLarge: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + + override open var sizeMaxWidthTypeHeadingSmall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeMaxWidthTypeHeadingMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeMaxWidthTypeHeadingLarge: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeMaxWidthTypeHeadingXLarge: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + + override open var sizeMaxWidthTypeBodySmall: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeMaxWidthTypeBodyMedium: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } + override open var sizeMaxWidthTypeBodyLarge: MultipleSizingTokens { Self.mockThemeSizeCompositeToken } +} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SpacingSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SpacingSemanticTokens.swift new file mode 100644 index 0000000000..b4bde0edf2 --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SpacingSemanticTokens.swift @@ -0,0 +1,142 @@ +// +// Software Name: OUDS iOS +// SPDX-FileCopyrightText: Copyright (c) Orange SA +// SPDX-License-Identifier: MIT +// +// This software is distributed under the MIT license, +// the text of which is available at https://opensource.org/license/MIT/ +// or see the "LICENSE" file for more details. +// +// Authors: See CONTRIBUTORS.txt +// Software description: A SwiftUI components library with code examples for Orange Unified Design System +// + +import OUDSTokensRaw +import OUDSTokensSemantic + +extension MockTheme { + + static let mockThemeSpaceRawToken: DimensionRawToken = 911 + static let mockThemeSpaceSemanticToken = MultipleSpacingTokens(compact: 1, regular: 151) + + // MARK: Semantic token - Spacing - Layout fluid + + override open var spaceScaledNone: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } + override open var spaceScaledSmash: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } + override open var spaceScaledShortest: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } + override open var spaceScaledShorter: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } + override open var spaceScaledShort: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } + override open var spaceScaledMedium: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } + override open var spaceScaledTall: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } + override open var spaceScaledTaller: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } + override open var spaceScaledTallest: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } + override open var spaceScaledSpacious: MultipleSpacingTokens { Self.mockThemeSpaceSemanticToken } + + // MARK: Semantic token - Spacing - Layout fix + + override open var spaceFixedNone: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceFixedSmash: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceFixedShortest: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceFixedShorter: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceFixedShort: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceFixedMedium: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceFixedTall: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceFixedTaller: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceFixedTallest: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceFixedSpacious: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceFixedHuge: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceFixedJumbo: SpacingSemanticToken { Self.mockThemeSpaceRawToken } + + // MARK: Semantic token - Spacing - Padding - Padding inline + + override open var spacePaddingInlineNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + + override open var spacePaddingInlineWithIconNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithIconShortest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithIconShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithIconShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithIconMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithIconTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithIconTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithIconTallest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + + override open var spacePaddingInlineWithArrowNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithArrowShortest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithArrowShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithArrowShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithArrowMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithArrowTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithArrowTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingInlineWithArrowTallest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + + // MARK: Semantic token - Padding - Padding stack + + override open var spacePaddingBlockNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingBlockShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingBlockShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingBlockMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingBlockTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingBlockTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + + override open var spacePaddingBlockWithIconNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingBlockWithIconShortest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingBlockWithIconShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingBlockWithIconShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingBlockWithIconMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingBlockWithIconTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spacePaddingBlockWithIconTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + + // MARK: Semantic token - Padding - Padding inset + + override open var spaceInsetNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceInsetSmash: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceInsetShortest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceInsetShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceInsetShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceInsetMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceInsetTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceInsetTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceInsetTallest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceInsetSpacious: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + + // MARK: Semantic token - Padding - Gap inline + + override open var spaceColumnGapNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + + override open var spaceColumnGapWithIconNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapWithIconShortest: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapWithIconShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapWithIconShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapWithIconMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapWithIconTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + + override open var spaceColumnGapWithArrowNone: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapWithArrowShorter: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapWithArrowShort: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapWithArrowMedium: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapWithArrowTall: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceColumnGapWithArrowTaller: SpacingPaddingInlineSemanticToken { Self.mockThemeSpaceRawToken } + + // MARK: Semantic token - Padding - Gap stack + + override open var spaceRowGapNone: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceRowGapShorter: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceRowGapShort: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceRowGapMedium: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceRowGapTall: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceRowGapWithIconNone: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceRowGapWithIconShortest: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceRowGapWithIconShorter: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceRowGapWithIconShort: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceRowGapWithIconMedium: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } + override open var spaceRowGapWithIconTall: SpacingGapStackSemanticToken { Self.mockThemeSpaceRawToken } +} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+TypographySemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+TypographySemanticTokens.swift new file mode 100644 index 0000000000..f8d63573d1 --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+TypographySemanticTokens.swift @@ -0,0 +1,150 @@ +// +// Software Name: OUDS iOS +// SPDX-FileCopyrightText: Copyright (c) Orange SA +// SPDX-License-Identifier: MIT +// +// This software is distributed under the MIT license, +// the text of which is available at https://opensource.org/license/MIT/ +// or see the "LICENSE" file for more details. +// +// Authors: See CONTRIBUTORS.txt +// Software description: A SwiftUI components library with code examples for Orange Unified Design System +// + +import OUDSTokensRaw +import OUDSTokensSemantic + +// swiftlint:disable identifier_name + +extension MockTheme { + + static let mockThemeTypographyFontFamilyRawToken: TypographyFontFamilyRawToken = "o°xXSkyBl0GF0ntxXx°o" + static let mockThemeTypographyFontWeightRawToken: TypographyFontWeightRawToken = 888 + static let mockThemeTypographyFontSizeRawToken: TypographyFontSizeRawToken = 666 + static let mockThemeTypographyFontLineHeightRawToken: TypographyFontLineHeightRawToken = 321 + static let mockThemeTypographyFontLetterSpacingRawToken: TypographyFontLetterSpacingRawToken = 21_092_024 + static let mockThemeMultipleTypographyTokens = MultipleTypographyTokens(TypographyRawTokens.typeBold1850) + static let mockThemeMultipleTypographyFontSizeTokens = MultipleFontSizeTokens(mockThemeTypographyFontSizeRawToken) + static let mockThemeMultipleTypographyLineHeightTokens = MultipleFontLineHeightTokens(mockThemeTypographyFontLineHeightRawToken) + static let mockThemeMultipleTypographyLetterSpacingTokens = MultipleFontLetterSpacingTokens(mockThemeTypographyFontLetterSpacingRawToken) + + // MARK: Semantic token - Typography - Font - Family + + override open var fontFamily: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } + override open var fontFamilyDisplay: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } + override open var fontFamilyHeading: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } + override open var fontFamilyBody: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } + override open var fontFamilyLabel: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } + override open var fontFamilyCode: TypographyFontFamilySemanticToken { Self.mockThemeTypographyFontFamilyRawToken } + + // MARK: Semantic token - Typography - Font - Weight + + override open var fontWeightDisplay: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } + override open var fontWeightHeading: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } + override open var fontWeightBodyDefault: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } + override open var fontWeightBodyStrong: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } + override open var fontWeightLabelDefault: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } + override open var fontWeightLabelStrong: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } + override open var fontWeightCode: TypographyFontWeightSemanticToken { Self.mockThemeTypographyFontWeightRawToken } + + // MARK: Semantic token - Typography - Font - Size + + override open var fontSizeDisplayLarge: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } + override open var fontSizeDisplayMedium: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } + override open var fontSizeDisplaySmall: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } + override open var fontSizeHeadingXLarge: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } + override open var fontSizeHeadingLarge: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } + override open var fontSizeHeadingMedium: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } + override open var fontSizeHeadingSmall: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } + override open var fontSizeBodyLarge: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } + override open var fontSizeBodyMedium: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } + override open var fontSizeBodySmall: MultipleFontSizeTokens { Self.mockThemeMultipleTypographyFontSizeTokens } + + // MARK: Semantic token - Typography - Font - Size - Others + + override open var fontSizeLabelXLarge: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } + override open var fontSizeLabelLarge: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } + override open var fontSizeLabelMedium: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } + override open var fontSizeLabelSmall: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } + override open var fontSizeCodeMedium: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } + override open var fontSizeCodeSmall: TypographyFontSizeSemanticToken { Self.mockThemeTypographyFontSizeRawToken } + + // MARK: - Semantic token - Typography - Font - Line height + + override open var fontLineHeightDisplayLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightDisplayMedium: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightDisplaySmall: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightHeadingXLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightHeadingLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightHeadingMedium: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightHeadingSmall: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightBodyLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightBodyMedium: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightBodySmall: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightLabelXLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightLabelLarge: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightLabelMedium: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightLabelSmall: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightCodeMedium: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + override open var fontLineHeightCodeSmall: MultipleFontLineHeightTokens { Self.mockThemeMultipleTypographyLineHeightTokens } + + // MARK: - Semantic token - Typography - Font - Letter spacing + + override open var fontLetterSpacingDisplayLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingDisplayMedium: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingDisplaySmall: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingHeadingXLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingHeadingLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingHeadingMedium: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingHeadingSmall: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingBodyLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingBodyMedium: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingBodySmall: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + + override open var fontLetterSpacingLabelXLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingLabelLarge: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingLabelMedium: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingLabelSmall: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingCodeMedium: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + override open var fontLetterSpacingCodeSmall: MultipleFontLetterSpacingTokens { Self.mockThemeMultipleTypographyLetterSpacingTokens } + + // MARK: - Semantic tokens - Typography - Composites - Display + + override open var typeDisplayLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeDisplayMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeDisplaySmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + + // MARK: - Semantic tokens - Typography - Composites - Heading + + override open var typeHeadingXLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeHeadingLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeHeadingMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeHeadingSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + + // MARK: - Semantic tokens - Typography - Composites - Body + + override open var typeBodyDefaultLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeBodyDefaultMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeBodyDefaultSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeBodyStrongLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeBodyStrongMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeBodyStrongSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + + // MARK: - Semantic tokens - Typography - Composites - Label + + override open var typeLabelDefaultXLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeLabelDefaultLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeLabelDefaultMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeLabelDefaultSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeLabelStrongXLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeLabelStrongLarge: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeLabelStrongMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeLabelStrongSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + + // MARK: - Semantic tokens - Typography - Composites - Code + + override open var typeCodeMedium: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } + override open var typeCodeSmall: MultipleTypographyTokens { Self.mockThemeMultipleTypographyTokens } +} + +// swiftlint:enable identifier_name diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme.swift similarity index 95% rename from OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme.swift rename to OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme.swift index cb3d3d6298..67b6b53d42 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockTheme/MockTheme.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme.swift @@ -16,7 +16,7 @@ import OUDS import OUDSTokensSemantic /// A mock theme for tests -final class MockTheme: OUDSTheme { +open class MockTheme: OUDSTheme { convenience init() { self.init(customFont: nil) diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/OtherMockTheme.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/OtherMockTheme.swift new file mode 100644 index 0000000000..3dc62e1f19 --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/OtherMockTheme.swift @@ -0,0 +1,550 @@ +// +// Software Name: OUDS iOS +// SPDX-FileCopyrightText: Copyright (c) Orange SA +// SPDX-License-Identifier: MIT +// +// This software is distributed under the MIT license, +// the text of which is available at https://opensource.org/license/MIT/ +// or see the "LICENSE" file for more details. +// +// Authors: See CONTRIBUTORS.txt +// Software description: A SwiftUI components library with code examples for Orange Unified Design System +// + +import OUDSTokensSemantic + +// swiftlint:disable required_deinit +// swiftlint:disable type_body_length +// swiftlint:disable file_length + +/// Some color semantic tokens may be not implemented, making fatalError() be triggered at `OUDSTheme` level and tests crash. +/// Thus we use another mock theme to make comparisons with `MockTheme` and ensure pverriding property of tokens is still working. +/// This case of not implemented token only happns with color tokens. (╯° °)╯︵ ┻━┻ +final class OtherMockTheme: MockTheme { + + static let otherMockThemeMultipleColorTokens: ColorSemanticToken = MultipleColorTokens("#FF0000") + + // MARK: Semantic token - Colors - Background + + override var colorBackgroundPrimary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundSecondary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundTertiary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundBrandPrimary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundBrandSecondary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundBrandTertiary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusNeutral: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusNeutralOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusPositiveMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusPositiveEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusInfoMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusInfoMutedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusInfoEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusWarningMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusWarningEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusNegativeMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusNegativeEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusAccentMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusAccentMutedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBackgroundStatusAccentEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Content - Status + + override var colorContentDefault: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentContentDefaultOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentContentMutedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentDisabled: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentContentDisabledOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentBrandPrimary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentBrandSecondary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentBrandTertiary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentStatusPositive: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentStatusInfo: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentStatusWarning: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentStatusNegative: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentStatusAccent: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Content - On Background + + override var colorContentOnBackgroundPrimary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundSecondary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundTertiary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusPositiveMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusPositiveEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusInfoMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusInfoMutedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusInfoEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusWarningMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusWarningEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusNegativeMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusNegativeEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusAccentMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusAccentMutedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorContentOnBackgroundStatusAccentedEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Border + + override var colorBorderDefault: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderDefaultOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderEmphasizedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderFocus: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderBrandPrimary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderBrandSecondary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderBrandTertiary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderStatusPositive: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderStatusInfo: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderStatusWarning: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderStatusNegative: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderStatusAccent: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderOnBackgroundBrandPrimary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderOnBackgroundBrandSecondary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorBorderOnBackgroundBrandTertiary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Action + + override var colorActionSelected: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionSelectedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionDisabled: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionDisabledOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionVisited: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionVistedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionPrimaryEnabled: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionPrimaryEnabledOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionPrimaryHover: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionPrimaryHoverOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionPrimaryPressed: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionPrimaryPressedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionPrimaryLoading: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionPrimaryLoadingOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionPrimaryFocus: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionPrimaryFocusOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionSecondaryEnabled: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionSecondaryEnabledOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionSecondaryHover: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionSecondaryHoverOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionSecondaryPressed: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionSecondaryPressedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionSecondaryLoading: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionSecondaryLoadingOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionSecondaryFocus: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionSecondaryFocusOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionNegativeEnabled: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionNegativeHover: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionNegativePressed: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionNegativeLoading: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionNegativeFocus: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionDisabled: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionDisabledOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionNegative: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionPrimaryEnabled: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionPrimaryEnabledOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionPrimaryHover: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionPrimaryHoverOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionPrimaryPressed: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionPrimaryPressedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionPrimaryLoading: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionPrimaryLoadingOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionPrimaryFocus: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionPrimaryFocusOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionSecondaryEnabled: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionSecondaryHover: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionSecondaryPressed: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionSecondaryLoading: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionSecondaryFocus: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Always + + override var colorAlwaysBlack: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysWhite: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysWarning: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysNegative: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysPositive: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysInfo: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysAccent: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysOnBackgroundBlack: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysOnBackgroundWhite: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysOnBackgroundWarning: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysOnBackgroundNegative: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysOnBackgroundPositive: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysOnBackgroundInfo: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorAlwaysOnBackgroundAccent: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Transparent + + override var colorTransparentDefault: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Elevation + + override var colorElevationRaised: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationRaisedOnBackgroundSecondary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationRaisedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationDrag: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationDragOnBackgroundSecondary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationDragOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationOverlayDefault: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationOverlayDefaultOnBackgroundSecondary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationOverlayDefaultOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationOverlayEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationOverlayEmphasizedOnBackgroundSecondary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationOverlayEmphasizedOnBackgroundEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorElevationModal: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Decorative + + override var colorDecorativeBrandPrimary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeBrandPrimaryMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeBrandPrimaryEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSecondary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSecondaryMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSecondaryEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeBrandTertiary: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeBrandTertiaryMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeBrandTertiaryEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeNeutralMuted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeNeutralDefault: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeNeutralEmphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent1Muted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent1Default: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent1Emphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent2Muted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent2Default: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent2Emphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent3Muted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent3Default: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent3Emphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent4Muted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent4Default: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent4Emphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent5Muted: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent5Default: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeAccent5Emphasized: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSkintTint100: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSkintTint200: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSkintTint300: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSkintTint400: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSkintTint500: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSkintTint600: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSkintTint700: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSkintTint800: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorDecorativeSkintTint900: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + // MARK: Semantic token - Colors - Chart + + override var colorChartCategoricalNeutral: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalBrand: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalPositive: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalNegative: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalTier1: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalTier2: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalTier3: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalTier4: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalTier5: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalTier6: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalTier7: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalTier8: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalTier9: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartCategoricalTier10: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent1Tint100: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent1Tint200: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent1Tint300: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent1Tint400: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent1Tint500: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent1Tint600: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent1Tint700: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent1Tint800: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent1Tint900: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent2Tint100: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent2Tint200: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent2Tint300: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent2Tint400: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent2Tint500: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent2Tint600: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent2Tint700: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent2Tint800: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent2Tint900: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent3Tint100: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent3Tint200: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent3Tint300: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent3Tint400: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent3Tint500: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent3Tint600: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent3Tint700: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent3Tint800: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent3Tint900: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent4Tint100: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent4Tint200: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent4Tint300: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent4Tint400: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent4Tint500: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent4Tint600: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent4Tint700: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent4Tint800: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent4Tint900: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent5Tint100: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent5Tint200: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent5Tint300: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent5Tint400: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent5Tint500: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent5Tint600: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent5Tint700: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent5Tint800: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } + + override var colorChartSequentialAccent5Tint900: ColorSemanticToken { Self.otherMockThemeMultipleColorTokens } +} + +// swiftlint:enable required_deinit +// swiftlint:enable type_body_length +// swiftlint:enable file_length diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfBorderSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfBorderSemanticTokens.swift index 1b696a1bfa..35c49cc1f2 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfBorderSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfBorderSemanticTokens.swift @@ -14,9 +14,6 @@ import OUDS import XCTest -// WARNING: Maybe removed in the future or needs to be updated with token generation - -// TODO: Check if we can get rid of alias colors tokens which are optional // swiftlint:disable required_deinit // swiftlint:disable implicitly_unwrapped_optional diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorSemanticTokens.swift index e2ca679b58..9ebea607ee 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorSemanticTokens.swift @@ -12,10 +12,9 @@ // import OUDS +import OUDSTokensSemantic import XCTest -// WARNING: Maybe removed in the future or needs to be updated with token generation - // swiftlint:disable type_body_length // swiftlint:disable line_length // swiftlint:disable file_length @@ -32,1287 +31,1279 @@ final class TestThemeOverrideOfColorSemanticTokens: XCTestCase { private var inheritedTheme: OUDSTheme! override func setUp() async throws { - abstractTheme = OUDSTheme() - inheritedTheme = MockTheme() + abstractTheme = MockTheme() + inheritedTheme = OtherMockTheme() } - // MARK: - Semantic token - Colors - Alias - Primary + // MARK: Semantic token - Colors - Background + + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundPrimary() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundPrimary, abstractTheme.colorBackgroundPrimary) + XCTAssertTrue(inheritedTheme.colorBackgroundPrimary == OtherMockTheme.otherMockThemeMultipleColorTokens) + } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPrimaryLowest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPrimaryLowest, abstractTheme.sysColorBrandPrimaryLowest) - XCTAssertTrue(inheritedTheme.sysColorBrandPrimaryLowest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundSecondary() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundSecondary, abstractTheme.colorBackgroundSecondary) + XCTAssertTrue(inheritedTheme.colorBackgroundSecondary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPrimaryLower() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPrimaryLower, abstractTheme.sysColorBrandPrimaryLower) - XCTAssertTrue(inheritedTheme.sysColorBrandPrimaryLower == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundTertiary() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundTertiary, abstractTheme.colorBackgroundTertiary) + XCTAssertTrue(inheritedTheme.colorBackgroundTertiary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPrimaryLow() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPrimaryLow, abstractTheme.sysColorBrandPrimaryLow) - XCTAssertTrue(inheritedTheme.sysColorBrandPrimaryLow == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundEmphasized, abstractTheme.colorBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPrimaryDefault() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPrimaryDefault, abstractTheme.sysColorBrandPrimaryDefault) - XCTAssertTrue(inheritedTheme.sysColorBrandPrimaryDefault == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundBrandPrimary() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundBrandPrimary, abstractTheme.colorBackgroundBrandPrimary) + XCTAssertTrue(inheritedTheme.colorBackgroundBrandPrimary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPrimaryHigh() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPrimaryHigh, abstractTheme.sysColorBrandPrimaryHigh) - XCTAssertTrue(inheritedTheme.sysColorBrandPrimaryHigh == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundBrandSecondary() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundBrandSecondary, abstractTheme.colorBackgroundBrandSecondary) + XCTAssertTrue(inheritedTheme.colorBackgroundBrandSecondary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPrimaryHigher() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPrimaryHigher, abstractTheme.sysColorBrandPrimaryHigher) - XCTAssertTrue(inheritedTheme.sysColorBrandPrimaryHigher == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundBrandTertiary() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundBrandTertiary, abstractTheme.colorBackgroundBrandTertiary) + XCTAssertTrue(inheritedTheme.colorBackgroundBrandTertiary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPrimaryHighest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPrimaryHighest, abstractTheme.sysColorBrandPrimaryHighest) - XCTAssertTrue(inheritedTheme.sysColorBrandPrimaryHighest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNeutral() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNeutral, abstractTheme.colorBackgroundStatusNeutral) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusNeutral == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // MARK: - Semantic token - Colors - Alias - Secondary + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNeutralOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNeutralOnBackgroundEmphasized, abstractTheme.colorBackgroundStatusNeutralOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusNeutralOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) + } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandSecondaryLowest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandSecondaryLowest, abstractTheme.sysColorBrandSecondaryLowest) - XCTAssertTrue(inheritedTheme.sysColorBrandSecondaryLowest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusPositiveMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusPositiveMuted, abstractTheme.colorBackgroundStatusPositiveMuted) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusPositiveMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandSecondaryLower() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandSecondaryLower, abstractTheme.sysColorBrandSecondaryLower) - XCTAssertTrue(inheritedTheme.sysColorBrandSecondaryLower == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusPositiveMutedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusPositiveMutedOnBackgroundEmphasized, abstractTheme.colorBackgroundStatusPositiveMutedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusPositiveMutedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandSecondaryLow() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandSecondaryLow, abstractTheme.sysColorBrandSecondaryLow) - XCTAssertTrue(inheritedTheme.sysColorBrandSecondaryLow == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusPositiveEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusPositiveEmphasized, abstractTheme.colorBackgroundStatusPositiveEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusPositiveEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandSecondaryDefault() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandSecondaryDefault, abstractTheme.sysColorBrandSecondaryDefault) - XCTAssertTrue(inheritedTheme.sysColorBrandSecondaryDefault == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusInfoMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusInfoMuted, abstractTheme.colorBackgroundStatusInfoMuted) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusInfoMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandSecondaryHigh() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandSecondaryHigh, abstractTheme.sysColorBrandSecondaryHigh) - XCTAssertTrue(inheritedTheme.sysColorBrandSecondaryHigh == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusInfoMutedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusInfoMutedOnBackgroundEmphasized, abstractTheme.colorBackgroundStatusInfoMutedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusInfoMutedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandSecondaryHigher() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandSecondaryHigher, abstractTheme.sysColorBrandSecondaryHigher) - XCTAssertTrue(inheritedTheme.sysColorBrandSecondaryHigher == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusInfoEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusInfoEmphasized, abstractTheme.colorBackgroundStatusInfoEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusInfoEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandSecondaryHighest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandSecondaryHighest, abstractTheme.sysColorBrandSecondaryHighest) - XCTAssertTrue(inheritedTheme.sysColorBrandSecondaryHighest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusWarningMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusWarningMuted, abstractTheme.colorBackgroundStatusWarningMuted) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusWarningMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // MARK: - Semantic token - Colors - Alias - Tertiary + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusWarningMutedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusWarningMutedOnBackgroundEmphasized, abstractTheme.colorBackgroundStatusWarningMutedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusWarningMutedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) + } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandTertiaryLowest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandTertiaryLowest, abstractTheme.sysColorBrandTertiaryLowest) - XCTAssertTrue(inheritedTheme.sysColorBrandTertiaryLowest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusWarningEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusWarningEmphasized, abstractTheme.colorBackgroundStatusWarningEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusWarningEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandTertiaryLower() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandTertiaryLower, abstractTheme.sysColorBrandTertiaryLower) - XCTAssertTrue(inheritedTheme.sysColorBrandTertiaryLower == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNegativeMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNegativeMuted, abstractTheme.colorBackgroundStatusNegativeMuted) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusNegativeMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandTertiaryLow() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandTertiaryLow, abstractTheme.sysColorBrandTertiaryLow) - XCTAssertTrue(inheritedTheme.sysColorBrandTertiaryLow == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNegativeMutedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNegativeMutedOnBackgroundEmphasized, abstractTheme.colorBackgroundStatusNegativeMutedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusNegativeMutedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandTertiaryDefault() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandTertiaryDefault, abstractTheme.sysColorBrandTertiaryDefault) - XCTAssertTrue(inheritedTheme.sysColorBrandTertiaryDefault == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNegativeEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNegativeEmphasized, abstractTheme.colorBackgroundStatusNegativeEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusNegativeEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandTertiaryHigh() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandTertiaryHigh, abstractTheme.sysColorBrandTertiaryHigh) - XCTAssertTrue(inheritedTheme.sysColorBrandTertiaryHigh == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusAccentMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusAccentMuted, abstractTheme.colorBackgroundStatusAccentMuted) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusAccentMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandTertiaryHigher() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandTertiaryHigher, abstractTheme.sysColorBrandTertiaryHigher) - XCTAssertTrue(inheritedTheme.sysColorBrandTertiaryHigher == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusAccentMutedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusAccentMutedOnBackgroundEmphasized, abstractTheme.colorBackgroundStatusAccentMutedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusAccentMutedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandTertiaryHighest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandTertiaryHighest, abstractTheme.sysColorBrandTertiaryHighest) - XCTAssertTrue(inheritedTheme.sysColorBrandTertiaryHighest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusAccentEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusAccentEmphasized, abstractTheme.colorBackgroundStatusAccentEmphasized) + XCTAssertTrue(inheritedTheme.colorBackgroundStatusAccentEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // MARK: - Semantic token - Colors - Alias - Neutral - Muted + // MARK: Semantic token - Colors - Content - Status - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralMutedWhite() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralMutedWhite, abstractTheme.sysColorBrandNeutralMutedWhite) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralMutedWhite == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentDefault() throws { + XCTAssertNotEqual(inheritedTheme.colorContentDefault, abstractTheme.colorContentDefault) + XCTAssertTrue(inheritedTheme.colorContentDefault == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralMutedLowest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralMutedLowest, abstractTheme.sysColorBrandNeutralMutedLowest) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralMutedLowest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentContentDefaultOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentContentDefaultOnBackgroundEmphasized, abstractTheme.colorContentContentDefaultOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorContentContentDefaultOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralMutedLower() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralMutedLower, abstractTheme.sysColorBrandNeutralMutedLower) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralMutedLower == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorContentMuted, abstractTheme.colorContentMuted) + XCTAssertTrue(inheritedTheme.colorContentMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralMutedLow() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralMutedLow, abstractTheme.sysColorBrandNeutralMutedLow) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralMutedLow == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentContentMutedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentContentMutedOnBackgroundEmphasized, abstractTheme.colorContentContentMutedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorContentContentMutedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralMutedMedium() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralMutedMedium, abstractTheme.sysColorBrandNeutralMutedMedium) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralMutedMedium == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentDisabled() throws { + XCTAssertNotEqual(inheritedTheme.colorContentDisabled, abstractTheme.colorContentDisabled) + XCTAssertTrue(inheritedTheme.colorContentDisabled == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralMutedHigh() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralMutedHigh, abstractTheme.sysColorBrandNeutralMutedHigh) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralMutedHigh == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentContentDisabledOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentContentDisabledOnBackgroundEmphasized, abstractTheme.colorContentContentDisabledOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorContentContentDisabledOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralMutedHigher() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralMutedHigher, abstractTheme.sysColorBrandNeutralMutedHigher) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralMutedHigher == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentBrandPrimary() throws { + XCTAssertNotEqual(inheritedTheme.colorContentBrandPrimary, abstractTheme.colorContentBrandPrimary) + XCTAssertTrue(inheritedTheme.colorContentBrandPrimary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralMutedHighest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralMutedHighest, abstractTheme.sysColorBrandNeutralMutedHighest) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralMutedHighest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentBrandSecondary() throws { + XCTAssertNotEqual(inheritedTheme.colorContentBrandSecondary, abstractTheme.colorContentBrandSecondary) + XCTAssertTrue(inheritedTheme.colorContentBrandSecondary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // MARK: - Semantic token - Colors - Alias - Neutral - Emphasized + func testInheritedThemeCanOverrideSemanticTokenColorContentBrandTertiary() throws { + XCTAssertNotEqual(inheritedTheme.colorContentBrandTertiary, abstractTheme.colorContentBrandTertiary) + XCTAssertTrue(inheritedTheme.colorContentBrandTertiary == OtherMockTheme.otherMockThemeMultipleColorTokens) + } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralEmphasizedLowest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralEmphasizedLowest, abstractTheme.sysColorBrandNeutralEmphasizedLowest) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralEmphasizedLowest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentStatusPositive() throws { + XCTAssertNotEqual(inheritedTheme.colorContentStatusPositive, abstractTheme.colorContentStatusPositive) + XCTAssertTrue(inheritedTheme.colorContentStatusPositive == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralEmphasizedLower() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralEmphasizedLower, abstractTheme.sysColorBrandNeutralEmphasizedLower) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralEmphasizedLower == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentStatusInfo() throws { + XCTAssertNotEqual(inheritedTheme.colorContentStatusInfo, abstractTheme.colorContentStatusInfo) + XCTAssertTrue(inheritedTheme.colorContentStatusInfo == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralEmphasizedLow() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralEmphasizedLow, abstractTheme.sysColorBrandNeutralEmphasizedLow) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralEmphasizedLow == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentStatusWarning() throws { + XCTAssertNotEqual(inheritedTheme.colorContentStatusWarning, abstractTheme.colorContentStatusWarning) + XCTAssertTrue(inheritedTheme.colorContentStatusWarning == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralEmphasizedMedium() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralEmphasizedMedium, abstractTheme.sysColorBrandNeutralEmphasizedMedium) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralEmphasizedMedium == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentStatusNegative() throws { + XCTAssertNotEqual(inheritedTheme.colorContentStatusNegative, abstractTheme.colorContentStatusNegative) + XCTAssertTrue(inheritedTheme.colorContentStatusNegative == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralEmphasizedHigh() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralEmphasizedHigh, abstractTheme.sysColorBrandNeutralEmphasizedHigh) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralEmphasizedHigh == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentStatusAccent() throws { + XCTAssertNotEqual(inheritedTheme.colorContentStatusAccent, abstractTheme.colorContentStatusAccent) + XCTAssertTrue(inheritedTheme.colorContentStatusAccent == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralEmphasizedHigher() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralEmphasizedHigher, abstractTheme.sysColorBrandNeutralEmphasizedHigher) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralEmphasizedHigher == MockTheme.mockThemeColorRawToken) + // MARK: Semantic token - Colors - Content - On Background + + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundPrimary() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundPrimary, abstractTheme.colorContentOnBackgroundPrimary) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundPrimary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralEmphasizedHighest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralEmphasizedHighest, abstractTheme.sysColorBrandNeutralEmphasizedHighest) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralEmphasizedHighest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundSecondary() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundSecondary, abstractTheme.colorContentOnBackgroundSecondary) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundSecondary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNeutralEmphasizedBlack() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNeutralEmphasizedBlack, abstractTheme.sysColorBrandNeutralEmphasizedBlack) - XCTAssertTrue(inheritedTheme.sysColorBrandNeutralEmphasizedBlack == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundTertiary() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundTertiary, abstractTheme.colorContentOnBackgroundTertiary) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundTertiary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // MARK: - Semantic token - Colors - Alias - Positive + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusPositiveMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusPositiveMuted, abstractTheme.colorContentOnBackgroundStatusPositiveMuted) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusPositiveMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) + } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPositiveLowest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPositiveLowest, abstractTheme.sysColorBrandPositiveLowest) - XCTAssertTrue(inheritedTheme.sysColorBrandPositiveLowest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusPositiveMutedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusPositiveMutedOnBackgroundEmphasized, abstractTheme.colorContentOnBackgroundStatusPositiveMutedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusPositiveMutedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPositiveLower() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPositiveLower, abstractTheme.sysColorBrandPositiveLower) - XCTAssertTrue(inheritedTheme.sysColorBrandPositiveLower == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusPositiveEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusPositiveEmphasized, abstractTheme.colorContentOnBackgroundStatusPositiveEmphasized) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusPositiveEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPositiveLow() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPositiveLow, abstractTheme.sysColorBrandPositiveLow) - XCTAssertTrue(inheritedTheme.sysColorBrandPositiveLow == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusInfoMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusInfoMuted, abstractTheme.colorContentOnBackgroundStatusInfoMuted) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusInfoMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPositiveDefault() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPositiveDefault, abstractTheme.sysColorBrandPositiveDefault) - XCTAssertTrue(inheritedTheme.sysColorBrandPositiveDefault == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusInfoMutedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusInfoMutedOnBackgroundEmphasized, abstractTheme.colorContentOnBackgroundStatusInfoMutedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusInfoMutedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPositiveHigh() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPositiveHigh, abstractTheme.sysColorBrandPositiveHigh) - XCTAssertTrue(inheritedTheme.sysColorBrandPositiveHigh == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusInfoEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusInfoEmphasized, abstractTheme.colorContentOnBackgroundStatusInfoEmphasized) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusInfoEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPositiveHigher() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPositiveHigher, abstractTheme.sysColorBrandPositiveHigher) - XCTAssertTrue(inheritedTheme.sysColorBrandPositiveHigher == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusWarningMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusWarningMuted, abstractTheme.colorContentOnBackgroundStatusWarningMuted) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusWarningMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandPositiveHighest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandPositiveHighest, abstractTheme.sysColorBrandPositiveHighest) - XCTAssertTrue(inheritedTheme.sysColorBrandPositiveHighest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusWarningMutedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusWarningMutedOnBackgroundEmphasized, abstractTheme.colorContentOnBackgroundStatusWarningMutedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusWarningMutedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // MARK: - Semantic token - Colors - Alias - Information + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusWarningEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusWarningEmphasized, abstractTheme.colorContentOnBackgroundStatusWarningEmphasized) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusWarningEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) + } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandInformationLowest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandInformationLowest, abstractTheme.sysColorBrandInformationLowest) - XCTAssertTrue(inheritedTheme.sysColorBrandInformationLowest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusNegativeMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusNegativeMuted, abstractTheme.colorContentOnBackgroundStatusNegativeMuted) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusNegativeMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandInformationLower() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandInformationLower, abstractTheme.sysColorBrandInformationLower) - XCTAssertTrue(inheritedTheme.sysColorBrandInformationLower == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusNegativeMutedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusNegativeMutedOnBackgroundEmphasized, abstractTheme.colorContentOnBackgroundStatusNegativeMutedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusNegativeMutedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandInformationLow() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandInformationLow, abstractTheme.sysColorBrandInformationLow) - XCTAssertTrue(inheritedTheme.sysColorBrandInformationLow == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusNegativeEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusNegativeEmphasized, abstractTheme.colorContentOnBackgroundStatusNegativeEmphasized) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusNegativeEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandInformationDefault() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandInformationDefault, abstractTheme.sysColorBrandInformationDefault) - XCTAssertTrue(inheritedTheme.sysColorBrandInformationDefault == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusAccentMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusAccentMuted, abstractTheme.colorContentOnBackgroundStatusAccentMuted) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusAccentMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandInformationHigh() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandInformationHigh, abstractTheme.sysColorBrandInformationHigh) - XCTAssertTrue(inheritedTheme.sysColorBrandInformationHigh == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusAccentMutedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusAccentMutedOnBackgroundEmphasized, abstractTheme.colorContentOnBackgroundStatusAccentMutedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusAccentMutedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandInformationHigher() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandInformationHigher, abstractTheme.sysColorBrandInformationHigher) - XCTAssertTrue(inheritedTheme.sysColorBrandInformationHigher == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorContentOnBackgroundStatusAccentedEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorContentOnBackgroundStatusAccentedEmphasized, abstractTheme.colorContentOnBackgroundStatusAccentedEmphasized) + XCTAssertTrue(inheritedTheme.colorContentOnBackgroundStatusAccentedEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandInformationHighest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandInformationHighest, abstractTheme.sysColorBrandInformationHighest) - XCTAssertTrue(inheritedTheme.sysColorBrandInformationHighest == MockTheme.mockThemeColorRawToken) + // MARK: Semantic token - Colors - Border + + func testInheritedThemeCanOverrideSemanticTokenColorBorderDefault() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderDefault, abstractTheme.colorBorderDefault) + XCTAssertTrue(inheritedTheme.colorBorderDefault == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // MARK: - Semantic token - Colors - Alias - Warning + func testInheritedThemeCanOverrideSemanticTokenColorBorderDefaultOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderDefaultOnBackgroundEmphasized, abstractTheme.colorBorderDefaultOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorBorderDefaultOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) + } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandWarningLowest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandWarningLowest, abstractTheme.sysColorBrandWarningLowest) - XCTAssertTrue(inheritedTheme.sysColorBrandWarningLowest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderEmphasized, abstractTheme.colorBorderEmphasized) + XCTAssertTrue(inheritedTheme.colorBorderEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandWarningLower() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandWarningLower, abstractTheme.sysColorBrandWarningLower) - XCTAssertTrue(inheritedTheme.sysColorBrandWarningLower == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderEmphasizedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderEmphasizedOnBackgroundEmphasized, abstractTheme.colorBorderEmphasizedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorBorderEmphasizedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandWarningLow() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandWarningLow, abstractTheme.sysColorBrandWarningLow) - XCTAssertTrue(inheritedTheme.sysColorBrandWarningLow == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderFocus() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderFocus, abstractTheme.colorBorderFocus) + XCTAssertTrue(inheritedTheme.colorBorderFocus == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandWarningDefault() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandWarningDefault, abstractTheme.sysColorBrandWarningDefault) - XCTAssertTrue(inheritedTheme.sysColorBrandWarningDefault == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandPrimaryOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderBrandPrimaryOnBackgroundEmphasized, abstractTheme.colorBorderBrandPrimaryOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorBorderBrandPrimaryOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandWarningHigh() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandWarningHigh, abstractTheme.sysColorBrandWarningHigh) - XCTAssertTrue(inheritedTheme.sysColorBrandWarningHigh == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandPrimary() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderBrandPrimary, abstractTheme.colorBorderBrandPrimary) + XCTAssertTrue(inheritedTheme.colorBorderBrandPrimary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandWarningHigher() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandWarningHigher, abstractTheme.sysColorBrandWarningHigher) - XCTAssertTrue(inheritedTheme.sysColorBrandWarningHigher == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandSecondary() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderBrandSecondary, abstractTheme.colorBorderBrandSecondary) + XCTAssertTrue(inheritedTheme.colorBorderBrandSecondary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandWarningHighest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandWarningHighest, abstractTheme.sysColorBrandWarningHighest) - XCTAssertTrue(inheritedTheme.sysColorBrandWarningHighest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandTertiary() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderBrandTertiary, abstractTheme.colorBorderBrandTertiary) + XCTAssertTrue(inheritedTheme.colorBorderBrandTertiary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // MARK: - Semantic token - Colors - Alias - Negative + func testInheritedThemeCanOverrideSemanticTokenColorBorderStatusPositive() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderStatusPositive, abstractTheme.colorBorderStatusPositive) + XCTAssertTrue(inheritedTheme.colorBorderStatusPositive == OtherMockTheme.otherMockThemeMultipleColorTokens) + } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNegativeLowest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNegativeLowest, abstractTheme.sysColorBrandNegativeLowest) - XCTAssertTrue(inheritedTheme.sysColorBrandNegativeLowest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderStatusInfo() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderStatusInfo, abstractTheme.colorBorderStatusInfo) + XCTAssertTrue(inheritedTheme.colorBorderStatusInfo == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNegativeLower() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNegativeLower, abstractTheme.sysColorBrandNegativeLower) - XCTAssertTrue(inheritedTheme.sysColorBrandNegativeLower == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderStatusWarning() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderStatusWarning, abstractTheme.colorBorderStatusWarning) + XCTAssertTrue(inheritedTheme.colorBorderStatusWarning == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNegativeLow() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNegativeLow, abstractTheme.sysColorBrandNegativeLow) - XCTAssertTrue(inheritedTheme.sysColorBrandNegativeLow == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderStatusNegative() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderStatusNegative, abstractTheme.colorBorderStatusNegative) + XCTAssertTrue(inheritedTheme.colorBorderStatusNegative == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNegativeDefault() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNegativeDefault, abstractTheme.sysColorBrandNegativeDefault) - XCTAssertTrue(inheritedTheme.sysColorBrandNegativeDefault == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderStatusAccent() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderStatusAccent, abstractTheme.colorBorderStatusAccent) + XCTAssertTrue(inheritedTheme.colorBorderStatusAccent == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNegativeHigh() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNegativeHigh, abstractTheme.sysColorBrandNegativeHigh) - XCTAssertTrue(inheritedTheme.sysColorBrandNegativeHigh == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderOnBackgroundBrandPrimary() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderOnBackgroundBrandPrimary, abstractTheme.colorBorderOnBackgroundBrandPrimary) + XCTAssertTrue(inheritedTheme.colorBorderOnBackgroundBrandPrimary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNegativeHigher() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNegativeHigher, abstractTheme.sysColorBrandNegativeHigher) - XCTAssertTrue(inheritedTheme.sysColorBrandNegativeHigher == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderOnBackgroundBrandSecondary() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderOnBackgroundBrandSecondary, abstractTheme.colorBorderOnBackgroundBrandSecondary) + XCTAssertTrue(inheritedTheme.colorBorderOnBackgroundBrandSecondary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandNegativeHighest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandNegativeHighest, abstractTheme.sysColorBrandNegativeHighest) - XCTAssertTrue(inheritedTheme.sysColorBrandNegativeHighest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorBorderOnBackgroundBrandTertiary() throws { + XCTAssertNotEqual(inheritedTheme.colorBorderOnBackgroundBrandTertiary, abstractTheme.colorBorderOnBackgroundBrandTertiary) + XCTAssertTrue(inheritedTheme.colorBorderOnBackgroundBrandTertiary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // MARK: - Semantic token - Colors - Alias - Attractive + // MARK: Semantic token - Colors - Action - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandAttractiveLowest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandAttractiveLowest, abstractTheme.sysColorBrandAttractiveLowest) - XCTAssertTrue(inheritedTheme.sysColorBrandAttractiveLowest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSelected() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSelected, abstractTheme.colorActionSelected) + XCTAssertTrue(inheritedTheme.colorActionSelected == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandAttractiveLower() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandAttractiveLower, abstractTheme.sysColorBrandAttractiveLower) - XCTAssertTrue(inheritedTheme.sysColorBrandAttractiveLower == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSelectedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSelectedOnBackgroundEmphasized, abstractTheme.colorActionSelectedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionSelectedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandAttractiveLow() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandAttractiveLow, abstractTheme.sysColorBrandAttractiveLow) - XCTAssertTrue(inheritedTheme.sysColorBrandAttractiveLow == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionDisabled() throws { + XCTAssertNotEqual(inheritedTheme.colorActionDisabled, abstractTheme.colorActionDisabled) + XCTAssertTrue(inheritedTheme.colorActionDisabled == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandAttractiveMedium() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandAttractiveMedium, abstractTheme.sysColorBrandAttractiveMedium) - XCTAssertTrue(inheritedTheme.sysColorBrandAttractiveMedium == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionDisabledOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionDisabledOnBackgroundEmphasized, abstractTheme.colorActionDisabledOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionDisabledOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandAttractiveHigh() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandAttractiveHigh, abstractTheme.sysColorBrandAttractiveHigh) - XCTAssertTrue(inheritedTheme.sysColorBrandAttractiveHigh == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionVisited() throws { + XCTAssertNotEqual(inheritedTheme.colorActionVisited, abstractTheme.colorActionVisited) + XCTAssertTrue(inheritedTheme.colorActionVisited == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandAttractiveHigher() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandAttractiveHigher, abstractTheme.sysColorBrandAttractiveHigher) - XCTAssertTrue(inheritedTheme.sysColorBrandAttractiveHigher == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionVistedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionVistedOnBackgroundEmphasized, abstractTheme.colorActionVistedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionVistedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenSysColorBrandAttractiveHighest() throws { - XCTAssertNotEqual(inheritedTheme.sysColorBrandAttractiveHighest, abstractTheme.sysColorBrandAttractiveHighest) - XCTAssertTrue(inheritedTheme.sysColorBrandAttractiveHighest == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionPrimaryEnabled() throws { + XCTAssertNotEqual(inheritedTheme.colorActionPrimaryEnabled, abstractTheme.colorActionPrimaryEnabled) + XCTAssertTrue(inheritedTheme.colorActionPrimaryEnabled == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // MARK: - Semantic token - Colors - Background + func testInheritedThemeCanOverrideSemanticTokenColorActionPrimaryEnabledOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionPrimaryEnabledOnBackgroundEmphasized, abstractTheme.colorActionPrimaryEnabledOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionPrimaryEnabledOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) + } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundDefaultPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundDefaultPrimary?.light, abstractTheme.colorBackgroundDefaultPrimary?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundDefaultPrimary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionPrimaryHover() throws { + XCTAssertNotEqual(inheritedTheme.colorActionPrimaryHover, abstractTheme.colorActionPrimaryHover) + XCTAssertTrue(inheritedTheme.colorActionPrimaryHover == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundDefaultPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundDefaultPrimary?.dark, abstractTheme.colorBackgroundDefaultPrimary?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundDefaultPrimary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionPrimaryHoverOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionPrimaryHoverOnBackgroundEmphasized, abstractTheme.colorActionPrimaryHoverOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionPrimaryHoverOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundDefaultSecondaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundDefaultSecondary?.light, abstractTheme.colorBackgroundDefaultSecondary?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundDefaultSecondary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionPrimaryPressed() throws { + XCTAssertNotEqual(inheritedTheme.colorActionPrimaryPressed, abstractTheme.colorActionPrimaryPressed) + XCTAssertTrue(inheritedTheme.colorActionPrimaryPressed == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundDefaultSecondaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundDefaultSecondary?.dark, abstractTheme.colorBackgroundDefaultSecondary?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundDefaultSecondary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionPrimaryPressedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionPrimaryPressedOnBackgroundEmphasized, abstractTheme.colorActionPrimaryPressedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionPrimaryPressedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundDefaultTertiaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundDefaultTertiary?.light, abstractTheme.colorBackgroundDefaultTertiary?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundDefaultTertiary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionPrimaryLoading() throws { + XCTAssertNotEqual(inheritedTheme.colorActionPrimaryLoading, abstractTheme.colorActionPrimaryLoading) + XCTAssertTrue(inheritedTheme.colorActionPrimaryLoading == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundDefaultTertiaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundDefaultTertiary?.dark, abstractTheme.colorBackgroundDefaultTertiary?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundDefaultTertiary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionPrimaryLoadingOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionPrimaryLoadingOnBackgroundEmphasized, abstractTheme.colorActionPrimaryLoadingOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionPrimaryLoadingOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundEmphasizedPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundEmphasizedPrimary?.light, abstractTheme.colorBackgroundEmphasizedPrimary?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundEmphasizedPrimary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionPrimaryFocus() throws { + XCTAssertNotEqual(inheritedTheme.colorActionPrimaryFocus, abstractTheme.colorActionPrimaryFocus) + XCTAssertTrue(inheritedTheme.colorActionPrimaryFocus == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundEmphasizedPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundEmphasizedPrimary?.dark, abstractTheme.colorBackgroundEmphasizedPrimary?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundEmphasizedPrimary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionPrimaryFocusOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionPrimaryFocusOnBackgroundEmphasized, abstractTheme.colorActionPrimaryFocusOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionPrimaryFocusOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundBrandPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundBrandPrimary?.light, abstractTheme.colorBackgroundBrandPrimary?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundBrandPrimary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSecondaryEnabled() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSecondaryEnabled, abstractTheme.colorActionSecondaryEnabled) + XCTAssertTrue(inheritedTheme.colorActionSecondaryEnabled == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundBrandPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundBrandPrimary?.dark, abstractTheme.colorBackgroundBrandPrimary?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundBrandPrimary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSecondaryEnabledOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSecondaryEnabledOnBackgroundEmphasized, abstractTheme.colorActionSecondaryEnabledOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionSecondaryEnabledOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundBrandSecondaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundBrandSecondary?.light, abstractTheme.colorBackgroundBrandSecondary?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundBrandSecondary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSecondaryHover() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSecondaryHover, abstractTheme.colorActionSecondaryHover) + XCTAssertTrue(inheritedTheme.colorActionSecondaryHover == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundBrandSecondaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundBrandSecondary?.dark, abstractTheme.colorBackgroundBrandSecondary?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundBrandSecondary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSecondaryHoverOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSecondaryHoverOnBackgroundEmphasized, abstractTheme.colorActionSecondaryHoverOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionSecondaryHoverOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundBrandTertiaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundBrandTertiary?.light, abstractTheme.colorBackgroundBrandTertiary?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundBrandTertiary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSecondaryPressed() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSecondaryPressed, abstractTheme.colorActionSecondaryPressed) + XCTAssertTrue(inheritedTheme.colorActionSecondaryPressed == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundBrandTertiaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundBrandTertiary?.dark, abstractTheme.colorBackgroundBrandTertiary?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundBrandTertiary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSecondaryPressedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSecondaryPressedOnBackgroundEmphasized, abstractTheme.colorActionSecondaryPressedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionSecondaryPressedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNeutralLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNeutral?.light, abstractTheme.colorBackgroundStatusNeutral?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusNeutral?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSecondaryLoading() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSecondaryLoading, abstractTheme.colorActionSecondaryLoading) + XCTAssertTrue(inheritedTheme.colorActionSecondaryLoading == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNeutralDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNeutral?.dark, abstractTheme.colorBackgroundStatusNeutral?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusNeutral?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSecondaryLoadingOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSecondaryLoadingOnBackgroundEmphasized, abstractTheme.colorActionSecondaryLoadingOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionSecondaryLoadingOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNeutralOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNeutralOnBackgroundEmphasized?.light, abstractTheme.colorBackgroundStatusNeutralOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusNeutralOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSecondaryFocus() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSecondaryFocus, abstractTheme.colorActionSecondaryFocus) + XCTAssertTrue(inheritedTheme.colorActionSecondaryFocus == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNeutralOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNeutralOnBackgroundEmphasized?.dark, abstractTheme.colorBackgroundStatusNeutralOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusNeutralOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionSecondaryFocusOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionSecondaryFocusOnBackgroundEmphasized, abstractTheme.colorActionSecondaryFocusOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionSecondaryFocusOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusAttractiveMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusAttractiveMuted?.light, abstractTheme.colorBackgroundStatusAttractiveMuted?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusAttractiveMuted?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeEnabled() throws { + XCTAssertNotEqual(inheritedTheme.colorActionNegativeEnabled, abstractTheme.colorActionNegativeEnabled) + XCTAssertTrue(inheritedTheme.colorActionNegativeEnabled == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusAttractiveMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusAttractiveMuted?.dark, abstractTheme.colorBackgroundStatusAttractiveMuted?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusAttractiveMuted?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeHover() throws { + XCTAssertNotEqual(inheritedTheme.colorActionNegativeHover, abstractTheme.colorActionNegativeHover) + XCTAssertTrue(inheritedTheme.colorActionNegativeHover == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusAttractiveEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusAttractiveEmphasized?.light, abstractTheme.colorBackgroundStatusAttractiveEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusAttractiveEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionNegativePressed() throws { + XCTAssertNotEqual(inheritedTheme.colorActionNegativePressed, abstractTheme.colorActionNegativePressed) + XCTAssertTrue(inheritedTheme.colorActionNegativePressed == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusAttractiveEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusAttractiveEmphasized?.dark, abstractTheme.colorBackgroundStatusAttractiveEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusAttractiveEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeLoading() throws { + XCTAssertNotEqual(inheritedTheme.colorActionNegativeLoading, abstractTheme.colorActionNegativeLoading) + XCTAssertTrue(inheritedTheme.colorActionNegativeLoading == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusWarningMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusWarningMuted?.light, abstractTheme.colorBackgroundStatusWarningMuted?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusWarningMuted?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeFocus() throws { + XCTAssertNotEqual(inheritedTheme.colorActionNegativeFocus, abstractTheme.colorActionNegativeFocus) + XCTAssertTrue(inheritedTheme.colorActionNegativeFocus == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusWarningMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusWarningMuted?.dark, abstractTheme.colorBackgroundStatusWarningMuted?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusWarningMuted?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionDisabled() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionDisabled, abstractTheme.colorActionOnBackgroundActionDisabled) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionDisabled == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusWarningMutedOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusWarningMutedOnBackgroundEmphasized?.light, abstractTheme.colorBackgroundStatusWarningMutedOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusWarningMuted?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionDisabledOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionDisabledOnBackgroundEmphasized, abstractTheme.colorActionOnBackgroundActionDisabledOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionDisabledOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusWarningMutedOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusWarningMutedOnBackgroundEmphasized?.dark, abstractTheme.colorBackgroundStatusWarningMutedOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusWarningMutedOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionNegative() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionNegative, abstractTheme.colorActionOnBackgroundActionNegative) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionNegative == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusWarningEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusWarningEmphasized?.light, abstractTheme.colorBackgroundStatusWarningEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusWarningEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionPrimaryEnabled() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionPrimaryEnabled, abstractTheme.colorActionOnBackgroundActionPrimaryEnabled) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionPrimaryEnabled == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusWarningEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusWarningEmphasized?.dark, abstractTheme.colorBackgroundStatusWarningEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusWarningEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionPrimaryEnabledOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionPrimaryEnabledOnBackgroundEmphasized, abstractTheme.colorActionOnBackgroundActionPrimaryEnabledOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionPrimaryEnabledOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNegativeMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNegativeMuted?.light, abstractTheme.colorBackgroundStatusNegativeMuted?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusNegativeMuted?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionPrimaryHover() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionPrimaryHover, abstractTheme.colorActionOnBackgroundActionPrimaryHover) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionPrimaryHover == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNegativeMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNegativeMuted?.dark, abstractTheme.colorBackgroundStatusNegativeMuted?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusNegativeMuted?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionPrimaryHoverOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionPrimaryHoverOnBackgroundEmphasized, abstractTheme.colorActionOnBackgroundActionPrimaryHoverOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionPrimaryHoverOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNegativeMutedOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNegativeMutedOnBackgroundEmphasized?.light, abstractTheme.colorBackgroundStatusNegativeMutedOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusNegativeMutedOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionPrimaryPressed() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionPrimaryPressed, abstractTheme.colorActionOnBackgroundActionPrimaryPressed) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionPrimaryPressed == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNegativeMutedOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNegativeMutedOnBackgroundEmphasized?.dark, abstractTheme.colorBackgroundStatusNegativeMutedOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusNegativeMutedOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionPrimaryPressedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionPrimaryPressedOnBackgroundEmphasized, abstractTheme.colorActionOnBackgroundActionPrimaryPressedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionPrimaryPressedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNegativeEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNegativeEmphasized?.light, abstractTheme.colorBackgroundStatusNegativeEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusNegativeEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionPrimaryLoading() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionPrimaryLoading, abstractTheme.colorActionOnBackgroundActionPrimaryLoading) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionPrimaryLoading == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusNegativeEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusNegativeEmphasized?.dark, abstractTheme.colorBackgroundStatusNegativeEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusNegativeEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionPrimaryLoadingOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionPrimaryLoadingOnBackgroundEmphasized, abstractTheme.colorActionOnBackgroundActionPrimaryLoadingOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionPrimaryLoadingOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusPositiveMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusPositiveMuted?.light, abstractTheme.colorBackgroundStatusPositiveMuted?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusPositiveMuted?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionPrimaryFocus() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionPrimaryFocus, abstractTheme.colorActionOnBackgroundActionPrimaryFocus) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionPrimaryFocus == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusPositiveMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusPositiveMuted?.dark, abstractTheme.colorBackgroundStatusPositiveMuted?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusPositiveMuted?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionPrimaryFocusOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionPrimaryFocusOnBackgroundEmphasized, abstractTheme.colorActionOnBackgroundActionPrimaryFocusOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionPrimaryFocusOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusPositiveMutedOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusPositiveMutedOnBackgroundEmphasized?.light, abstractTheme.colorBackgroundStatusPositiveMutedOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusPositiveMutedOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionSecondaryEnabled() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionSecondaryEnabled, abstractTheme.colorActionOnBackgroundActionSecondaryEnabled) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionSecondaryEnabled == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusPositiveMutedOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusPositiveMutedOnBackgroundEmphasized?.dark, abstractTheme.colorBackgroundStatusPositiveMutedOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusPositiveMutedOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized, abstractTheme.colorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusPositiveEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusPositiveEmphasized?.light, abstractTheme.colorBackgroundStatusPositiveEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusPositiveEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionSecondaryHover() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionSecondaryHover, abstractTheme.colorActionOnBackgroundActionSecondaryHover) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionSecondaryHover == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusPositiveEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusPositiveEmphasized?.dark, abstractTheme.colorBackgroundStatusPositiveEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusPositiveEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized, abstractTheme.colorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusInformationMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusInformationMuted?.light, abstractTheme.colorBackgroundStatusInformationMuted?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusInformationMuted?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionSecondaryPressed() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionSecondaryPressed, abstractTheme.colorActionOnBackgroundActionSecondaryPressed) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionSecondaryPressed == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusInformationMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusInformationMuted?.dark, abstractTheme.colorBackgroundStatusInformationMuted?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusInformationMuted?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized, abstractTheme.colorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusInformationMutedOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusInformationMutedOnBackgroundEmphasized?.light, abstractTheme.colorBackgroundStatusInformationMutedOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusInformationMutedOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionSecondaryLoading() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionSecondaryLoading, abstractTheme.colorActionOnBackgroundActionSecondaryLoading) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionSecondaryLoading == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusInformationMutedOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusInformationMutedOnBackgroundEmphasized?.dark, abstractTheme.colorBackgroundStatusInformationMutedOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusInformationMutedOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized, abstractTheme.colorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusInformationEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusInformationEmphasized?.light, abstractTheme.colorBackgroundStatusInformationEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusInformationEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionSecondaryFocus() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionSecondaryFocus, abstractTheme.colorActionOnBackgroundActionSecondaryFocus) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionSecondaryFocus == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundStatusInformationEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundStatusInformationEmphasized?.dark, abstractTheme.colorBackgroundStatusInformationEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundStatusInformationEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized, abstractTheme.colorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // MARK: - Semantic token - Colors - Content + // MARK: Semantic token - Colors - Always - func testInheritedThemeCanOverrideSemanticTokenColorContentDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDefault?.light, abstractTheme.colorContentDefault?.light) - XCTAssertTrue(inheritedTheme.colorContentDefault?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysBlack() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysBlack, abstractTheme.colorAlwaysBlack) + XCTAssertTrue(inheritedTheme.colorAlwaysBlack == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDefault?.dark, abstractTheme.colorContentDefault?.dark) - XCTAssertTrue(inheritedTheme.colorContentDefault?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysWhite() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysWhite, abstractTheme.colorAlwaysWhite) + XCTAssertTrue(inheritedTheme.colorAlwaysWhite == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentDefaultOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDefaultOnBackgroundEmphasized?.light, abstractTheme.colorContentDefaultOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorContentDefaultOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysWarning() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysWarning, abstractTheme.colorAlwaysWarning) + XCTAssertTrue(inheritedTheme.colorAlwaysWarning == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentDefaultOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDefaultOnBackgroundEmphasized?.dark, abstractTheme.colorContentDefaultOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorContentDefaultOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysNegative() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysNegative, abstractTheme.colorAlwaysNegative) + XCTAssertTrue(inheritedTheme.colorAlwaysNegative == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentDefaultOnBackgroundBrandPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDefaultOnBackgroundBrandPrimary?.light, abstractTheme.colorContentDefaultOnBackgroundBrandPrimary?.light) - XCTAssertTrue(inheritedTheme.colorContentDefaultOnBackgroundBrandPrimary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysPositive() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysPositive, abstractTheme.colorAlwaysPositive) + XCTAssertTrue(inheritedTheme.colorAlwaysPositive == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentDefaultOnBackgroundBrandPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDefaultOnBackgroundBrandPrimary?.dark, abstractTheme.colorContentDefaultOnBackgroundBrandPrimary?.dark) - XCTAssertTrue(inheritedTheme.colorContentDefaultOnBackgroundBrandPrimary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysInfo() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysInfo, abstractTheme.colorAlwaysInfo) + XCTAssertTrue(inheritedTheme.colorAlwaysInfo == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentMuted?.light, abstractTheme.colorContentMuted?.light) - XCTAssertTrue(inheritedTheme.colorContentMuted?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysAccent() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysAccent, abstractTheme.colorAlwaysAccent) + XCTAssertTrue(inheritedTheme.colorAlwaysAccent == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentMuted?.dark, abstractTheme.colorContentMuted?.dark) - XCTAssertTrue(inheritedTheme.colorContentMuted?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnBackgroundBlack() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysOnBackgroundBlack, abstractTheme.colorAlwaysOnBackgroundBlack) + XCTAssertTrue(inheritedTheme.colorAlwaysOnBackgroundBlack == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentMutedOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentMutedOnBackgroundEmphasized?.light, abstractTheme.colorContentMutedOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorContentMutedOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnBackgroundWhite() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysOnBackgroundWhite, abstractTheme.colorAlwaysOnBackgroundWhite) + XCTAssertTrue(inheritedTheme.colorAlwaysOnBackgroundWhite == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentMutedOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentMutedOnBackgroundEmphasized?.dark, abstractTheme.colorContentMutedOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorContentMutedOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnBackgroundWarning() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysOnBackgroundWarning, abstractTheme.colorAlwaysOnBackgroundWarning) + XCTAssertTrue(inheritedTheme.colorAlwaysOnBackgroundWarning == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentDisabledLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDisabled?.light, abstractTheme.colorContentDisabled?.light) - XCTAssertTrue(inheritedTheme.colorContentDisabled?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnBackgroundNegative() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysOnBackgroundNegative, abstractTheme.colorAlwaysOnBackgroundNegative) + XCTAssertTrue(inheritedTheme.colorAlwaysOnBackgroundNegative == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentDisabledDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDisabled?.dark, abstractTheme.colorContentDisabled?.dark) - XCTAssertTrue(inheritedTheme.colorContentDisabled?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnBackgroundPositive() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysOnBackgroundPositive, abstractTheme.colorAlwaysOnBackgroundPositive) + XCTAssertTrue(inheritedTheme.colorAlwaysOnBackgroundPositive == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentDisabledOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDisabledOnBackgroundEmphasized?.light, abstractTheme.colorContentDisabledOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorContentDisabledOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnBackgroundInfo() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysOnBackgroundInfo, abstractTheme.colorAlwaysOnBackgroundInfo) + XCTAssertTrue(inheritedTheme.colorAlwaysOnBackgroundInfo == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentDisabledOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDisabledOnBackgroundEmphasized?.dark, abstractTheme.colorContentDisabledOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorContentDisabledOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnBackgroundAccent() throws { + XCTAssertNotEqual(inheritedTheme.colorAlwaysOnBackgroundAccent, abstractTheme.colorAlwaysOnBackgroundAccent) + XCTAssertTrue(inheritedTheme.colorAlwaysOnBackgroundAccent == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentBrandPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentBrandPrimary?.light, abstractTheme.colorContentBrandPrimary?.light) - XCTAssertTrue(inheritedTheme.colorContentBrandPrimary?.light == MockTheme.mockThemeColorRawToken) - } + // MARK: Semantic token - Colors - Transparent - func testInheritedThemeCanOverrideSemanticTokenColorContentBrandPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentBrandPrimary?.dark, abstractTheme.colorContentBrandPrimary?.dark) - XCTAssertTrue(inheritedTheme.colorContentBrandPrimary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorTransparentDefault() throws { + XCTAssertNotEqual(inheritedTheme.colorTransparentDefault, abstractTheme.colorTransparentDefault) + XCTAssertTrue(inheritedTheme.colorTransparentDefault == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentBrandPrimaryOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentBrandPrimaryOnBackgroundEmphasized?.light, abstractTheme.colorContentBrandPrimaryOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorContentBrandPrimaryOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) - } + // MARK: Semantic token - Colors - Elevation - func testInheritedThemeCanOverrideSemanticTokenColorContentBrandPrimaryOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentBrandPrimaryOnBackgroundEmphasized?.dark, abstractTheme.colorContentBrandPrimaryOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorContentBrandPrimaryOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationRaised() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationRaised, abstractTheme.colorElevationRaised) + XCTAssertTrue(inheritedTheme.colorElevationRaised == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentBrandSecondaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentBrandSecondary?.light, abstractTheme.colorContentBrandSecondary?.light) - XCTAssertTrue(inheritedTheme.colorContentBrandSecondary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationRaisedOnBackgroundSecondary() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationRaisedOnBackgroundSecondary, abstractTheme.colorElevationRaisedOnBackgroundSecondary) + XCTAssertTrue(inheritedTheme.colorElevationRaisedOnBackgroundSecondary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentBrandSecondaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentBrandSecondary?.dark, abstractTheme.colorContentBrandSecondary?.dark) - XCTAssertTrue(inheritedTheme.colorContentBrandSecondary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationRaisedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationRaisedOnBackgroundEmphasized, abstractTheme.colorElevationRaisedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorElevationRaisedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentBrandTertiaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentBrandTertiary?.light, abstractTheme.colorContentBrandTertiary?.light) - XCTAssertTrue(inheritedTheme.colorContentBrandTertiary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationDrag() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationDrag, abstractTheme.colorElevationDrag) + XCTAssertTrue(inheritedTheme.colorElevationDrag == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentBrandTertiaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentBrandTertiary?.dark, abstractTheme.colorContentBrandTertiary?.dark) - XCTAssertTrue(inheritedTheme.colorContentBrandTertiary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationDragOnBackgroundSecondary() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationDragOnBackgroundSecondary, abstractTheme.colorElevationDragOnBackgroundSecondary) + XCTAssertTrue(inheritedTheme.colorElevationDragOnBackgroundSecondary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentStatusAttractiveLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusAttractive?.light, abstractTheme.colorContentStatusAttractive?.light) - XCTAssertTrue(inheritedTheme.colorContentStatusAttractive?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationDragOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationDragOnBackgroundEmphasized, abstractTheme.colorElevationDragOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorElevationDragOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentStatusAttractiveDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusAttractive?.dark, abstractTheme.colorContentStatusAttractive?.dark) - XCTAssertTrue(inheritedTheme.colorContentStatusAttractive?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationOverlayDefault() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationOverlayDefault, abstractTheme.colorElevationOverlayDefault) + XCTAssertTrue(inheritedTheme.colorElevationOverlayDefault == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentStatusNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusNegative?.light, abstractTheme.colorContentStatusNegative?.light) - XCTAssertTrue(inheritedTheme.colorContentStatusNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationOverlayDefaultOnBackgroundSecondary() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationOverlayDefaultOnBackgroundSecondary, abstractTheme.colorElevationOverlayDefaultOnBackgroundSecondary) + XCTAssertTrue(inheritedTheme.colorElevationOverlayDefaultOnBackgroundSecondary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentStatusNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusNegative?.dark, abstractTheme.colorContentStatusNegative?.dark) - XCTAssertTrue(inheritedTheme.colorContentStatusNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationOverlayDefaultOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationOverlayDefaultOnBackgroundEmphasized, abstractTheme.colorElevationOverlayDefaultOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorElevationOverlayDefaultOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentStatusPositiveLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusPositive?.light, abstractTheme.colorContentStatusPositive?.light) - XCTAssertTrue(inheritedTheme.colorContentStatusPositive?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationOverlayEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationOverlayEmphasized, abstractTheme.colorElevationOverlayEmphasized) + XCTAssertTrue(inheritedTheme.colorElevationOverlayEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentStatusPositiveDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusPositive?.dark, abstractTheme.colorContentStatusPositive?.dark) - XCTAssertTrue(inheritedTheme.colorContentStatusPositive?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationOverlayEmphasizedOnBackgroundSecondary() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationOverlayEmphasizedOnBackgroundSecondary, abstractTheme.colorElevationOverlayEmphasizedOnBackgroundSecondary) + XCTAssertTrue(inheritedTheme.colorElevationOverlayEmphasizedOnBackgroundSecondary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentStatusInformationLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusInformation?.light, abstractTheme.colorContentStatusInformation?.light) - XCTAssertTrue(inheritedTheme.colorContentStatusInformation?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationOverlayEmphasizedOnBackgroundEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationOverlayEmphasizedOnBackgroundEmphasized, abstractTheme.colorElevationOverlayEmphasizedOnBackgroundEmphasized) + XCTAssertTrue(inheritedTheme.colorElevationOverlayEmphasizedOnBackgroundEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentStatusInformationDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusInformation?.dark, abstractTheme.colorContentStatusInformation?.dark) - XCTAssertTrue(inheritedTheme.colorContentStatusInformation?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorElevationModal() throws { + XCTAssertNotEqual(inheritedTheme.colorElevationModal, abstractTheme.colorElevationModal) + XCTAssertTrue(inheritedTheme.colorElevationModal == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionEnabledLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionEnabled?.light, abstractTheme.colorContentActionEnabled?.light) - XCTAssertTrue(inheritedTheme.colorContentActionEnabled?.light == MockTheme.mockThemeColorRawToken) - } + // MARK: Semantic token - Colors - Decorative - func testInheritedThemeCanOverrideSemanticTokenColorContentActionEnabledDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionEnabled?.dark, abstractTheme.colorContentActionEnabled?.dark) - XCTAssertTrue(inheritedTheme.colorContentActionEnabled?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandPrimary() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandPrimary, abstractTheme.colorDecorativeBrandPrimary) + XCTAssertTrue(inheritedTheme.colorDecorativeBrandPrimary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionEnabledOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionEnabledOnBackgroundEmphasized?.light, abstractTheme.colorContentActionEnabledOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorContentActionEnabledOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandPrimaryMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandPrimaryMuted, abstractTheme.colorDecorativeBrandPrimaryMuted) + XCTAssertTrue(inheritedTheme.colorDecorativeBrandPrimaryMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionEnabledOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionEnabledOnBackgroundEmphasized?.dark, abstractTheme.colorContentActionEnabledOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorContentActionEnabledOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandPrimaryEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandPrimaryEmphasized, abstractTheme.colorDecorativeBrandPrimaryEmphasized) + XCTAssertTrue(inheritedTheme.colorDecorativeBrandPrimaryEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionEnabledOnBackgroundStatusExcNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionEnabledOnBackgroundStatusExcNegative?.light, abstractTheme.colorContentActionEnabledOnBackgroundStatusExcNegative?.light) - XCTAssertTrue(inheritedTheme.colorContentActionEnabledOnBackgroundStatusExcNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSecondary() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSecondary, abstractTheme.colorDecorativeSecondary) + XCTAssertTrue(inheritedTheme.colorDecorativeSecondary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionEnabledOnBackgroundStatusExcNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionEnabledOnBackgroundStatusExcNegative?.dark, abstractTheme.colorContentActionEnabledOnBackgroundStatusExcNegative?.dark) - XCTAssertTrue(inheritedTheme.colorContentActionEnabledOnBackgroundStatusExcNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSecondaryMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSecondaryMuted, abstractTheme.colorDecorativeSecondaryMuted) + XCTAssertTrue(inheritedTheme.colorDecorativeSecondaryMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionEnabledOnBackgroundStatusNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionEnabledOnBackgroundStatusNegative?.light, abstractTheme.colorContentActionEnabledOnBackgroundStatusNegative?.light) - XCTAssertTrue(inheritedTheme.colorContentActionEnabledOnBackgroundStatusNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSecondaryEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSecondaryEmphasized, abstractTheme.colorDecorativeSecondaryEmphasized) + XCTAssertTrue(inheritedTheme.colorDecorativeSecondaryEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionEnabledOnBackgroundStatusNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionEnabledOnBackgroundStatusNegative?.dark, abstractTheme.colorContentActionEnabledOnBackgroundStatusNegative?.dark) - XCTAssertTrue(inheritedTheme.colorContentActionEnabledOnBackgroundStatusNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandTertiary() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandTertiary, abstractTheme.colorDecorativeBrandTertiary) + XCTAssertTrue(inheritedTheme.colorDecorativeBrandTertiary == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionHoverLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionHover?.light, abstractTheme.colorContentActionHover?.light) - XCTAssertTrue(inheritedTheme.colorContentActionHover?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandTertiaryMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandTertiaryMuted, abstractTheme.colorDecorativeBrandTertiaryMuted) + XCTAssertTrue(inheritedTheme.colorDecorativeBrandTertiaryMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionHoverDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionHover?.dark, abstractTheme.colorContentActionHover?.dark) - XCTAssertTrue(inheritedTheme.colorContentActionHover?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandTertiaryEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandTertiaryEmphasized, abstractTheme.colorDecorativeBrandTertiaryEmphasized) + XCTAssertTrue(inheritedTheme.colorDecorativeBrandTertiaryEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionHoverOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionHoverOnBackgroundEmphasized?.light, abstractTheme.colorContentActionHoverOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorContentActionHoverOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralMuted() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralMuted, abstractTheme.colorDecorativeNeutralMuted) + XCTAssertTrue(inheritedTheme.colorDecorativeNeutralMuted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionHoverOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionHoverOnBackgroundEmphasized?.dark, abstractTheme.colorContentActionHoverOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorContentActionHoverOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralDefault() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralDefault, abstractTheme.colorDecorativeNeutralDefault) + XCTAssertTrue(inheritedTheme.colorDecorativeNeutralDefault == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionHoverOnBackgroundStatusExcNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionHoverOnBackgroundStatusExcNegative?.light, abstractTheme.colorContentActionHoverOnBackgroundStatusExcNegative?.light) - XCTAssertTrue(inheritedTheme.colorContentActionHoverOnBackgroundStatusExcNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralEmphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralEmphasized, abstractTheme.colorDecorativeNeutralEmphasized) + XCTAssertTrue(inheritedTheme.colorDecorativeNeutralEmphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionHoverOnBackgroundStatusExcNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionHoverOnBackgroundStatusExcNegative?.dark, abstractTheme.colorContentActionHoverOnBackgroundStatusExcNegative?.dark) - XCTAssertTrue(inheritedTheme.colorContentActionHoverOnBackgroundStatusExcNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1Muted() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1Muted, abstractTheme.colorDecorativeAccent1Muted) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent1Muted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionHoverOnBackgroundStatusNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionHoverOnBackgroundStatusNegative?.light, abstractTheme.colorContentActionHoverOnBackgroundStatusNegative?.light) - XCTAssertTrue(inheritedTheme.colorContentActionHoverOnBackgroundStatusNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1Default() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1Default, abstractTheme.colorDecorativeAccent1Default) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent1Default == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentActionHoverOnBackgroundStatusNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentActionHoverOnBackgroundStatusNegative?.dark, abstractTheme.colorContentActionHoverOnBackgroundStatusNegative?.dark) - XCTAssertTrue(inheritedTheme.colorContentActionHoverOnBackgroundStatusNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1Emphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1Emphasized, abstractTheme.colorDecorativeAccent1Emphasized) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent1Emphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentTransparentDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentTransparentDefault?.light, abstractTheme.colorContentTransparentDefault?.light) - XCTAssertTrue(inheritedTheme.colorContentTransparentDefault?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2Muted() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2Muted, abstractTheme.colorDecorativeAccent2Muted) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent2Muted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorContentTransparentDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentTransparentDefault?.dark, abstractTheme.colorContentTransparentDefault?.dark) - XCTAssertTrue(inheritedTheme.colorContentTransparentDefault?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2Default() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2Default, abstractTheme.colorDecorativeAccent2Default) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent2Default == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // TODO: #124 - Add missing colorContentActionPressed* tokens - // TODO: #124 - Add missing colorContentActionDisabled* tokens - // TODO: #124 - Add missing colorContentActionFocus* tokens - // TODO: #124 - Add missing colorContentVisited* tokens - // TODO: #124 - Add missing colorContentActionSelectionSelected* tokens - // TODO: #124 - Add missing colorContentActionSelectionHover* tokens - // TODO: #124 - Add missing colorContentActionSelectionPressed* tokens - // TODO: #124 - Add missing colorContentActionSelectionSelectedFocus* tokens - // TODO: #124 - Add missing colorContentActionSelectionUnselected* tokens - // TODO: #124 - Add missing colorContentActionAlways* tokens - - // MARK: - Semantic token - Colors - Border - - func testInheritedThemeCanOverrideSemanticTokenColorBorderDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderDefault?.light, abstractTheme.colorBorderDefault?.light) - XCTAssertTrue(inheritedTheme.colorBorderDefault?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2Emphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2Emphasized, abstractTheme.colorDecorativeAccent2Emphasized) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent2Emphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderDefault?.dark, abstractTheme.colorBorderDefault?.dark) - XCTAssertTrue(inheritedTheme.colorBorderDefault?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3Muted() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3Muted, abstractTheme.colorDecorativeAccent3Muted) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent3Muted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderDefaultOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderDefaultOnBackgroundEmphasized?.light, abstractTheme.colorBorderDefaultOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBorderDefaultOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3Default() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3Default, abstractTheme.colorDecorativeAccent3Default) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent3Default == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderDefaultOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderDefaultOnBackgroundEmphasized?.dark, abstractTheme.colorBorderDefaultOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBorderDefaultOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3Emphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3Emphasized, abstractTheme.colorDecorativeAccent3Emphasized) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent3Emphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandPrimary - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandSecondary - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandTertiary + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4Muted() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4Muted, abstractTheme.colorDecorativeAccent4Muted) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent4Muted == OtherMockTheme.otherMockThemeMultipleColorTokens) + } - func testInheritedThemeCanOverrideSemanticTokenColorBorderEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderEmphasized?.light, abstractTheme.colorBorderEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBorderEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4Default() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4Default, abstractTheme.colorDecorativeAccent4Default) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent4Default == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderEmphasized?.dark, abstractTheme.colorBorderEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBorderEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4Emphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4Emphasized, abstractTheme.colorDecorativeAccent4Emphasized) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent4Emphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderEmphasizedOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderEmphasizedOnBackgroundEmphasized?.light, abstractTheme.colorBorderEmphasizedOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBorderEmphasizedOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5Muted() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5Muted, abstractTheme.colorDecorativeAccent5Muted) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent5Muted == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderEmphasizedOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderEmphasizedOnBackgroundEmphasized?.dark, abstractTheme.colorBorderEmphasizedOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBorderEmphasizedOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5Default() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5Default, abstractTheme.colorDecorativeAccent5Default) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent5Default == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandPrimary?.light, abstractTheme.colorBorderBrandPrimary?.light) - XCTAssertTrue(inheritedTheme.colorBorderBrandPrimary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5Emphasized() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5Emphasized, abstractTheme.colorDecorativeAccent5Emphasized) + XCTAssertTrue(inheritedTheme.colorDecorativeAccent5Emphasized == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandPrimary?.dark, abstractTheme.colorBorderBrandPrimary?.dark) - XCTAssertTrue(inheritedTheme.colorBorderBrandPrimary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkintTint100() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSkintTint100, abstractTheme.colorDecorativeSkintTint100) + XCTAssertTrue(inheritedTheme.colorDecorativeSkintTint100 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandPrimaryOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandPrimaryOnBackgroundEmphasized?.light, abstractTheme.colorBorderBrandPrimaryOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBorderBrandPrimaryOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkintTint200() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSkintTint200, abstractTheme.colorDecorativeSkintTint200) + XCTAssertTrue(inheritedTheme.colorDecorativeSkintTint200 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandPrimaryOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandPrimaryOnBackgroundEmphasized?.dark, abstractTheme.colorBorderBrandPrimaryOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBorderBrandPrimaryOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkintTint300() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSkintTint300, abstractTheme.colorDecorativeSkintTint300) + XCTAssertTrue(inheritedTheme.colorDecorativeSkintTint300 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandSecondaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandSecondary?.light, abstractTheme.colorBorderBrandSecondary?.light) - XCTAssertTrue(inheritedTheme.colorBorderBrandSecondary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkintTint400() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSkintTint400, abstractTheme.colorDecorativeSkintTint400) + XCTAssertTrue(inheritedTheme.colorDecorativeSkintTint400 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandSecondaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandSecondary?.dark, abstractTheme.colorBorderBrandSecondary?.dark) - XCTAssertTrue(inheritedTheme.colorBorderBrandSecondary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkintTint500() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSkintTint500, abstractTheme.colorDecorativeSkintTint500) + XCTAssertTrue(inheritedTheme.colorDecorativeSkintTint500 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandTertiaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandTertiary?.light, abstractTheme.colorBorderBrandTertiary?.light) - XCTAssertTrue(inheritedTheme.colorBorderBrandTertiary?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkintTint600() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSkintTint600, abstractTheme.colorDecorativeSkintTint600) + XCTAssertTrue(inheritedTheme.colorDecorativeSkintTint600 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandTertiaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandTertiary?.dark, abstractTheme.colorBorderBrandTertiary?.dark) - XCTAssertTrue(inheritedTheme.colorBorderBrandTertiary?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkintTint700() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSkintTint700, abstractTheme.colorDecorativeSkintTint700) + XCTAssertTrue(inheritedTheme.colorDecorativeSkintTint700 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandStatusAttractiveLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandStatusAttractive?.light, abstractTheme.colorBorderBrandStatusAttractive?.light) - XCTAssertTrue(inheritedTheme.colorBorderBrandStatusAttractive?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkintTint800() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSkintTint800, abstractTheme.colorDecorativeSkintTint800) + XCTAssertTrue(inheritedTheme.colorDecorativeSkintTint800 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandStatusAttractiveDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandStatusAttractive?.dark, abstractTheme.colorBorderBrandStatusAttractive?.dark) - XCTAssertTrue(inheritedTheme.colorBorderBrandStatusAttractive?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkintTint900() throws { + XCTAssertNotEqual(inheritedTheme.colorDecorativeSkintTint900, abstractTheme.colorDecorativeSkintTint900) + XCTAssertTrue(inheritedTheme.colorDecorativeSkintTint900 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandStatusWarningLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandStatusWarning?.light, abstractTheme.colorBorderBrandStatusWarning?.light) - XCTAssertTrue(inheritedTheme.colorBorderBrandStatusWarning?.light == MockTheme.mockThemeColorRawToken) + // MARK: Semantic token - Colors - Chart + + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalNeutral() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalNeutral, abstractTheme.colorChartCategoricalNeutral) + XCTAssertTrue(inheritedTheme.colorChartCategoricalNeutral == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandStatusWarningDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandStatusWarning?.dark, abstractTheme.colorBorderBrandStatusWarning?.dark) - XCTAssertTrue(inheritedTheme.colorBorderBrandStatusWarning?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalBrand() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalBrand, abstractTheme.colorChartCategoricalBrand) + XCTAssertTrue(inheritedTheme.colorChartCategoricalBrand == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandStatusNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandStatusNegative?.light, abstractTheme.colorBorderBrandStatusNegative?.light) - XCTAssertTrue(inheritedTheme.colorBorderBrandStatusNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalPositive() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalPositive, abstractTheme.colorChartCategoricalPositive) + XCTAssertTrue(inheritedTheme.colorChartCategoricalPositive == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandStatusNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandStatusNegative?.dark, abstractTheme.colorBorderBrandStatusNegative?.dark) - XCTAssertTrue(inheritedTheme.colorBorderBrandStatusNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalNegative() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalNegative, abstractTheme.colorChartCategoricalNegative) + XCTAssertTrue(inheritedTheme.colorChartCategoricalNegative == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandStatusPositiveLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandStatusPositive?.light, abstractTheme.colorBorderBrandStatusPositive?.light) - XCTAssertTrue(inheritedTheme.colorBorderBrandStatusPositive?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier1() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier1, abstractTheme.colorChartCategoricalTier1) + XCTAssertTrue(inheritedTheme.colorChartCategoricalTier1 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandStatusPositiveDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandStatusPositive?.dark, abstractTheme.colorBorderBrandStatusPositive?.dark) - XCTAssertTrue(inheritedTheme.colorBorderBrandStatusPositive?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier2() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier2, abstractTheme.colorChartCategoricalTier2) + XCTAssertTrue(inheritedTheme.colorChartCategoricalTier2 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandStatusInformationLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandStatusInformation?.light, abstractTheme.colorBorderBrandStatusInformation?.light) - XCTAssertTrue(inheritedTheme.colorBorderBrandStatusInformation?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier3() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier3, abstractTheme.colorChartCategoricalTier3) + XCTAssertTrue(inheritedTheme.colorChartCategoricalTier3 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandStatusInformationDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandStatusInformation?.dark, abstractTheme.colorBorderBrandStatusInformation?.dark) - XCTAssertTrue(inheritedTheme.colorBorderBrandStatusInformation?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier4() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier4, abstractTheme.colorChartCategoricalTier4) + XCTAssertTrue(inheritedTheme.colorChartCategoricalTier4 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderTransparentDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderTransparentDefault?.light, abstractTheme.colorBorderTransparentDefault?.light) - XCTAssertTrue(inheritedTheme.colorBorderTransparentDefault?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier5() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier5, abstractTheme.colorChartCategoricalTier5) + XCTAssertTrue(inheritedTheme.colorChartCategoricalTier5 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBorderTransparentDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderTransparentDefault?.dark, abstractTheme.colorBorderTransparentDefault?.dark) - XCTAssertTrue(inheritedTheme.colorBorderTransparentDefault?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier6() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier6, abstractTheme.colorChartCategoricalTier6) + XCTAssertTrue(inheritedTheme.colorChartCategoricalTier6 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionEnabledLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionEnabled?.light, abstractTheme.colorBackgroundActionEnabled?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionEnabled?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier7() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier7, abstractTheme.colorChartCategoricalTier7) + XCTAssertTrue(inheritedTheme.colorChartCategoricalTier7 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionEnabledDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionEnabled?.dark, abstractTheme.colorBackgroundActionEnabled?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionEnabled?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier8() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier8, abstractTheme.colorChartCategoricalTier8) + XCTAssertTrue(inheritedTheme.colorChartCategoricalTier8 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionEnabledOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionEnabledOnBackgroundEmphasized?.light, abstractTheme.colorBackgroundActionEnabledOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionEnabledOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier9() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier9, abstractTheme.colorChartCategoricalTier9) + XCTAssertTrue(inheritedTheme.colorChartCategoricalTier9 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionEnabledOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionEnabled?.dark, abstractTheme.colorBackgroundActionEnabled?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionEnabled?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier10() throws { + XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier10, abstractTheme.colorChartCategoricalTier10) + XCTAssertTrue(inheritedTheme.colorChartCategoricalTier10 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionEnabledOnBackgroundStatusExcNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionEnabledOnBackgroundStatusExcNegative?.light, abstractTheme.colorBackgroundActionEnabledOnBackgroundStatusExcNegative?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionEnabledOnBackgroundStatusExcNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent1Tint100() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent1Tint100, abstractTheme.colorChartSequentialAccent1Tint100) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent1Tint100 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionEnabledOnBackgroundStatusExcNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionEnabledOnBackgroundStatusExcNegative?.dark, abstractTheme.colorBackgroundActionEnabledOnBackgroundStatusExcNegative?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionEnabledOnBackgroundStatusExcNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent1Tint200() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent1Tint200, abstractTheme.colorChartSequentialAccent1Tint200) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent1Tint200 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionEnabledOnBackgroundStatusNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionEnabledOnBackgroundStatusNegative?.light, abstractTheme.colorBackgroundActionEnabledOnBackgroundStatusNegative?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionEnabledOnBackgroundStatusNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent1Tint300() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent1Tint300, abstractTheme.colorChartSequentialAccent1Tint300) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent1Tint300 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionEnabledOnBackgroundStatusNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionEnabledOnBackgroundStatusNegative?.dark, abstractTheme.colorBackgroundActionEnabledOnBackgroundStatusNegative?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionEnabledOnBackgroundStatusNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent1Tint400() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent1Tint400, abstractTheme.colorChartSequentialAccent1Tint400) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent1Tint400 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionPressedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionPressed?.light, abstractTheme.colorBackgroundActionPressed?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionPressed?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent1Tint500() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent1Tint500, abstractTheme.colorChartSequentialAccent1Tint500) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent1Tint500 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionPressedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionPressed?.dark, abstractTheme.colorBackgroundActionPressed?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionPressed?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent1Tint600() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent1Tint600, abstractTheme.colorChartSequentialAccent1Tint600) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent1Tint600 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionPressedOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionPressedOnBackgroundEmphasized?.light, abstractTheme.colorBackgroundActionPressedOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionPressedOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent1Tint700() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent1Tint700, abstractTheme.colorChartSequentialAccent1Tint700) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent1Tint700 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionPressedOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionPressedOnBackgroundEmphasized?.dark, abstractTheme.colorBackgroundActionPressedOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionPressedOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent1Tint800() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent1Tint800, abstractTheme.colorChartSequentialAccent1Tint800) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent1Tint800 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionPressedOnBackgroundStatusExcNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionPressedOnBackgroundStatusExcNegative?.light, abstractTheme.colorBackgroundActionPressedOnBackgroundStatusExcNegative?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionPressedOnBackgroundStatusExcNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent1Tint900() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent1Tint900, abstractTheme.colorChartSequentialAccent1Tint900) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent1Tint900 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionPressedOnBackgroundStatusExcNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionPressedOnBackgroundStatusExcNegative?.dark, abstractTheme.colorBackgroundActionPressedOnBackgroundStatusExcNegative?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionPressedOnBackgroundStatusExcNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent2Tint100() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent2Tint100, abstractTheme.colorChartSequentialAccent2Tint100) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent2Tint100 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionPressedOnBackgroundStautsNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionPressedOnBackgroundStautsNegative?.light, abstractTheme.colorBackgroundActionPressedOnBackgroundStautsNegative?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionPressedOnBackgroundStautsNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent2Tint200() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent2Tint200, abstractTheme.colorChartSequentialAccent2Tint200) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent2Tint200 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionPressedOnBackgroundStautsNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionPressedOnBackgroundStautsNegative?.dark, abstractTheme.colorBackgroundActionPressedOnBackgroundStautsNegative?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionPressedOnBackgroundStautsNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent2Tint300() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent2Tint300, abstractTheme.colorChartSequentialAccent2Tint300) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent2Tint300 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionDisabledLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionDisabled?.light, abstractTheme.colorBackgroundActionDisabled?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionDisabled?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent2Tint400() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent2Tint400, abstractTheme.colorChartSequentialAccent2Tint400) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent2Tint400 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionDisabledDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionDisabled?.dark, abstractTheme.colorBackgroundActionDisabled?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionDisabled?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent2Tint500() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent2Tint500, abstractTheme.colorChartSequentialAccent2Tint500) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent2Tint500 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionDisabledOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionDisabledOnBackgroundEmphasized?.light, abstractTheme.colorBackgroundActionDisabledOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionDisabledOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent2Tint600() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent2Tint600, abstractTheme.colorChartSequentialAccent2Tint600) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent2Tint600 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionDisabledOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionDisabledOnBackgroundEmphasized?.dark, abstractTheme.colorBackgroundActionDisabledOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionDisabledOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent2Tint700() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent2Tint700, abstractTheme.colorChartSequentialAccent2Tint700) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent2Tint700 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionDisabledOnBackgroundStatusExcNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionDisabledOnBackgroundStatusExcNegative?.light, abstractTheme.colorBackgroundActionDisabledOnBackgroundStatusExcNegative?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionDisabledOnBackgroundStatusExcNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent2Tint800() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent2Tint800, abstractTheme.colorChartSequentialAccent2Tint800) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent2Tint800 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionDisabledOnBackgroundStatusExcNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionDisabledOnBackgroundStatusExcNegative?.dark, abstractTheme.colorBackgroundActionDisabledOnBackgroundStatusExcNegative?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionDisabledOnBackgroundStatusExcNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent2Tint900() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent2Tint900, abstractTheme.colorChartSequentialAccent2Tint900) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent2Tint900 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionDisabledOnBackgroundStatusNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionDisabledOnBackgroundStatusNegative?.light, abstractTheme.colorBackgroundActionDisabledOnBackgroundStatusNegative?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionDisabledOnBackgroundStatusNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent3Tint100() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent3Tint100, abstractTheme.colorChartSequentialAccent3Tint100) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent3Tint100 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionDisabledOnBackgroundStatusNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionDisabledOnBackgroundStatusNegative?.dark, abstractTheme.colorBackgroundActionDisabledOnBackgroundStatusNegative?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionDisabledOnBackgroundStatusNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent3Tint200() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent3Tint200, abstractTheme.colorChartSequentialAccent3Tint200) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent3Tint200 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionFocusLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionFocus?.light, abstractTheme.colorBackgroundActionFocus?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionFocus?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent3Tint300() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent3Tint300, abstractTheme.colorChartSequentialAccent3Tint300) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent3Tint300 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionFocusDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionFocus?.dark, abstractTheme.colorBackgroundActionFocus?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionFocus?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent3Tint400() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent3Tint400, abstractTheme.colorChartSequentialAccent3Tint400) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent3Tint400 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionFocusOnBackgroundEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionFocusOnBackgroundEmphasized?.light, abstractTheme.colorBackgroundActionFocusOnBackgroundEmphasized?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionFocusOnBackgroundEmphasized?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent3Tint500() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent3Tint500, abstractTheme.colorChartSequentialAccent3Tint500) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent3Tint500 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionFocusOnBackgroundEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionFocusOnBackgroundEmphasized?.dark, abstractTheme.colorBackgroundActionFocusOnBackgroundEmphasized?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionFocusOnBackgroundEmphasized?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent3Tint600() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent3Tint600, abstractTheme.colorChartSequentialAccent3Tint600) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent3Tint600 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionFocusOnBackgroundStatusExcNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionFocusOnBackgroundStatusExcNegative?.light, abstractTheme.colorBackgroundActionFocusOnBackgroundStatusExcNegative?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionFocusOnBackgroundStatusExcNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent3Tint700() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent3Tint700, abstractTheme.colorChartSequentialAccent3Tint700) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent3Tint700 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionFocusOnBackgroundStatusExcNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionFocusOnBackgroundStatusExcNegative?.dark, abstractTheme.colorBackgroundActionFocusOnBackgroundStatusExcNegative?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionFocusOnBackgroundStatusExcNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent3Tint800() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent3Tint800, abstractTheme.colorChartSequentialAccent3Tint800) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent3Tint800 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionFocusOnBackgroundStatusNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionFocusOnBackgroundStatusNegative?.light, abstractTheme.colorBackgroundActionFocusOnBackgroundStatusNegative?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundActionFocusOnBackgroundStatusNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent3Tint900() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent3Tint900, abstractTheme.colorChartSequentialAccent3Tint900) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent3Tint900 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundActionFocusOnBackgroundStatusNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundActionFocusOnBackgroundStatusNegative?.dark, abstractTheme.colorBackgroundActionFocusOnBackgroundStatusNegative?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundActionFocusOnBackgroundStatusNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent4Tint100() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent4Tint100, abstractTheme.colorChartSequentialAccent4Tint100) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent4Tint100 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysBlackLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysBlack?.light, abstractTheme.colorBackgroundAlwaysBlack?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysBlack?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent4Tint200() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent4Tint200, abstractTheme.colorChartSequentialAccent4Tint200) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent4Tint200 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysBlackDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysBlack?.dark, abstractTheme.colorBackgroundAlwaysBlack?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysBlack?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent4Tint300() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent4Tint300, abstractTheme.colorChartSequentialAccent4Tint300) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent4Tint300 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysWhiteLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysWhite?.light, abstractTheme.colorBackgroundAlwaysWhite?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysWhite?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent4Tint400() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent4Tint400, abstractTheme.colorChartSequentialAccent4Tint400) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent4Tint400 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysWhiteDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysWhite?.dark, abstractTheme.colorBackgroundAlwaysWhite?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysWhite?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent4Tint500() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent4Tint500, abstractTheme.colorChartSequentialAccent4Tint500) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent4Tint500 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysAttractiveLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysAttractive?.light, abstractTheme.colorBackgroundAlwaysAttractive?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysAttractive?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent4Tint600() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent4Tint600, abstractTheme.colorChartSequentialAccent4Tint600) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent4Tint600 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysAttractiveDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysAttractive?.dark, abstractTheme.colorBackgroundAlwaysAttractive?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysAttractive?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent4Tint700() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent4Tint700, abstractTheme.colorChartSequentialAccent4Tint700) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent4Tint700 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysWarningLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysWarning?.light, abstractTheme.colorBackgroundAlwaysWarning?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysWarning?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent4Tint800() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent4Tint800, abstractTheme.colorChartSequentialAccent4Tint800) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent4Tint800 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysWarningDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysWarning?.dark, abstractTheme.colorBackgroundAlwaysWarning?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysWarning?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent4Tint900() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent4Tint900, abstractTheme.colorChartSequentialAccent4Tint900) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent4Tint900 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysNegative?.light, abstractTheme.colorBackgroundAlwaysNegative?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysNegative?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent5Tint100() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent5Tint100, abstractTheme.colorChartSequentialAccent5Tint100) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent5Tint100 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysNegative?.dark, abstractTheme.colorBackgroundAlwaysNegative?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysNegative?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent5Tint200() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent5Tint200, abstractTheme.colorChartSequentialAccent5Tint200) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent5Tint200 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysPositiveLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysPositive?.light, abstractTheme.colorBackgroundAlwaysPositive?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysPositive?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent5Tint300() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent5Tint300, abstractTheme.colorChartSequentialAccent5Tint300) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent5Tint300 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysPositiveDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysPositive?.dark, abstractTheme.colorBackgroundAlwaysPositive?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysPositive?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent5Tint400() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent5Tint400, abstractTheme.colorChartSequentialAccent5Tint400) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent5Tint400 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysInformationLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysInformation?.light, abstractTheme.colorBackgroundAlwaysInformation?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysInformation?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent5Tint500() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent5Tint500, abstractTheme.colorChartSequentialAccent5Tint500) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent5Tint500 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundAlwaysInformationDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundAlwaysInformation?.dark, abstractTheme.colorBackgroundAlwaysInformation?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundAlwaysInformation?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent5Tint600() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent5Tint600, abstractTheme.colorChartSequentialAccent5Tint600) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent5Tint600 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundTransparentDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundTransparentDefault?.light, abstractTheme.colorBackgroundTransparentDefault?.light) - XCTAssertTrue(inheritedTheme.colorBackgroundTransparentDefault?.light == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent5Tint700() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent5Tint700, abstractTheme.colorChartSequentialAccent5Tint700) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent5Tint700 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - func testInheritedThemeCanOverrideSemanticTokenColorBackgroundTransparentDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBackgroundTransparentDefault?.dark, abstractTheme.colorBackgroundTransparentDefault?.dark) - XCTAssertTrue(inheritedTheme.colorBackgroundTransparentDefault?.dark == MockTheme.mockThemeColorRawToken) + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent5Tint800() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent5Tint800, abstractTheme.colorChartSequentialAccent5Tint800) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent5Tint800 == OtherMockTheme.otherMockThemeMultipleColorTokens) } - // TODO: #124 - Add missing colorBorderActionEnabled* - // TODO: #124 - Add missing colorBorderActionHover* - // TODO: #124 - Add missing colorBorderActionPressed* - // TODO: #124 - Add missing colorBorderActionDisabled* - // TODO: #124 - Add missing colorBorderActionFocus* - // TODO: #124 - Add missing colorBorderSelectionSelected* - // TODO: #124 - Add missing colorBorderSelectionUnselected* - // TODO: #124 - Add missing colorBorderAlways* - // TODO: #124 - Add missing colorBorderOutside - // TODO: #124 - Add missing colorOnBackgroundStatusAttractive* - // TODO: #124 - Add missing colorOnBackgroundStatusWarning* - // TODO: #124 - Add missing colorOnBackgroundStatusNegative* - // TODO: #124 - Add missing colorOnBackgroundStatusPositive* - // TODO: #124 - Add missing colorOnBackgroundStatusInformation* - // TODO: #124 - Add missing colorOnBackgroundActionEnabled* - // TODO: #124 - Add missing colorOnBackgroundActionHover* - // TODO: #124 - Add missing colorOnBackgroundActionPressed* - // TODO: #124 - Add missing colorOnBackgroundActionDisabled* - // TODO: #124 - Add missing colorOnBackgroundActionFocus* - // TODO: #124 - Add missing colorOnBackgroundActionAlways* - // TODO: #124 - Add missing colorElevation* - // TODO: #124 - Add missing colorDecorativeBrand* - // TODO: #124 - Add missing colorDecorativeNeutral* - // TODO: #124 - Add missing colorDecorativeAccent* - // TODO: #124 - Add missing colorDecorativeSkin* - // TODO: #124 - Add missing colorChart* + func testInheritedThemeCanOverrideSemanticTokenColorChartSequentialAccent5Tint900() throws { + XCTAssertNotEqual(inheritedTheme.colorChartSequentialAccent5Tint900, abstractTheme.colorChartSequentialAccent5Tint900) + XCTAssertTrue(inheritedTheme.colorChartSequentialAccent5Tint900 == OtherMockTheme.otherMockThemeMultipleColorTokens) + } } // swiftlint:enable type_body_length diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfDimensionSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfDimensionSemanticTokens.swift index f543b3e5b8..116532b82b 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfDimensionSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfDimensionSemanticTokens.swift @@ -14,10 +14,9 @@ import OUDS import XCTest -// WARNING: Maybe removed in the future or needs to be updated with token generation - // swiftlint:disable implicitly_unwrapped_optional // swiftlint:disable required_deinit +// swiftlint:disable type_name /// The architecture of _OUDS iOS_ _Swift package_ library is based on _object oriented paradigm_ and overriding of classes. /// In fact the `OUDSTheme` object is a class, which can be seen as an _asbtract class_, exposing through its extensions and protocols _dimension semantic tokens_. @@ -161,3 +160,4 @@ final class TestThemeOverrideOfDimensionSemanticTokens: XCTestCase { // swiftlint:enable implicitly_unwrapped_optional // swiftlint:enable required_deinit +// swiftlint:enable type_name diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationSemanticTokens.swift index 5314abab8f..f14a67b4cd 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationSemanticTokens.swift @@ -14,10 +14,9 @@ import OUDS import XCTest -// WARNING: Maybe removed in the future or needs to be updated with token generation - // swiftlint:disable required_deinit // swiftlint:disable implicitly_unwrapped_optional +// swiftlint:disable type_name /// The architecture of _OUDS iOS_ _Swift package_ library is based on _object oriented paradigm_ and overriding of classes. /// In fact, the `OUDSTheme` object is a class, which can be seen as an _asbtract class_, exposing through its extensions and protocols _elevation semantic tokens_. @@ -264,3 +263,4 @@ final class TestThemeOverrideOfElevationSemanticTokens: XCTestCase { // swiftlint:enable required_deinit // swiftlint:enable implicitly_unwrapped_optional +// swiftlint:enable type_name diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfGridSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfGridSemanticTokens.swift index cef7f9d65f..4cc02c2cfa 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfGridSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfGridSemanticTokens.swift @@ -17,8 +17,6 @@ import XCTest // swiftlint:disable required_deinit // swiftlint:disable implicitly_unwrapped_optional -// WARNING: Maybe removed in the future or needs to be updated with token generation - /// The architecture of _OUDS iOS_ _Swift package_ library is based on _object oriented paradigm_ and overriding of classes. /// In fact the `OUDSTheme` object is a class, which can be seen as an _asbtract class_, exposing through its extensions and protocols _grid semantic tokens_. /// These semantic tokens should be overriden by subclass like the `OrangeTheme` default theme. diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfOpacitySemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfOpacitySemanticTokens.swift index 0afbe34840..e7acb2e5ae 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfOpacitySemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfOpacitySemanticTokens.swift @@ -17,8 +17,6 @@ import XCTest // swiftlint:disable required_deinit // swiftlint:disable implicitly_unwrapped_optional -// WARNING: Maybe removed in the future or needs to be updated with token generation - /// The architecture of _OUDS iOS_ _Swift package_ library is based on _object oriented paradigm_ and overriding of classes. /// In factn the `OUDSTheme` object is a class, which can be seens as an _asbtract class_, exposing through its extensions and protocols _opacity semantic tokens_. /// These semantic tokens should be overriden by subclass like the `OrangeTheme` default theme. diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizingSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizingSemanticTokens.swift index 0261be5405..f027e3d334 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizingSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizingSemanticTokens.swift @@ -14,8 +14,6 @@ import OUDS import XCTest -// WARNING: Maybe removed in the future or needs to be updated with token generation - // swiftlint:disable required_deinit // swiftlint:disable implicitly_unwrapped_optional diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpacingSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpacingSemanticTokens.swift index dc5d8caa19..6295b581d5 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpacingSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpacingSemanticTokens.swift @@ -14,11 +14,10 @@ import OUDS import XCTest -// WARNING: Maybe removed in the future or needs to be updated with token generation - // swiftlint:disable type_body_length // swiftlint:disable required_deinit // swiftlint:disable implicitly_unwrapped_optional +// swiftlint:disable file_length /// The architecture of _OUDS iOS_ _Swift package_ library is based on _object oriented paradigm_ and overriding of classes. /// In factn the `OUDSTheme` object is a class, which can be seens as an _asbtract class_, exposing through its extensions and protocols _spacing semantic tokens_. diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfThemeProperties.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfThemeProperties.swift index a984d0d087..d09410f0b6 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfThemeProperties.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfThemeProperties.swift @@ -14,8 +14,6 @@ import OUDS import XCTest -// WARNING: Maybe removed in the future or needs to be updated with token generation - // swiftlint:disable required_deinit // swiftlint:disable implicitly_unwrapped_optional diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfTypographySemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfTypographySemanticTokens.swift index 0728fbf55b..3f4f445d16 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfTypographySemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfTypographySemanticTokens.swift @@ -14,11 +14,10 @@ import OUDS import XCTest -// WARNING: Maybe removed in the future or needs to be updated with token generation - // swiftlint:disable type_body_length // swiftlint:disable required_deinit // swiftlint:disable implicitly_unwrapped_optional +// swiftlint:disable type_name /// The architecture of _OUDS iOS_ _Swift package_ library is based on _object oriented paradigm_ and overriding of classes. /// In fact the `OUDSTheme` object is a class, which can be seen as an _asbtract class_, exposing through its extensions and protocols _typography semantic tokens_. @@ -480,3 +479,4 @@ final class TestThemeOverrideOfTypographySemanticTokens: XCTestCase { // swiftlint:enable required_deinit // swiftlint:enable implicitly_unwrapped_optional // swiftlint:enable type_body_length +// swiftlint:enable type_name diff --git a/OUDS/Core/Themes/Inverse/Sources/InverseTheme+ColorSemanticTokens.swift b/OUDS/Core/Themes/Inverse/Sources/InverseTheme+ColorSemanticTokens.swift index a85485fbc0..84a73c903f 100644 --- a/OUDS/Core/Themes/Inverse/Sources/InverseTheme+ColorSemanticTokens.swift +++ b/OUDS/Core/Themes/Inverse/Sources/InverseTheme+ColorSemanticTokens.swift @@ -12,218 +12,504 @@ // import Foundation +import OUDSThemesOrange +import OUDSTokensRaw import OUDSTokensSemantic // ଘ( ・ω・)_/゚・:*:・。☆ // [File to generate with the tokenator] // WARNING: Not synchronized anymore with the Figjam -// TODO: See if we can get rid of color aliases tokens providing optional values -// swiftlint:disable force_unwrapping +// swiftlint:disable line_length +// swiftlint:disable file_length /// Overrides some colors using values defined in extension of `ColorRawTokens` in this current module. extension InverseTheme { - override public var colorBackgroundDefaultPrimary: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedHighest!) } + // MARK: Semantic token - Colors - Background - override public var colorBackgroundDefaultSecondary: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedHigh!) } + override public var colorBackgroundPrimary: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray880) } - override public var colorBackgroundDefaultTertiary: ColorSemanticToken? { MultipleColorTokens(sysColorBrandAttractiveHighest!) } + override public var colorBackgroundSecondary: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray720) } - override public var colorBackgroundEmphasizedPrimary: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedWhite!) } + override public var colorBackgroundTertiary: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorWarmGray900) } - override public var colorBackgroundBrandPrimary: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryLow!) } + override public var colorBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } - override public var colorBackgroundStatusNeutral: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedHigh!) } + override public var colorBackgroundBrandPrimary: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } - override public var colorBackgroundStatusNeutralOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLowest) } + override public var colorBackgroundBrandSecondary: ColorSemanticToken { fatalError("🤖 No value defined for colorBackgroundBrandSecondary!") } - override public var colorBackgroundStatusAttractiveMuted: ColorSemanticToken? { MultipleColorTokens(sysColorBrandAttractiveLowest!) } + override public var colorBackgroundBrandTertiary: ColorSemanticToken { fatalError("🤖 No value defined for colorBackgroundBrandTertiary!") } - override public var colorBackgroundStatusAttractiveEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandWarningDefault!) } + override public var colorBackgroundStatusNeutral: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray720) } - override public var colorBackgroundStatusWarningMuted: ColorSemanticToken? { MultipleColorTokens(sysColorBrandWarningHighest!) } + override public var colorBackgroundStatusNeutralOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray80) } - override public var colorBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandWarningLowest) } + override public var colorBackgroundStatusPositiveMuted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalMalachite100) } - override public var colorBackgroundStatusWarningEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandWarningDefault!) } + override public var colorBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalMalachite100) } - override public var colorBackgroundStatusNegativeMuted: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedHighest!) } + override public var colorBackgroundStatusPositiveEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalMalachite500) } - override public var colorBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNegativeLowest) } + override public var colorBackgroundStatusInfoMuted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDodgerBlue900) } - override public var colorBackgroundStatusNegativeEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNegativeDefault!) } + override public var colorBackgroundStatusInfoMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDodgerBlue100) } - override public var colorBackgroundStatusPositiveMuted: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPositiveHighest!) } + override public var colorBackgroundStatusInfoEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDodgerBlue500) } - override public var colorBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPositiveLowest) } + override public var colorBackgroundStatusWarningMuted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun900) } - override public var colorBackgroundStatusPositiveEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPositiveDefault!) } + override public var colorBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun100) } - override public var colorBackgroundStatusInformationMuted: ColorSemanticToken? { MultipleColorTokens(sysColorBrandInformationLowest!) } + override public var colorBackgroundStatusWarningEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun500) } - override public var colorBackgroundStatusInformationMutedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandInformationLowest) } + override public var colorBackgroundStatusNegativeMuted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet900) } - override public var colorBackgroundStatusInformationEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPositiveLowest!) } + override public var colorBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet100) } - override public var colorContentDefault: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedWhite!) } + override public var colorBackgroundStatusNegativeEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet600) } - override public var colorContentDefaultOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack!) } + override public var colorBackgroundStatusAccentMuted: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorWarmGray900) } - override public var colorContentDefaultOnBackgroundBrandPrimary: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack!) } + override public var colorBackgroundStatusAccentMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorWarmGray100) } - override public var colorContentMuted: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedMedium!) } + override public var colorBackgroundStatusAccentEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun500) } - override public var colorContentMutedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLowest!) } + // MARK: Semantic token - Colors - Content - override public var colorContentDisabled: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLowest!) } + override public var colorContentDefault: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - override public var colorContentDisabledOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedMedium!) } + override public var colorContentContentDefaultOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - override public var colorContentBrandPrimary: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryLow!) } + override public var colorContentMuted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray400) } - override public var colorContentBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryDefault!) } + override public var colorContentContentMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray400) } - override public var colorContentBrandSecondary: ColorSemanticToken? { nil } + override public var colorContentDisabled: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray400) } - override public var colorContentBrandTertiary: ColorSemanticToken? { nil } + override public var colorContentContentDisabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray400) } - override public var colorContentStatusAttractive: ColorSemanticToken? { nil } + override public var colorContentBrandPrimary: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } - override public var colorContentStatusNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNegativeDefault!) } + override public var colorContentBrandSecondary: ColorSemanticToken { fatalError("🤖 No value defined for colorContentBrandSecondary!") } - override public var colorContentStatusPositive: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPositiveDefault!) } + override public var colorContentBrandTertiary: ColorSemanticToken { fatalError("🤖 No value defined for colorContentBrandTertiary!") } - override public var colorContentStatusInformation: ColorSemanticToken? { MultipleColorTokens(sysColorBrandInformationDefault!) } + override public var colorContentStatusPositive: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalMalachite500) } - override public var colorContentActionEnabled: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedLower) } + override public var colorContentStatusInfo: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDodgerBlue500) } - override public var colorContentActionEnabledOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack) } + override public var colorContentStatusWarning: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun500) } - override public var colorContentActionEnabledOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack) } + override public var colorContentStatusNegative: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet600) } - override public var colorContentActionEnabledOnBackgroundStatusNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedWhite) } + override public var colorContentStatusAccent: ColorSemanticToken { fatalError("🤖 No value defined for colorContentStatusAccent!") } - override public var colorContentActionHover: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedMedium) } + // MARK: Semantic token - Colors - Content - On Background - override public var colorContentActionHoverOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLowest) } + override public var colorContentOnBackgroundPrimary: ColorSemanticToken { MultipleColorTokens( ColorRawTokens.colorFunctionalBlack) } - override public var colorContentActionHoverOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLow) } + override public var colorContentOnBackgroundSecondary: ColorSemanticToken { fatalError("🤖 No value defined for colorContentOnBackgroundSecondary!") } - override public var colorContentActionHoverOnBackgroundStatusNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack) } + override public var colorContentOnBackgroundTertiary: ColorSemanticToken { fatalError("🤖 No value defined for colorContentOnBackgroundTertiary!") } - // TODO: #124 - Add missing colorContentActionPressed* tokens - // TODO: #124 - Add missing colorContentActionDisabled* tokens - // TODO: #124 - Add missing colorContentActionFocus* tokens - // TODO: #124 - Add missing colorContentVisited* tokens - // TODO: #124 - Add missing colorContentActionSelectionSelected* tokens - // TODO: #124 - Add missing colorContentActionSelectionHover* tokens - // TODO: #124 - Add missing colorContentActionSelectionPressed* tokens - // TODO: #124 - Add missing colorContentActionSelectionSelectedFocus* tokens - // TODO: #124 - Add missing colorContentActionSelectionUnselected* tokens - // TODO: #124 - Add missing colorContentActionAlways* tokens + override public var colorContentOnBackgroundStatusPositiveMuted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - override public var colorBorderDefault: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLowest!) } + override public var colorContentOnBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandPrimary - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandSecondary - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandTertiary + override public var colorContentOnBackgroundStatusPositiveEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - override public var colorBorderDefaultOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedMedium!) } + override public var colorContentOnBackgroundStatusInfoMuted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - override public var colorBorderEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedWhite!) } + override public var colorContentOnBackgroundStatusInfoMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - override public var colorBorderEmphasizedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack!) } + override public var colorContentOnBackgroundStatusInfoEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - override public var colorBorderBrandPrimary: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryLow!) } + override public var colorContentOnBackgroundStatusWarningMuted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - override public var colorBorderBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryDefault!) } + override public var colorContentOnBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - override public var colorBorderBrandSecondary: ColorSemanticToken? { nil } + override public var colorContentOnBackgroundStatusWarningEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - override public var colorBorderBrandTertiary: ColorSemanticToken? { nil } + override public var colorContentOnBackgroundStatusNegativeMuted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - override public var colorBorderBrandStatusAttractive: ColorSemanticToken? { nil } + override public var colorContentOnBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - override public var colorBorderBrandStatusWarning: ColorSemanticToken? { nil } + override public var colorContentOnBackgroundStatusNegativeEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } - override public var colorBorderBrandStatusNegative: ColorSemanticToken? { nil } + override public var colorContentOnBackgroundStatusAccentMuted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - override public var colorBorderBrandStatusPositive: ColorSemanticToken? { nil } + override public var colorContentOnBackgroundStatusAccentMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - override public var colorBorderBrandStatusInformation: ColorSemanticToken? { nil } + override public var colorContentOnBackgroundStatusAccentedEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - override public var colorBackgroundActionEnabled: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedLower) } + // MARK: Semantic token - Colors - Border - override public var colorBackgroundActionEnabledOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack) } + override public var colorBorderDefault: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray400) } - override public var colorBackgroundActionEnabledOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack) } + override public var colorBorderDefaultOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray400) } - override public var colorBackgroundActionEnabledOnBackgroundStatusNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedWhite) } + override public var colorBorderEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } - override public var colorBackgroundActionPressed: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryLow) } + override public var colorBorderEmphasizedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - override public var colorBackgroundActionPressedOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryDefault) } + override public var colorBorderFocus: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray880) } - override public var colorBackgroundActionPressedOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryDefault) } + override public var colorBorderBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange550) } - override public var colorBackgroundActionPressedOnBackgroundStautsNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPrimaryDefault) } + override public var colorBorderBrandPrimary: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } - override public var colorBackgroundActionDisabled: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLowest) } + override public var colorBorderBrandSecondary: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderBrandSecondary!") } - override public var colorBackgroundActionDisabledOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedMedium) } + override public var colorBorderBrandTertiary: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderBrandTertiary!") } - override public var colorBackgroundActionDisabledOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedMedium) } + override public var colorBorderStatusPositive: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderStatusPositive!") } - override public var colorBackgroundActionDisabledOnBackgroundStatusNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLowest) } + override public var colorBorderStatusInfo: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderStatusInfo!") } - override public var colorBackgroundActionFocus: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedMedium) } + override public var colorBorderStatusWarning: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderStatusWarning!") } - override public var colorBackgroundActionFocusOnBackgroundEmphasized: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedMedium) } + override public var colorBorderStatusNegative: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderStatusNegative!") } - override public var colorBackgroundActionFocusOnBackgroundStatusExcNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedLow) } + override public var colorBorderStatusAccent: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderStatusAccent!") } - override public var colorBackgroundActionFocusOnBackgroundStatusNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack) } + override public var colorBorderOnBackgroundBrandPrimary: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } - override public var colorBackgroundAlwaysBlack: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralEmphasizedBlack) } + override public var colorBorderOnBackgroundBrandSecondary: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderOnBackgroundBrandSecondary!") } - override public var colorBackgroundAlwaysWhite: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNeutralMutedWhite) } + override public var colorBorderOnBackgroundBrandTertiary: ColorSemanticToken { fatalError("🤖 No value defined for colorBorderOnBackgroundBrandTertiary!") } - override public var colorBackgroundAlwaysAttractive: ColorSemanticToken? { MultipleColorTokens(sysColorBrandWarningDefault) } + // MARK: Semantic token - Colors - Action - override public var colorBackgroundAlwaysWarning: ColorSemanticToken? { MultipleColorTokens(sysColorBrandWarningDefault) } + override public var colorActionSelected: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } - override public var colorBackgroundAlwaysNegative: ColorSemanticToken? { MultipleColorTokens(sysColorBrandNegativeDefault) } + override public var colorActionSelectedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange550) } - override public var colorBackgroundAlwaysPositive: ColorSemanticToken? { MultipleColorTokens(sysColorBrandPositiveDefault) } + override public var colorActionDisabled: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray400) } - override public var colorBackgroundAlwaysInformation: ColorSemanticToken? { MultipleColorTokens(sysColorBrandInformationDefault) } + override public var colorActionDisabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray400) } - // TODO: #124 - Add missing colorBorderActionEnabled* - // TODO: #124 - Add missing colorBorderActionHover* - // TODO: #124 - Add missing colorBorderActionPressed* - // TODO: #124 - Add missing colorBorderActionDisabled* - // TODO: #124 - Add missing colorBorderActionFocus* - // TODO: #124 - Add missing colorBorderSelectionSelected* - // TODO: #124 - Add missing colorBorderSelectionUnselected* - // TODO: #124 - Add missing colorBorderAlways* - // TODO: #124 - Add missing colorBorderOutside - // TODO: #124 - Add missing colorOnBackgroundStatusAttractive* - // TODO: #124 - Add missing colorOnBackgroundStatusWarning* - // TODO: #124 - Add missing colorOnBackgroundStatusNegative* - // TODO: #124 - Add missing colorOnBackgroundStatusPositive* - // TODO: #124 - Add missing colorOnBackgroundStatusInformation* - // TODO: #124 - Add missing colorOnBackgroundActionEnabled* - // TODO: #124 - Add missing colorOnBackgroundActionHover* - // TODO: #124 - Add missing colorOnBackgroundActionPressed* - // TODO: #124 - Add missing colorOnBackgroundActionDisabled* - // TODO: #124 - Add missing colorOnBackgroundActionFocus* - // TODO: #124 - Add missing colorOnBackgroundActionAlways* - // TODO: #124 - Add missing colorElevation* - // TODO: #124 - Add missing colorDecorativeBrand* - // TODO: #124 - Add missing colorDecorativeNeutral* - // TODO: #124 - Add missing colorDecorativeAccent* - // TODO: #124 - Add missing colorDecorativeSkin* - // TODO: #124 - Add missing colorChart* + override public var colorActionVisited: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst400) } + + override public var colorActionVistedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst600) } + + override public var colorActionPrimaryEnabled: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } + + override public var colorActionPrimaryEnabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + override public var colorActionPrimaryHover: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray400) } + + override public var colorActionPrimaryHoverOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray400) } + + override public var colorActionPrimaryPressed: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } + + override public var colorActionPrimaryPressedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange550) } + + override public var colorActionPrimaryLoading: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } + + override public var colorActionPrimaryLoadingOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange550) } + + override public var colorActionPrimaryFocus: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray400) } + + override public var colorActionPrimaryFocusOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray400) } + + override public var colorActionSecondaryEnabled: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } + + override public var colorActionSecondaryEnabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray80) } + + override public var colorActionSecondaryHover: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + override public var colorActionSecondaryHoverOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } + + override public var colorActionSecondaryPressed: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + override public var colorActionSecondaryPressedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } + + override public var colorActionSecondaryLoading: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + override public var colorActionSecondaryLoadingOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } + + override public var colorActionSecondaryFocus: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + override public var colorActionSecondaryFocusOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } + + override public var colorActionNegativeEnabled: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet600) } + + override public var colorActionNegativeHover: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet700) } + + override public var colorActionNegativePressed: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet800) } + + override public var colorActionNegativeLoading: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet800) } + + override public var colorActionNegativeFocus: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet700) } + + override public var colorActionOnBackgroundActionDisabled: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + override public var colorActionOnBackgroundActionDisabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + override public var colorActionOnBackgroundActionNegative: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + override public var colorActionOnBackgroundActionPrimaryEnabled: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + override public var colorActionOnBackgroundActionPrimaryEnabledOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + override public var colorActionOnBackgroundActionPrimaryHover: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + override public var colorActionOnBackgroundActionPrimaryHoverOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + override public var colorActionOnBackgroundActionPrimaryPressed: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + override public var colorActionOnBackgroundActionPrimaryPressedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + override public var colorActionOnBackgroundActionPrimaryLoading: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + override public var colorActionOnBackgroundActionPrimaryLoadingOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + override public var colorActionOnBackgroundActionPrimaryFocus: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + override public var colorActionOnBackgroundActionPrimaryFocusOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + override public var colorActionOnBackgroundActionSecondaryEnabled: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryEnabled!") } + + override public var colorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized!") } + + override public var colorActionOnBackgroundActionSecondaryHover: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryHover!") } + + override public var colorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized!") } + + override public var colorActionOnBackgroundActionSecondaryPressed: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryPressed!") } + + override public var colorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized!") } + + override public var colorActionOnBackgroundActionSecondaryLoading: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryLoading!") } + + override public var colorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized!") } + + override public var colorActionOnBackgroundActionSecondaryFocus: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryFocus!") } + + override public var colorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized!") } + + // MARK: Semantic token - Colors - Elevation + + override public var colorElevationRaised: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray800) } + + override public var colorElevationRaisedOnBackgroundSecondary: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + override public var colorElevationRaisedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + override public var colorElevationDrag: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray720) } + + override public var colorElevationDragOnBackgroundSecondary: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray480) } + + override public var colorElevationDragOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray80) } + + override public var colorElevationOverlayDefault: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray720) } + + override public var colorElevationOverlayDefaultOnBackgroundSecondary: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray560) } + + override public var colorElevationOverlayDefaultOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + override public var colorElevationOverlayEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray80) } + + override public var colorElevationOverlayEmphasizedOnBackgroundSecondary: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray80) } + + override public var colorElevationOverlayEmphasizedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + override public var colorElevationModal: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + // MARK: Semantic token - Colors - Decorative + + override public var colorDecorativeBrandPrimary: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } + + override public var colorDecorativeBrandPrimaryMuted: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeBrandPrimaryMuted!") } + + override public var colorDecorativeBrandPrimaryEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeBrandPrimaryEmphasized!") } + + override public var colorDecorativeSecondary: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalWhite) } + + override public var colorDecorativeSecondaryMuted: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeSecondaryMuted!") } + + override public var colorDecorativeSecondaryEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeSecondaryEmphasized!") } + + override public var colorDecorativeBrandTertiary: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalBlack) } + + override public var colorDecorativeBrandTertiaryMuted: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeBrandTertiaryMuted!") } + + override public var colorDecorativeBrandTertiaryEmphasized: ColorSemanticToken { fatalError("🤖 No value defined for colorDecorativeBrandTertiaryEmphasized!") } + + override public var colorDecorativeNeutralMuted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + override public var colorDecorativeNeutralDefault: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray400) } + + override public var colorDecorativeNeutralEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray160) } + + override public var colorDecorativeAccent1Muted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald200) } + + override public var colorDecorativeAccent1Default: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald500) } + + override public var colorDecorativeAccent1Emphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald700) } + + override public var colorDecorativeAccent2Muted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky200) } + + override public var colorDecorativeAccent2Default: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky400) } + + override public var colorDecorativeAccent2Emphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky700) } + + override public var colorDecorativeAccent3Muted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun200) } + + override public var colorDecorativeAccent3Default: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun500) } + + override public var colorDecorativeAccent3Emphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmber500) } + + override public var colorDecorativeAccent4Muted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst200) } + + override public var colorDecorativeAccent4Default: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst400) } + + override public var colorDecorativeAccent4Emphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst800) } + + override public var colorDecorativeAccent5Muted: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink100) } + + override public var colorDecorativeAccent5Default: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink200) } + + override public var colorDecorativeAccent5Emphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink300) } + + override public var colorDecorativeSkintTint100: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach100) } + + override public var colorDecorativeSkintTint200: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach200) } + + override public var colorDecorativeSkintTint300: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach300) } + + override public var colorDecorativeSkintTint400: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach400) } + + override public var colorDecorativeSkintTint500: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach500) } + + override public var colorDecorativeSkintTint600: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach600) } + + override public var colorDecorativeSkintTint700: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach700) } + + override public var colorDecorativeSkintTint800: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach800) } + + override public var colorDecorativeSkintTint900: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeDeepPeach900) } + + // MARK: Semantic token - Colors - Chart + + override public var colorChartCategoricalNeutral: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalDarkGray640) } + + override public var colorChartCategoricalBrand: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } + + override public var colorChartCategoricalPositive: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalMalachite500) } + + override public var colorChartCategoricalNegative: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalScarlet600) } + + override public var colorChartCategoricalTier1: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst500) } + + override public var colorChartCategoricalTier2: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink400) } + + override public var colorChartCategoricalTier3: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald600) } + + override public var colorChartCategoricalTier4: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky200) } + + override public var colorChartCategoricalTier5: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmber700) } + + override public var colorChartCategoricalTier6: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst600) } + + override public var colorChartCategoricalTier7: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink600) } + + override public var colorChartCategoricalTier8: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald400) } + + override public var colorChartCategoricalTier9: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky500) } + + override public var colorChartCategoricalTier10: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmber300) } + + override public var colorChartSequentialAccent1Tint100: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky900) } + + override public var colorChartSequentialAccent1Tint200: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky800) } + + override public var colorChartSequentialAccent1Tint300: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky700) } + + override public var colorChartSequentialAccent1Tint400: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky600) } + + override public var colorChartSequentialAccent1Tint500: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky500) } + + override public var colorChartSequentialAccent1Tint600: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky400) } + + override public var colorChartSequentialAccent1Tint700: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky300) } + + override public var colorChartSequentialAccent1Tint800: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky200) } + + override public var colorChartSequentialAccent1Tint900: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeSky100) } + + override public var colorChartSequentialAccent2Tint100: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald900) } + + override public var colorChartSequentialAccent2Tint200: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald800) } + + override public var colorChartSequentialAccent2Tint300: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald700) } + + override public var colorChartSequentialAccent2Tint400: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald600) } + + override public var colorChartSequentialAccent2Tint500: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald500) } + + override public var colorChartSequentialAccent2Tint600: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald400) } + + override public var colorChartSequentialAccent2Tint700: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald300) } + + override public var colorChartSequentialAccent2Tint800: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald200) } + + override public var colorChartSequentialAccent2Tint900: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeEmerald100) } + + override public var colorChartSequentialAccent3Tint100: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink900) } + + override public var colorChartSequentialAccent3Tint200: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink800) } + + override public var colorChartSequentialAccent3Tint300: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink700) } + + override public var colorChartSequentialAccent3Tint400: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink600) } + + override public var colorChartSequentialAccent3Tint500: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink500) } + + override public var colorChartSequentialAccent3Tint600: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink400) } + + override public var colorChartSequentialAccent3Tint700: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink300) } + + override public var colorChartSequentialAccent3Tint800: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink200) } + + override public var colorChartSequentialAccent3Tint900: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeShockingPink100) } + + override public var colorChartSequentialAccent4Tint100: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst900) } + + override public var colorChartSequentialAccent4Tint200: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst800) } + + override public var colorChartSequentialAccent4Tint300: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst700) } + + override public var colorChartSequentialAccent4Tint400: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst600) } + + override public var colorChartSequentialAccent4Tint500: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst500) } + + override public var colorChartSequentialAccent4Tint600: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst400) } + + override public var colorChartSequentialAccent4Tint700: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst300) } + + override public var colorChartSequentialAccent4Tint800: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst200) } + + override public var colorChartSequentialAccent4Tint900: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorDecorativeAmethyst100) } + + override public var colorChartSequentialAccent5Tint100: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun900) } + + override public var colorChartSequentialAccent5Tint200: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun800) } + + override public var colorChartSequentialAccent5Tint300: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun700) } + + override public var colorChartSequentialAccent5Tint400: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun600) } + + override public var colorChartSequentialAccent5Tint500: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun500) } + + override public var colorChartSequentialAccent5Tint600: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun400) } + + override public var colorChartSequentialAccent5Tint700: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun300) } + + override public var colorChartSequentialAccent5Tint800: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun200) } + + override public var colorChartSequentialAccent5Tint900: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalSun100) } } -// swiftlint:enable force_unwrapping +// swiftlint:enable line_length diff --git a/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeColors.swift b/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeColors.swift index 9fb3f6785f..e75da93d91 100644 --- a/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeColors.swift +++ b/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeColors.swift @@ -18,7 +18,8 @@ import XCTest // swiftlint:disable required_deinit // swiftlint:disable implicitly_unwrapped_optional -// swiftlint:disable force_unwrapping +// swiftlint:disable type_body_length +// swiftlint:disable file_length /// `InverseTheme` is a quite particular theme with "inverse" color palette. Is it neuther a light mode theme nor a dark mode theme. /// This "inverse" mode as colors which, for a given semantic token, has the same value for both light and dark mode. @@ -30,327 +31,1064 @@ final class TestInverseThemeColors: XCTestCase { inverseTheme = InverseTheme() } - private func assertHomogeneity(_ value: ColorSemanticToken?) { - XCTAssertEqual(value!.light, value!.dark) + private func assertHomogeneity(_ value: ColorSemanticToken) { + XCTAssertEqual(value.light, value.dark) } // MARK: - Test cases - func testColorsHomogeneityBackgroundDefaultPrimary() throws { - assertHomogeneity(inverseTheme.colorBackgroundDefaultPrimary) + // MARK: Semantic token - Colors - Background + + func testColorsHomogeneityColorBackgroundPrimary() throws { + assertHomogeneity(inverseTheme.colorBackgroundPrimary) } - func testColorsHomogeneityBackgroundDefaultSecondary() throws { - assertHomogeneity(inverseTheme.colorBackgroundDefaultSecondary) + func testColorsHomogeneityColorBackgroundSecondary() throws { + assertHomogeneity(inverseTheme.colorBackgroundSecondary) } - func testColorsHomogeneityBackgroundDefaultTertiary() throws { - assertHomogeneity(inverseTheme.colorBackgroundDefaultTertiary) + func testColorsHomogeneityColorBackgroundTertiary() throws { + assertHomogeneity(inverseTheme.colorBackgroundTertiary) } - func testColorsHomogeneityBackgroundEmphasizedPrimary() throws { - assertHomogeneity(inverseTheme.colorBackgroundEmphasizedPrimary) + func testColorsHomogeneityColorBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorBackgroundEmphasized) } - func testColorsHomogeneityBackgroundBrandPrimary() throws { + func testColorsHomogeneityColorBackgroundBrandPrimary() throws { assertHomogeneity(inverseTheme.colorBackgroundBrandPrimary) } - func testColorsHomogeneityBackgroundStatusNeutral() throws { + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorBackgroundBrandSecondary() throws { +// assertHomogeneity(inverseTheme.colorBackgroundBrandSecondary) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorBackgroundBrandTertiary() throws { +// assertHomogeneity(inverseTheme.colorBackgroundBrandTertiary) +// } + + func testColorsHomogeneityColorBackgroundStatusNeutral() throws { assertHomogeneity(inverseTheme.colorBackgroundStatusNeutral) } - func testColorsHomogeneityBackgroundStatusNeutralOnBackgroundEmphasized() throws { + func testColorsHomogeneityColorBackgroundStatusNeutralOnBackgroundEmphasized() throws { assertHomogeneity(inverseTheme.colorBackgroundStatusNeutralOnBackgroundEmphasized) } - func testColorsHomogeneityBackgroundStatusAttractiveMuted() throws { - assertHomogeneity(inverseTheme.colorBackgroundStatusAttractiveMuted) + func testColorsHomogeneityColorBackgroundStatusPositiveMuted() throws { + assertHomogeneity(inverseTheme.colorBackgroundStatusPositiveMuted) + } + + func testColorsHomogeneityColorBackgroundStatusPositiveMutedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorBackgroundStatusPositiveMutedOnBackgroundEmphasized) } - func testColorsHomogeneityBackgroundStatusAttractiveEmphasized() throws { - assertHomogeneity(inverseTheme.colorBackgroundStatusAttractiveEmphasized) + func testColorsHomogeneityColorBackgroundStatusPositiveEmphasized() throws { + assertHomogeneity(inverseTheme.colorBackgroundStatusPositiveEmphasized) + } + + func testColorsHomogeneityColorBackgroundStatusInfoMuted() throws { + assertHomogeneity(inverseTheme.colorBackgroundStatusInfoMuted) } - func testColorsHomogeneityBackgroundStatusWarningMuted() throws { + func testColorsHomogeneityColorBackgroundStatusInfoMutedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorBackgroundStatusInfoMutedOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorBackgroundStatusInfoEmphasized() throws { + assertHomogeneity(inverseTheme.colorBackgroundStatusInfoEmphasized) + } + + func testColorsHomogeneityColorBackgroundStatusWarningMuted() throws { assertHomogeneity(inverseTheme.colorBackgroundStatusWarningMuted) } - func testColorsHomogeneityBackgroundStatusWarningMutedOnBackgroundEmphasized() throws { + func testColorsHomogeneityColorBackgroundStatusWarningMutedOnBackgroundEmphasized() throws { assertHomogeneity(inverseTheme.colorBackgroundStatusWarningMutedOnBackgroundEmphasized) } - func testColorsHomogeneityBackgroundStatusWarningEmphasized() throws { + func testColorsHomogeneityColorBackgroundStatusWarningEmphasized() throws { assertHomogeneity(inverseTheme.colorBackgroundStatusWarningEmphasized) } - func testColorsHomogeneityBackgroundStatusNegativeMuted() throws { + func testColorsHomogeneityColorBackgroundStatusNegativeMuted() throws { assertHomogeneity(inverseTheme.colorBackgroundStatusNegativeMuted) } - func testColorsHomogeneityBackgroundStatusNegativeMutedOnBackgroundEmphasized() throws { + func testColorsHomogeneityColorBackgroundStatusNegativeMutedOnBackgroundEmphasized() throws { assertHomogeneity(inverseTheme.colorBackgroundStatusNegativeMutedOnBackgroundEmphasized) } - func testColorsHomogeneityBackgroundStatusNegativeEmphasized() throws { + func testColorsHomogeneityColorBackgroundStatusNegativeEmphasized() throws { assertHomogeneity(inverseTheme.colorBackgroundStatusNegativeEmphasized) } - func testColorsHomogeneityBackgroundStatusPositiveMuted() throws { - assertHomogeneity(inverseTheme.colorBackgroundStatusPositiveMuted) + func testColorsHomogeneityColorBackgroundStatusAccentMuted() throws { + assertHomogeneity(inverseTheme.colorBackgroundStatusAccentMuted) } - func testColorsHomogeneityBackgroundStatusPositiveEmphasized() throws { - assertHomogeneity(inverseTheme.colorBackgroundStatusPositiveEmphasized) + func testColorsHomogeneityColorBackgroundStatusAccentMutedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorBackgroundStatusAccentMutedOnBackgroundEmphasized) } - func testColorsHomogeneityBackgroundStatusInformationMuted() throws { - assertHomogeneity(inverseTheme.colorBackgroundStatusInformationMuted) + func testColorsHomogeneityColorBackgroundStatusAccentEmphasized() throws { + assertHomogeneity(inverseTheme.colorBackgroundStatusAccentEmphasized) } - func testColorsHomogeneityBackgroundStatusInformationEmphasized() throws { - assertHomogeneity(inverseTheme.colorBackgroundStatusInformationEmphasized) - } + // MARK: Semantic token - Colors - Content - Status - func testColorsHomogeneityContentDefault() throws { + func testColorsHomogeneityColorContentDefault() throws { assertHomogeneity(inverseTheme.colorContentDefault) } - func testColorsHomogeneityContentDefaultOnBackgroundEmphasized() throws { - assertHomogeneity(inverseTheme.colorContentDefaultOnBackgroundEmphasized) - } - - func testColorsHomogeneityContentDefaultOnBackgroundBrandPrimary() throws { - assertHomogeneity(inverseTheme.colorContentDefaultOnBackgroundBrandPrimary) + func testColorsHomogeneityColorContentContentDefaultOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentContentDefaultOnBackgroundEmphasized) } - func testColorsHomogeneityContentMuted() throws { + func testColorsHomogeneityColorContentMuted() throws { assertHomogeneity(inverseTheme.colorContentMuted) } - func testColorsHomogeneityContentMutedOnBackgroundEmphasized() throws { - assertHomogeneity(inverseTheme.colorContentMutedOnBackgroundEmphasized) + func testColorsHomogeneityColorContentContentMutedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentContentMutedOnBackgroundEmphasized) } - func testColorsHomogeneityContentDisabled() { + func testColorsHomogeneityColorContentDisabled() throws { assertHomogeneity(inverseTheme.colorContentDisabled) } - func testColorsHomogeneityContentDisabledOnBackgroundEmphasized() { - assertHomogeneity(inverseTheme.colorContentDisabledOnBackgroundEmphasized) + func testColorsHomogeneityColorContentContentDisabledOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentContentDisabledOnBackgroundEmphasized) } - func testColorsHomogeneityContentBrandPrimary() throws { + func testColorsHomogeneityColorContentBrandPrimary() throws { assertHomogeneity(inverseTheme.colorContentBrandPrimary) } - func testColorsHomogeneityContentBrandPrimaryOnBackgroundEmphasized() throws { - assertHomogeneity(inverseTheme.colorContentBrandPrimaryOnBackgroundEmphasized) + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorContentBrandSecondary() throws { +// assertHomogeneity(inverseTheme.colorContentBrandSecondary) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorContentBrandTertiary() throws { +// assertHomogeneity(inverseTheme.colorContentBrandTertiary) +// } + + func testColorsHomogeneityColorContentStatusPositive() throws { + assertHomogeneity(inverseTheme.colorContentStatusPositive) + } + + func testColorsHomogeneityColorContentStatusInfo() throws { + assertHomogeneity(inverseTheme.colorContentStatusInfo) } - func testColorsHomogeneityContentStatusNegative() throws { + func testColorsHomogeneityColorContentStatusWarning() throws { + assertHomogeneity(inverseTheme.colorContentStatusWarning) + } + + func testColorsHomogeneityColorContentStatusNegative() throws { assertHomogeneity(inverseTheme.colorContentStatusNegative) } - func testColorsHomogeneityContentStatusPositive() throws { - assertHomogeneity(inverseTheme.colorContentStatusPositive) + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorContentStatusAccent() throws { +// assertHomogeneity(inverseTheme.colorContentStatusAccent) +// } + + // MARK: Semantic token - Colors - Content - On Background + + func testColorsHomogeneityColorContentOnBackgroundPrimary() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundPrimary) + } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorContentOnBackgroundSecondary() throws { +// assertHomogeneity(inverseTheme.colorContentOnBackgroundSecondary) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorContentOnBackgroundTertiary() throws { +// assertHomogeneity(inverseTheme.colorContentOnBackgroundTertiary) +// } + + func testColorsHomogeneityColorContentOnBackgroundStatusPositiveMuted() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusPositiveMuted) + } + + func testColorsHomogeneityColorContentOnBackgroundStatusPositiveMutedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusPositiveMutedOnBackgroundEmphasized) } - func testColorsHomogeneityContentStatusInformation() throws { - assertHomogeneity(inverseTheme.colorContentStatusInformation) + func testColorsHomogeneityColorContentOnBackgroundStatusPositiveEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusPositiveEmphasized) } - func testColorsHomogeneityContentActionEnabled() { - assertHomogeneity(inverseTheme.colorContentActionEnabled) + func testColorsHomogeneityColorContentOnBackgroundStatusInfoMuted() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusInfoMuted) } - func testColorsHomogeneityContentActionEnabledOnBackgroundEmphasized() { - assertHomogeneity(inverseTheme.colorContentActionEnabledOnBackgroundEmphasized) + func testColorsHomogeneityColorContentOnBackgroundStatusInfoMutedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusInfoMutedOnBackgroundEmphasized) } - func testColorsHomogeneityContentActionEnabledOnBackgroundStatusExcNegative() { - assertHomogeneity(inverseTheme.colorContentActionEnabledOnBackgroundStatusExcNegative) + func testColorsHomogeneityColorContentOnBackgroundStatusInfoEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusInfoEmphasized) } - func testColorsHomogeneityContentActionEnabledOnBackgroundStatusNegative() { - assertHomogeneity(inverseTheme.colorContentActionEnabledOnBackgroundStatusNegative) + func testColorsHomogeneityColorContentOnBackgroundStatusWarningMuted() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusWarningMuted) } - func testColorsHomogeneityContentActionHover() { - assertHomogeneity(inverseTheme.colorContentActionHover) + func testColorsHomogeneityColorContentOnBackgroundStatusWarningMutedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusWarningMutedOnBackgroundEmphasized) } - func testColorsHomogeneityContentActionHoverOnBackgroundEmphasized() { - assertHomogeneity(inverseTheme.colorContentActionHoverOnBackgroundEmphasized) + func testColorsHomogeneityColorContentOnBackgroundStatusWarningEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusWarningEmphasized) } - func testColorsHomogeneityContentActionHoverOnBackgroundStatusExcNegative() { - assertHomogeneity(inverseTheme.colorContentActionHoverOnBackgroundStatusExcNegative) + func testColorsHomogeneityColorContentOnBackgroundStatusNegativeMuted() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusNegativeMuted) } - func testColorsHomogeneityContentActionHoverOnBackgroundStatusNegative() { - assertHomogeneity(inverseTheme.colorContentActionHoverOnBackgroundStatusNegative) + func testColorsHomogeneityColorContentOnBackgroundStatusNegativeMutedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusNegativeMutedOnBackgroundEmphasized) } - // TODO: #124 - Add missing colorContentActionPressed* tokens - // TODO: #124 - Add missing colorContentActionDisabled* tokens - // TODO: #124 - Add missing colorContentActionFocus* tokens - // TODO: #124 - Add missing colorContentVisited* tokens - // TODO: #124 - Add missing colorContentActionSelectionSelected* tokens - // TODO: #124 - Add missing colorContentActionSelectionHover* tokens - // TODO: #124 - Add missing colorContentActionSelectionPressed* tokens - // TODO: #124 - Add missing colorContentActionSelectionSelectedFocus* tokens - // TODO: #124 - Add missing colorContentActionSelectionUnselected* tokens - // TODO: #124 - Add missing colorContentActionAlways* tokens + func testColorsHomogeneityColorContentOnBackgroundStatusNegativeEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusNegativeEmphasized) + } + + func testColorsHomogeneityColorContentOnBackgroundStatusAccentMuted() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusAccentMuted) + } - func testColorsHomogeneityBorderDefault() throws { + func testColorsHomogeneityColorContentOnBackgroundStatusAccentMutedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusAccentMutedOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorContentOnBackgroundStatusAccentedEmphasized() throws { + assertHomogeneity(inverseTheme.colorContentOnBackgroundStatusAccentedEmphasized) + } + + // MARK: Semantic token - Colors - Border + + func testColorsHomogeneityColorBorderDefault() throws { assertHomogeneity(inverseTheme.colorBorderDefault) } - func testColorsHomogeneityBorderDefaultOnBackgroundEmphasized() throws { + func testColorsHomogeneityColorBorderDefaultOnBackgroundEmphasized() throws { assertHomogeneity(inverseTheme.colorBorderDefaultOnBackgroundEmphasized) } - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandPrimary - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandSecondary - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandTertiary - - func testColorsHomogeneityBorderEmphasized() throws { + func testColorsHomogeneityColorBorderEmphasized() throws { assertHomogeneity(inverseTheme.colorBorderEmphasized) } - func testColorsHomogeneityBorderEmphasizedOnBackgroundEmphasized() throws { + func testColorsHomogeneityColorBorderEmphasizedOnBackgroundEmphasized() throws { assertHomogeneity(inverseTheme.colorBorderEmphasizedOnBackgroundEmphasized) } - func testColorsHomogeneityBorderBrandPrimary() throws { - assertHomogeneity(inverseTheme.colorBorderBrandPrimary) + func testColorsHomogeneityColorBorderFocus() throws { + assertHomogeneity(inverseTheme.colorBorderFocus) } - func testColorsHomogeneityBorderBrandPrimaryOnBackgroundEmphasized() throws { + func testColorsHomogeneityColorBorderBrandPrimaryOnBackgroundEmphasized() throws { assertHomogeneity(inverseTheme.colorBorderBrandPrimaryOnBackgroundEmphasized) } - func testColorsHomogeneityBackgroundActionEnabled() throws { - assertHomogeneity(inverseTheme.colorBackgroundActionEnabled) + func testColorsHomogeneityColorBorderBrandPrimary() throws { + assertHomogeneity(inverseTheme.colorBorderBrandPrimary) } - func testColorsHomogeneityBackgroundActionEnabledOnBackgroundEmphasized() throws { - assertHomogeneity(inverseTheme.colorBackgroundActionEnabledOnBackgroundEmphasized) + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorBorderBrandSecondary() throws { +// assertHomogeneity(inverseTheme.colorBorderBrandSecondary) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorBorderBrandTertiary() throws { +// assertHomogeneity(inverseTheme.colorBorderBrandTertiary) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorBorderStatusPositive() throws { +// assertHomogeneity(inverseTheme.colorBorderStatusPositive) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorBorderStatusInfo() throws { +// assertHomogeneity(inverseTheme.colorBorderStatusInfo) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorBorderStatusWarning() throws { +// assertHomogeneity(inverseTheme.colorBorderStatusWarning) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorBorderStatusNegative() throws { +// assertHomogeneity(inverseTheme.colorBorderStatusNegative) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorBorderStatusAccent() throws { +// assertHomogeneity(inverseTheme.colorBorderStatusAccent) +// } + + func testColorsHomogeneityColorBorderOnBackgroundBrandPrimary() throws { + assertHomogeneity(inverseTheme.colorBorderOnBackgroundBrandPrimary) } - func testColorsHomogeneityBackgroundActionEnabledOnBackgroundStatusExcNegative() throws { - assertHomogeneity(inverseTheme.colorBackgroundActionEnabledOnBackgroundStatusExcNegative) + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorBorderOnBackgroundBrandSecondary() throws { +// assertHomogeneity(inverseTheme.colorBorderOnBackgroundBrandSecondary) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorBorderOnBackgroundBrandTertiary() throws { +// assertHomogeneity(inverseTheme.colorBorderOnBackgroundBrandTertiary) +// } + + // MARK: Semantic token - Colors - Action + + func testColorsHomogeneityColorActionSelected() throws { + assertHomogeneity(inverseTheme.colorActionSelected) } - func testColorsHomogeneityBackgroundActionEnabledOnBackgroundStatusNegative() throws { - assertHomogeneity(inverseTheme.colorBackgroundActionEnabledOnBackgroundStatusNegative) + func testColorsHomogeneityColorActionSelectedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionSelectedOnBackgroundEmphasized) } - func testColorsHomogeneityActionPressed() { - assertHomogeneity(inverseTheme.colorBackgroundActionPressed) + func testColorsHomogeneityColorActionDisabled() throws { + assertHomogeneity(inverseTheme.colorActionDisabled) } - func testColorsHomogeneityActionPressedOnBackgroundEmphasized() { - assertHomogeneity(inverseTheme.colorBackgroundActionPressedOnBackgroundEmphasized) + func testColorsHomogeneityColorActionDisabledOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionDisabledOnBackgroundEmphasized) } - func testColorsHomogeneityActionPressedOnBackgroundStatusExcNegative() { - assertHomogeneity(inverseTheme.colorBackgroundActionPressedOnBackgroundStatusExcNegative) + func testColorsHomogeneityColorActionVisited() throws { + assertHomogeneity(inverseTheme.colorActionVisited) } - func testColorsHomogeneityActionPressedOnBackgroundStatusNegative() { - assertHomogeneity(inverseTheme.colorBackgroundActionPressedOnBackgroundStautsNegative) + func testColorsHomogeneityColorActionVistedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionVistedOnBackgroundEmphasized) } - func testColorsHomogeneityActionDisabled() { - assertHomogeneity(inverseTheme.colorBackgroundActionDisabled) + func testColorsHomogeneityColorActionPrimaryEnabled() throws { + assertHomogeneity(inverseTheme.colorActionPrimaryEnabled) } - func testColorsHomogeneityActionDisabledOnBackgroundEmphasized() { - assertHomogeneity(inverseTheme.colorBackgroundActionDisabledOnBackgroundEmphasized) + func testColorsHomogeneityColorActionPrimaryEnabledOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionPrimaryEnabledOnBackgroundEmphasized) } - func testColorsHomogeneityActionDisabledOnBackgroundStatusExcNegative() { - assertHomogeneity(inverseTheme.colorBackgroundActionDisabledOnBackgroundStatusExcNegative) + func testColorsHomogeneityColorActionPrimaryHover() throws { + assertHomogeneity(inverseTheme.colorActionPrimaryHover) } - func testColorsHomogeneityActionDisabledOnBackgroundStatusNegative() { - assertHomogeneity(inverseTheme.colorBackgroundActionDisabledOnBackgroundStatusNegative) + func testColorsHomogeneityColorActionPrimaryHoverOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionPrimaryHoverOnBackgroundEmphasized) } - func testColorsHomogeneityActionFocus() { - assertHomogeneity(inverseTheme.colorBackgroundActionFocus) + func testColorsHomogeneityColorActionPrimaryPressed() throws { + assertHomogeneity(inverseTheme.colorActionPrimaryPressed) } - func testColorsHomogeneityActionFocusOnBackgroundEmphasized() { - assertHomogeneity(inverseTheme.colorBackgroundActionFocusOnBackgroundEmphasized) + func testColorsHomogeneityColorActionPrimaryPressedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionPrimaryPressedOnBackgroundEmphasized) } - func testColorsHomogeneityActionFocusOnBackgroundStatusExcNegative() { - assertHomogeneity(inverseTheme.colorBackgroundActionFocusOnBackgroundStatusExcNegative) + func testColorsHomogeneityColorActionPrimaryLoading() throws { + assertHomogeneity(inverseTheme.colorActionPrimaryLoading) } - func testColorsHomogeneityActionFocusOnBackgroundStatusNegative() { - assertHomogeneity(inverseTheme.colorBackgroundActionFocusOnBackgroundStatusNegative) + func testColorsHomogeneityColorActionPrimaryLoadingOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionPrimaryLoadingOnBackgroundEmphasized) } - func testColorsHomogeneityBackgroundAlwaysBlack() { - assertHomogeneity(inverseTheme.colorBackgroundAlwaysBlack) + func testColorsHomogeneityColorActionPrimaryFocus() throws { + assertHomogeneity(inverseTheme.colorActionPrimaryFocus) } - func testColorsHomogeneityBackgroundAlwaysWhite() { - assertHomogeneity(inverseTheme.colorBackgroundAlwaysWhite) + func testColorsHomogeneityColorActionPrimaryFocusOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionPrimaryFocusOnBackgroundEmphasized) } - func testColorsHomogeneityBackgroundAlwaysAttractive() { - assertHomogeneity(inverseTheme.colorBackgroundAlwaysAttractive) + func testColorsHomogeneityColorActionSecondaryEnabled() throws { + assertHomogeneity(inverseTheme.colorActionSecondaryEnabled) } - func testColorsHomogeneityBackgroundAlwaysWarning() { - assertHomogeneity(inverseTheme.colorBackgroundAlwaysWarning) + func testColorsHomogeneityColorActionSecondaryEnabledOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionSecondaryEnabledOnBackgroundEmphasized) } - func testColorsHomogeneityBackgroundAlwaysNegative() { - assertHomogeneity(inverseTheme.colorBackgroundAlwaysNegative) + func testColorsHomogeneityColorActionSecondaryHover() throws { + assertHomogeneity(inverseTheme.colorActionSecondaryHover) } - func testColorsHomogeneityBackgroundAlwaysPositive() { - assertHomogeneity(inverseTheme.colorBackgroundAlwaysPositive) + func testColorsHomogeneityColorActionSecondaryHoverOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionSecondaryHoverOnBackgroundEmphasized) } - func testColorsHomogeneityBackgroundAlwaysInformation() { - assertHomogeneity(inverseTheme.colorBackgroundAlwaysInformation) + func testColorsHomogeneityColorActionSecondaryPressed() throws { + assertHomogeneity(inverseTheme.colorActionSecondaryPressed) } - // TODO: #124 - Add missing colorBorderActionEnabled* - // TODO: #124 - Add missing colorBorderActionHover* - // TODO: #124 - Add missing colorBorderActionPressed* - // TODO: #124 - Add missing colorBorderActionDisabled* - // TODO: #124 - Add missing colorBorderActionFocus* - // TODO: #124 - Add missing colorBorderSelectionSelected* - // TODO: #124 - Add missing colorBorderSelectionUnselected* - // TODO: #124 - Add missing colorBorderAlways* - // TODO: #124 - Add missing colorBorderOutside - // TODO: #124 - Add missing colorOnBackgroundStatusAttractive* - // TODO: #124 - Add missing colorOnBackgroundStatusWarning* - // TODO: #124 - Add missing colorOnBackgroundStatusNegative* - // TODO: #124 - Add missing colorOnBackgroundStatusPositive* - // TODO: #124 - Add missing colorOnBackgroundStatusInformation* - // TODO: #124 - Add missing colorOnBackgroundActionEnabled* - // TODO: #124 - Add missing colorOnBackgroundActionHover* - // TODO: #124 - Add missing colorOnBackgroundActionPressed* - // TODO: #124 - Add missing colorOnBackgroundActionDisabled* - // TODO: #124 - Add missing colorOnBackgroundActionFocus* - // TODO: #124 - Add missing colorOnBackgroundActionAlways* - // TODO: #124 - Add missing colorElevation* - // TODO: #124 - Add missing colorDecorativeBrand* - // TODO: #124 - Add missing colorDecorativeNeutral* - // TODO: #124 - Add missing colorDecorativeAccent* - // TODO: #124 - Add missing colorDecorativeSkin* - // TODO: #124 - Add missing colorChart* -} + func testColorsHomogeneityColorActionSecondaryPressedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionSecondaryPressedOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorActionSecondaryLoading() throws { + assertHomogeneity(inverseTheme.colorActionSecondaryLoading) + } + + func testColorsHomogeneityColorActionSecondaryLoadingOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionSecondaryLoadingOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorActionSecondaryFocus() throws { + assertHomogeneity(inverseTheme.colorActionSecondaryFocus) + } + + func testColorsHomogeneityColorActionSecondaryFocusOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionSecondaryFocusOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorActionNegativeEnabled() throws { + assertHomogeneity(inverseTheme.colorActionNegativeEnabled) + } + + func testColorsHomogeneityColorActionNegativeHover() throws { + assertHomogeneity(inverseTheme.colorActionNegativeHover) + } + + func testColorsHomogeneityColorActionNegativePressed() throws { + assertHomogeneity(inverseTheme.colorActionNegativePressed) + } + + func testColorsHomogeneityColorActionNegativeLoading() throws { + assertHomogeneity(inverseTheme.colorActionNegativeLoading) + } + + func testColorsHomogeneityColorActionNegativeFocus() throws { + assertHomogeneity(inverseTheme.colorActionNegativeFocus) + } + + func testColorsHomogeneityColorActionOnBackgroundActionDisabled() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionDisabled) + } + + func testColorsHomogeneityColorActionOnBackgroundActionDisabledOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionDisabledOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorActionOnBackgroundActionNegative() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionNegative) + } + + func testColorsHomogeneityColorActionOnBackgroundActionPrimaryEnabled() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionPrimaryEnabled) + } + + func testColorsHomogeneityColorActionOnBackgroundActionPrimaryEnabledOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionPrimaryEnabledOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorActionOnBackgroundActionPrimaryHover() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionPrimaryHover) + } + + func testColorsHomogeneityColorActionOnBackgroundActionPrimaryHoverOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionPrimaryHoverOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorActionOnBackgroundActionPrimaryPressed() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionPrimaryPressed) + } + + func testColorsHomogeneityColorActionOnBackgroundActionPrimaryPressedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionPrimaryPressedOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorActionOnBackgroundActionPrimaryLoading() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionPrimaryLoading) + } + + func testColorsHomogeneityColorActionOnBackgroundActionPrimaryLoadingOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionPrimaryLoadingOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorActionOnBackgroundActionPrimaryFocus() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionPrimaryFocus) + } + + func testColorsHomogeneityColorActionOnBackgroundActionPrimaryFocusOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorActionOnBackgroundActionPrimaryFocusOnBackgroundEmphasized) + } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorActionOnBackgroundActionSecondaryEnabled() throws { +// assertHomogeneity(inverseTheme.colorActionOnBackgroundActionSecondaryEnabled) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized() throws { +// assertHomogeneity(inverseTheme.colorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorActionOnBackgroundActionSecondaryHover() throws { +// assertHomogeneity(inverseTheme.colorActionOnBackgroundActionSecondaryHover) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized() throws { +// assertHomogeneity(inverseTheme.colorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorActionOnBackgroundActionSecondaryPressed() throws { +// assertHomogeneity(inverseTheme.colorActionOnBackgroundActionSecondaryPressed) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized() throws { +// assertHomogeneity(inverseTheme.colorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorActionOnBackgroundActionSecondaryLoading() throws { +// assertHomogeneity(inverseTheme.colorActionOnBackgroundActionSecondaryLoading) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized() throws { +// assertHomogeneity(inverseTheme.colorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorActionOnBackgroundActionSecondaryFocus() throws { +// assertHomogeneity(inverseTheme.colorActionOnBackgroundActionSecondaryFocus) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized() throws { +// assertHomogeneity(inverseTheme.colorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized) +// } + + // MARK: Semantic token - Colors - Always + + func testColorsHomogeneityColorAlwaysBlack() throws { + assertHomogeneity(inverseTheme.colorAlwaysBlack) + } + + func testColorsHomogeneityColorAlwaysWhite() throws { + assertHomogeneity(inverseTheme.colorAlwaysWhite) + } + + func testColorsHomogeneityColorAlwaysWarning() throws { + assertHomogeneity(inverseTheme.colorAlwaysWarning) + } + + func testColorsHomogeneityColorAlwaysNegative() throws { + assertHomogeneity(inverseTheme.colorAlwaysNegative) + } + + func testColorsHomogeneityColorAlwaysPositive() throws { + assertHomogeneity(inverseTheme.colorAlwaysPositive) + } + + func testColorsHomogeneityColorAlwaysInfo() throws { + assertHomogeneity(inverseTheme.colorAlwaysInfo) + } + + func testColorsHomogeneityColorAlwaysAccent() throws { + assertHomogeneity(inverseTheme.colorAlwaysAccent) + } + + func testColorsHomogeneityColorAlwaysOnBackgroundBlack() throws { + assertHomogeneity(inverseTheme.colorAlwaysOnBackgroundBlack) + } + + func testColorsHomogeneityColorAlwaysOnBackgroundWhite() throws { + assertHomogeneity(inverseTheme.colorAlwaysOnBackgroundWhite) + } + + func testColorsHomogeneityColorAlwaysOnBackgroundWarning() throws { + assertHomogeneity(inverseTheme.colorAlwaysOnBackgroundWarning) + } + + func testColorsHomogeneityColorAlwaysOnBackgroundNegative() throws { + assertHomogeneity(inverseTheme.colorAlwaysOnBackgroundNegative) + } + + func testColorsHomogeneityColorAlwaysOnBackgroundPositive() throws { + assertHomogeneity(inverseTheme.colorAlwaysOnBackgroundPositive) + } + + func testColorsHomogeneityColorAlwaysOnBackgroundInfo() throws { + assertHomogeneity(inverseTheme.colorAlwaysOnBackgroundInfo) + } + + func testColorsHomogeneityColorAlwaysOnBackgroundAccent() throws { + assertHomogeneity(inverseTheme.colorAlwaysOnBackgroundAccent) + } + + // MARK: Semantic token - Colors - Transparent + + func testColorsHomogeneityColorTransparentDefault() throws { + assertHomogeneity(inverseTheme.colorTransparentDefault) + } + + // MARK: Semantic token - Colors - Elevation + + func testColorsHomogeneityColorElevationRaised() throws { + assertHomogeneity(inverseTheme.colorElevationRaised) + } + + func testColorsHomogeneityColorElevationRaisedOnBackgroundSecondary() throws { + assertHomogeneity(inverseTheme.colorElevationRaisedOnBackgroundSecondary) + } + + func testColorsHomogeneityColorElevationRaisedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorElevationRaisedOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorElevationDrag() throws { + assertHomogeneity(inverseTheme.colorElevationDrag) + } + + func testColorsHomogeneityColorElevationDragOnBackgroundSecondary() throws { + assertHomogeneity(inverseTheme.colorElevationDragOnBackgroundSecondary) + } + + func testColorsHomogeneityColorElevationDragOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorElevationDragOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorElevationOverlayDefault() throws { + assertHomogeneity(inverseTheme.colorElevationOverlayDefault) + } + + func testColorsHomogeneityColorElevationOverlayDefaultOnBackgroundSecondary() throws { + assertHomogeneity(inverseTheme.colorElevationOverlayDefaultOnBackgroundSecondary) + } + + func testColorsHomogeneityColorElevationOverlayDefaultOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorElevationOverlayDefaultOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorElevationOverlayEmphasized() throws { + assertHomogeneity(inverseTheme.colorElevationOverlayEmphasized) + } + + func testColorsHomogeneityColorElevationOverlayEmphasizedOnBackgroundSecondary() throws { + assertHomogeneity(inverseTheme.colorElevationOverlayEmphasizedOnBackgroundSecondary) + } + + func testColorsHomogeneityColorElevationOverlayEmphasizedOnBackgroundEmphasized() throws { + assertHomogeneity(inverseTheme.colorElevationOverlayEmphasizedOnBackgroundEmphasized) + } + + func testColorsHomogeneityColorElevationModal() throws { + assertHomogeneity(inverseTheme.colorElevationModal) + } + + // MARK: Semantic token - Colors - Decorative + + func testColorsHomogeneityColorDecorativeBrandPrimary() throws { + assertHomogeneity(inverseTheme.colorDecorativeBrandPrimary) + } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorDecorativeBrandPrimaryMuted() throws { +// assertHomogeneity(inverseTheme.colorDecorativeBrandPrimaryMuted) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorDecorativeBrandPrimaryEmphasized() throws { +// assertHomogeneity(inverseTheme.colorDecorativeBrandPrimaryEmphasized) +// } + + func testColorsHomogeneityColorDecorativeSecondary() throws { + assertHomogeneity(inverseTheme.colorDecorativeSecondary) + } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorDecorativeSecondaryMuted() throws { +// assertHomogeneity(inverseTheme.colorDecorativeSecondaryMuted) +// } + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorDecorativeSecondaryEmphasized() throws { +// assertHomogeneity(inverseTheme.colorDecorativeSecondaryEmphasized) +// } + + func testColorsHomogeneityColorDecorativeBrandTertiary() throws { + assertHomogeneity(inverseTheme.colorDecorativeBrandTertiary) + } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorDecorativeBrandTertiaryMuted() throws { +// assertHomogeneity(inverseTheme.colorDecorativeBrandTertiaryMuted) +// } + + // In InverseTheme token not implemented yet +// func testColorsHomogeneityColorDecorativeBrandTertiaryEmphasized() throws { +// assertHomogeneity(inverseTheme.colorDecorativeBrandTertiaryEmphasized) +// } + + func testColorsHomogeneityColorDecorativeNeutralMuted() throws { + assertHomogeneity(inverseTheme.colorDecorativeNeutralMuted) + } + + func testColorsHomogeneityColorDecorativeNeutralDefault() throws { + assertHomogeneity(inverseTheme.colorDecorativeNeutralDefault) + } + + func testColorsHomogeneityColorDecorativeNeutralEmphasized() throws { + assertHomogeneity(inverseTheme.colorDecorativeNeutralEmphasized) + } + + func testColorsHomogeneityColorDecorativeAccent1Muted() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent1Muted) + } + + func testColorsHomogeneityColorDecorativeAccent1Default() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent1Default) + } + + func testColorsHomogeneityColorDecorativeAccent1Emphasized() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent1Emphasized) + } + + func testColorsHomogeneityColorDecorativeAccent2Muted() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent2Muted) + } + + func testColorsHomogeneityColorDecorativeAccent2Default() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent2Default) + } + + func testColorsHomogeneityColorDecorativeAccent2Emphasized() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent2Emphasized) + } + + func testColorsHomogeneityColorDecorativeAccent3Muted() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent3Muted) + } + + func testColorsHomogeneityColorDecorativeAccent3Default() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent3Default) + } + + func testColorsHomogeneityColorDecorativeAccent3Emphasized() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent3Emphasized) + } + + func testColorsHomogeneityColorDecorativeAccent4Muted() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent4Muted) + } + + func testColorsHomogeneityColorDecorativeAccent4Default() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent4Default) + } + + func testColorsHomogeneityColorDecorativeAccent4Emphasized() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent4Emphasized) + } + + func testColorsHomogeneityColorDecorativeAccent5Muted() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent5Muted) + } + + func testColorsHomogeneityColorDecorativeAccent5Default() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent5Default) + } + + func testColorsHomogeneityColorDecorativeAccent5Emphasized() throws { + assertHomogeneity(inverseTheme.colorDecorativeAccent5Emphasized) + } + + func testColorsHomogeneityColorDecorativeSkintTint100() throws { + assertHomogeneity(inverseTheme.colorDecorativeSkintTint100) + } + + func testColorsHomogeneityColorDecorativeSkintTint200() throws { + assertHomogeneity(inverseTheme.colorDecorativeSkintTint200) + } + + func testColorsHomogeneityColorDecorativeSkintTint300() throws { + assertHomogeneity(inverseTheme.colorDecorativeSkintTint300) + } + + func testColorsHomogeneityColorDecorativeSkintTint400() throws { + assertHomogeneity(inverseTheme.colorDecorativeSkintTint400) + } + + func testColorsHomogeneityColorDecorativeSkintTint500() throws { + assertHomogeneity(inverseTheme.colorDecorativeSkintTint500) + } + + func testColorsHomogeneityColorDecorativeSkintTint600() throws { + assertHomogeneity(inverseTheme.colorDecorativeSkintTint600) + } + + func testColorsHomogeneityColorDecorativeSkintTint700() throws { + assertHomogeneity(inverseTheme.colorDecorativeSkintTint700) + } + + func testColorsHomogeneityColorDecorativeSkintTint800() throws { + assertHomogeneity(inverseTheme.colorDecorativeSkintTint800) + } + + func testColorsHomogeneityColorDecorativeSkintTint900() throws { + assertHomogeneity(inverseTheme.colorDecorativeSkintTint900) + } + + // MARK: Semantic token - Colors - Chart + + func testColorsHomogeneityColorChartCategoricalNeutral() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalNeutral) + } + + func testColorsHomogeneityColorChartCategoricalBrand() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalBrand) + } + + func testColorsHomogeneityColorChartCategoricalPositive() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalPositive) + } + + func testColorsHomogeneityColorChartCategoricalNegative() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalNegative) + } + + func testColorsHomogeneityColorChartCategoricalTier1() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalTier1) + } + + func testColorsHomogeneityColorChartCategoricalTier2() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalTier2) + } + + func testColorsHomogeneityColorChartCategoricalTier3() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalTier3) + } + + func testColorsHomogeneityColorChartCategoricalTier4() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalTier4) + } + + func testColorsHomogeneityColorChartCategoricalTier5() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalTier5) + } + + func testColorsHomogeneityColorChartCategoricalTier6() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalTier6) + } + + func testColorsHomogeneityColorChartCategoricalTier7() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalTier7) + } + + func testColorsHomogeneityColorChartCategoricalTier8() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalTier8) + } + + func testColorsHomogeneityColorChartCategoricalTier9() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalTier9) + } + + func testColorsHomogeneityColorChartCategoricalTier10() throws { + assertHomogeneity(inverseTheme.colorChartCategoricalTier10) + } + + func testColorsHomogeneityColorChartSequentialAccent1Tint100() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent1Tint100) + } + + func testColorsHomogeneityColorChartSequentialAccent1Tint200() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent1Tint200) + } + + func testColorsHomogeneityColorChartSequentialAccent1Tint300() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent1Tint300) + } + + func testColorsHomogeneityColorChartSequentialAccent1Tint400() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent1Tint400) + } + + func testColorsHomogeneityColorChartSequentialAccent1Tint500() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent1Tint500) + } + + func testColorsHomogeneityColorChartSequentialAccent1Tint600() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent1Tint600) + } + + func testColorsHomogeneityColorChartSequentialAccent1Tint700() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent1Tint700) + } + + func testColorsHomogeneityColorChartSequentialAccent1Tint800() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent1Tint800) + } + + func testColorsHomogeneityColorChartSequentialAccent1Tint900() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent1Tint900) + } + + func testColorsHomogeneityColorChartSequentialAccent2Tint100() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent2Tint100) + } + + func testColorsHomogeneityColorChartSequentialAccent2Tint200() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent2Tint200) + } + + func testColorsHomogeneityColorChartSequentialAccent2Tint300() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent2Tint300) + } + + func testColorsHomogeneityColorChartSequentialAccent2Tint400() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent2Tint400) + } + + func testColorsHomogeneityColorChartSequentialAccent2Tint500() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent2Tint500) + } + + func testColorsHomogeneityColorChartSequentialAccent2Tint600() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent2Tint600) + } + + func testColorsHomogeneityColorChartSequentialAccent2Tint700() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent2Tint700) + } + + func testColorsHomogeneityColorChartSequentialAccent2Tint800() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent2Tint800) + } + + func testColorsHomogeneityColorChartSequentialAccent2Tint900() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent2Tint900) + } + + func testColorsHomogeneityColorChartSequentialAccent3Tint100() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent3Tint100) + } + + func testColorsHomogeneityColorChartSequentialAccent3Tint200() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent3Tint200) + } + + func testColorsHomogeneityColorChartSequentialAccent3Tint300() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent3Tint300) + } + + func testColorsHomogeneityColorChartSequentialAccent3Tint400() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent3Tint400) + } + + func testColorsHomogeneityColorChartSequentialAccent3Tint500() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent3Tint500) + } + + func testColorsHomogeneityColorChartSequentialAccent3Tint600() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent3Tint600) + } + + func testColorsHomogeneityColorChartSequentialAccent3Tint700() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent3Tint700) + } + + func testColorsHomogeneityColorChartSequentialAccent3Tint800() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent3Tint800) + } + + func testColorsHomogeneityColorChartSequentialAccent3Tint900() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent3Tint900) + } + + func testColorsHomogeneityColorChartSequentialAccent4Tint100() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent4Tint100) + } + + func testColorsHomogeneityColorChartSequentialAccent4Tint200() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent4Tint200) + } + + func testColorsHomogeneityColorChartSequentialAccent4Tint300() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent4Tint300) + } + + func testColorsHomogeneityColorChartSequentialAccent4Tint400() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent4Tint400) + } + + func testColorsHomogeneityColorChartSequentialAccent4Tint500() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent4Tint500) + } + + func testColorsHomogeneityColorChartSequentialAccent4Tint600() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent4Tint600) + } + + func testColorsHomogeneityColorChartSequentialAccent4Tint700() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent4Tint700) + } + + func testColorsHomogeneityColorChartSequentialAccent4Tint800() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent4Tint800) + } + + func testColorsHomogeneityColorChartSequentialAccent4Tint900() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent4Tint900) + } + + func testColorsHomogeneityColorChartSequentialAccent5Tint100() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent5Tint100) + } + + func testColorsHomogeneityColorChartSequentialAccent5Tint200() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent5Tint200) + } + + func testColorsHomogeneityColorChartSequentialAccent5Tint300() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent5Tint300) + } + + func testColorsHomogeneityColorChartSequentialAccent5Tint400() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent5Tint400) + } + + func testColorsHomogeneityColorChartSequentialAccent5Tint500() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent5Tint500) + } + + func testColorsHomogeneityColorChartSequentialAccent5Tint600() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent5Tint600) + } + + func testColorsHomogeneityColorChartSequentialAccent5Tint700() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent5Tint700) + } + + func testColorsHomogeneityColorChartSequentialAccent5Tint800() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent5Tint800) + } + + func testColorsHomogeneityColorChartSequentialAccent5Tint900() throws { + assertHomogeneity(inverseTheme.colorChartSequentialAccent5Tint900) + } +} // swiftlint:enable required_deinit // swiftlint:enable implicitly_unwrapped_optional -// swiftlint:enable force_unwrapping +// swiftlint:enable type_body_length diff --git a/OUDS/Core/Themes/Orange/Sources/OrangeTheme+SemanticColorTokens.swift b/OUDS/Core/Themes/Orange/Sources/OrangeTheme+SemanticColorTokens.swift index 33b858bd5a..591d62c7ad 100644 --- a/OUDS/Core/Themes/Orange/Sources/OrangeTheme+SemanticColorTokens.swift +++ b/OUDS/Core/Themes/Orange/Sources/OrangeTheme+SemanticColorTokens.swift @@ -17,17 +17,72 @@ import OUDSTokensSemantic // ଘ( ・ω・)_/゚・:*:・。☆ // [File to generate with the tokenator] -// TODO: Check if we can get rid of alias colors tokens which are optional -// swiftlint:disable implicitly_unwrapped_optional +// swiftlint:disable line_length -/// Overrides some colors using values defined in extension of `ColorRawTokens` in this current module. +/// Overrides some color tokens using values available in `OrangeBrandColorRawTokens` extension OrangeTheme { - override public var sysColorBrandPrimaryLow: ColorAliasSemanticToken! { OrangeBrandColorRawTokens.colorOrange500 } - override public var sysColorBrandPrimaryDefault: ColorAliasSemanticToken! { OrangeBrandColorRawTokens.colorOrange550 } + // MARK: Semantic token - Colors - Background - override public var sysColorBrandAttractiveLowest: ColorAliasSemanticToken! { OrangeBrandColorRawTokens.colorWarmGray100 } - override public var sysColorBrandAttractiveHighest: ColorAliasSemanticToken! { OrangeBrandColorRawTokens.colorWarmGray900 } + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorBackgroundTertiary: ColorSemanticToken { MultipleColorTokens(light: OrangeBrandColorRawTokens.colorWarmGray100, dark: OrangeBrandColorRawTokens.colorWarmGray900) } + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorBackgroundBrandPrimary: ColorSemanticToken { MultipleColorTokens(light: OrangeBrandColorRawTokens.colorOrange550, dark: OrangeBrandColorRawTokens.colorOrange500) } + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorBackgroundStatusAccentMuted: ColorSemanticToken { MultipleColorTokens(light: OrangeBrandColorRawTokens.colorWarmGray100, dark: OrangeBrandColorRawTokens.colorWarmGray900) } + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorBackgroundStatusAccentMutedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorWarmGray900) } + + // MARK: Semantic token - Colors - Content + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorContentBrandPrimary: ColorSemanticToken { MultipleColorTokens(light: OrangeBrandColorRawTokens.colorOrange550, dark: OrangeBrandColorRawTokens.colorOrange500) } + + // MARK: Semantic token - Colors - Border + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorBorderBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorBorderBrandPrimary: ColorSemanticToken { MultipleColorTokens(light: OrangeBrandColorRawTokens.colorOrange550, dark: OrangeBrandColorRawTokens.colorOrange500) } + + // MARK: Semantic token - Colors - Action + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorActionSelected: ColorSemanticToken { MultipleColorTokens(light: OrangeBrandColorRawTokens.colorOrange550, dark: OrangeBrandColorRawTokens.colorOrange500) } + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorActionSelectedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorActionPrimaryPressed: ColorSemanticToken { MultipleColorTokens(light: OrangeBrandColorRawTokens.colorOrange550, dark: OrangeBrandColorRawTokens.colorOrange500) } + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorActionPrimaryPressedOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorActionPrimaryLoading: ColorSemanticToken { MultipleColorTokens(light: OrangeBrandColorRawTokens.colorOrange550, dark: OrangeBrandColorRawTokens.colorOrange500) } + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorActionPrimaryLoadingOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorActionPrimaryFocus: ColorSemanticToken { MultipleColorTokens(light: ColorRawTokens.colorFunctionalDarkGray400, dark: ColorRawTokens.colorFunctionalLightGray400) } + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorActionPrimaryFocusOnBackgroundEmphasized: ColorSemanticToken { MultipleColorTokens(ColorRawTokens.colorFunctionalLightGray400) } + + // MARK: Semantic token - Colors - Elevation + + // NOTE: Defined here because use values available only in this Orange theme, open for InverseTheme overriding + override open var colorDecorativeBrandPrimary: ColorSemanticToken { MultipleColorTokens(OrangeBrandColorRawTokens.colorOrange500) } + + // MARK: Semantic token - Colors - Chart + + override open var colorChartCategoricalBrand: ColorSemanticToken { MultipleColorTokens(light: OrangeBrandColorRawTokens.colorOrange550, dark: OrangeBrandColorRawTokens.colorOrange500) } } -// swiftlint:enable implicitly_unwrapped_optional +// swiftlint:enable line_length diff --git a/OUDS/Core/Tokens/RawTokens/Tests/ColorRawTokensTests.swift b/OUDS/Core/Tokens/RawTokens/Tests/ColorRawTokensTests.swift index 87d396ebd0..f9d9980d1b 100644 --- a/OUDS/Core/Tokens/RawTokens/Tests/ColorRawTokensTests.swift +++ b/OUDS/Core/Tokens/RawTokens/Tests/ColorRawTokensTests.swift @@ -17,6 +17,7 @@ import XCTest // swiftlint:disable type_body_length // swiftlint:disable required_deinit +// swiftlint:disable file_length /// The aim of this tests class is to look for regressions in **color raw tokens**. /// Because these values will be at least generated through an external tool, is it not relevant to test each token values. diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/TypeAliases/ColorSemanticTokens+Aliases.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/TypeAliases/ColorSemanticTokens+Aliases.swift index 21f79d0022..1f445e90de 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Sources/TypeAliases/ColorSemanticTokens+Aliases.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/TypeAliases/ColorSemanticTokens+Aliases.swift @@ -15,6 +15,3 @@ import OUDSTokensRaw /// Basically a semantic color token, which can be either a functional or a decorative token, is a `String`, to keep grammar clean and clear with design system grammar. public typealias ColorSemanticToken = MultipleColorTokens - -/// The global design system tool defines aliases of semantic colors token as semantic color tokens, to keep grammar clean and clear with design system grammar. -public typealias ColorAliasSemanticToken = ColorRawToken diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ColorSemanticTokens.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ColorSemanticTokens.swift index 88532eafa5..85b706e3fe 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ColorSemanticTokens.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ColorSemanticTokens.swift @@ -16,6 +16,8 @@ // WARNING: Not synchronized anymore with the Figjam // swiftlint:disable missing_docs +// swiftlint:disable identifier_name +// swiftlint:disable file_length /// This is a group of semantic tokens for **colors**. /// It defines all `ColorSemanticToken` and `ColorAliasSemanticToken` a theme must have. @@ -25,331 +27,526 @@ /// In the future this file should be generated by a parser converting Figma JSON to Swift code. public protocol ColorSemanticTokens { - // MARK: Semantic token - Colors - Alias - Primary - - var sysColorBrandPrimaryLowest: ColorAliasSemanticToken? { get } - var sysColorBrandPrimaryLower: ColorAliasSemanticToken? { get } - var sysColorBrandPrimaryLow: ColorAliasSemanticToken? { get } - var sysColorBrandPrimaryDefault: ColorAliasSemanticToken? { get } - var sysColorBrandPrimaryHigh: ColorAliasSemanticToken? { get } - var sysColorBrandPrimaryHigher: ColorAliasSemanticToken? { get } - var sysColorBrandPrimaryHighest: ColorAliasSemanticToken? { get } - - // MARK: Semantic token - Colors - Alias - Secondary - - var sysColorBrandSecondaryLowest: ColorAliasSemanticToken? { get } - var sysColorBrandSecondaryLower: ColorAliasSemanticToken? { get } - var sysColorBrandSecondaryLow: ColorAliasSemanticToken? { get } - var sysColorBrandSecondaryDefault: ColorAliasSemanticToken? { get } - var sysColorBrandSecondaryHigh: ColorAliasSemanticToken? { get } - var sysColorBrandSecondaryHigher: ColorAliasSemanticToken? { get } - var sysColorBrandSecondaryHighest: ColorAliasSemanticToken? { get } - - // MARK: Semantic token - Colors - Alias - Tertiary - - var sysColorBrandTertiaryLowest: ColorAliasSemanticToken? { get } - var sysColorBrandTertiaryLower: ColorAliasSemanticToken? { get } - var sysColorBrandTertiaryLow: ColorAliasSemanticToken? { get } - var sysColorBrandTertiaryDefault: ColorAliasSemanticToken? { get } - var sysColorBrandTertiaryHigh: ColorAliasSemanticToken? { get } - var sysColorBrandTertiaryHigher: ColorAliasSemanticToken? { get } - var sysColorBrandTertiaryHighest: ColorAliasSemanticToken? { get } - - // MARK: Semantic token - Colors - Alias - Neutral - Muted - - var sysColorBrandNeutralMutedWhite: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralMutedLowest: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralMutedLower: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralMutedLow: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralMutedMedium: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralMutedHigh: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralMutedHigher: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralMutedHighest: ColorAliasSemanticToken? { get } - - // MARK: Semantic token - Colors - Alias - Neutral - Emphasized - - var sysColorBrandNeutralEmphasizedLowest: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralEmphasizedLower: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralEmphasizedLow: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralEmphasizedMedium: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralEmphasizedHigh: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralEmphasizedHigher: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralEmphasizedHighest: ColorAliasSemanticToken? { get } - var sysColorBrandNeutralEmphasizedBlack: ColorAliasSemanticToken? { get } - - // MARK: Semantic token - Colors - Alias - Positive - - var sysColorBrandPositiveLowest: ColorAliasSemanticToken? { get } - var sysColorBrandPositiveLower: ColorAliasSemanticToken? { get } - var sysColorBrandPositiveLow: ColorAliasSemanticToken? { get } - var sysColorBrandPositiveDefault: ColorAliasSemanticToken? { get } - var sysColorBrandPositiveHigh: ColorAliasSemanticToken? { get } - var sysColorBrandPositiveHigher: ColorAliasSemanticToken? { get } - var sysColorBrandPositiveHighest: ColorAliasSemanticToken? { get } - - // MARK: Semantic token - Colors - Alias - Information - - var sysColorBrandInformationLowest: ColorAliasSemanticToken? { get } - var sysColorBrandInformationLower: ColorAliasSemanticToken? { get } - var sysColorBrandInformationLow: ColorAliasSemanticToken? { get } - var sysColorBrandInformationDefault: ColorAliasSemanticToken? { get } - var sysColorBrandInformationHigh: ColorAliasSemanticToken? { get } - var sysColorBrandInformationHigher: ColorAliasSemanticToken? { get } - var sysColorBrandInformationHighest: ColorAliasSemanticToken? { get } - - // MARK: Semantic token - Colors - Alias - Warning - - var sysColorBrandWarningLowest: ColorAliasSemanticToken? { get } - var sysColorBrandWarningLower: ColorAliasSemanticToken? { get } - var sysColorBrandWarningLow: ColorAliasSemanticToken? { get } - var sysColorBrandWarningDefault: ColorAliasSemanticToken? { get } - var sysColorBrandWarningHigh: ColorAliasSemanticToken? { get } - var sysColorBrandWarningHigher: ColorAliasSemanticToken? { get } - var sysColorBrandWarningHighest: ColorAliasSemanticToken? { get } - - // MARK: Semantic token - Colors - Alias - Negative - - var sysColorBrandNegativeLowest: ColorAliasSemanticToken? { get } - var sysColorBrandNegativeLower: ColorAliasSemanticToken? { get } - var sysColorBrandNegativeLow: ColorAliasSemanticToken? { get } - var sysColorBrandNegativeDefault: ColorAliasSemanticToken? { get } - var sysColorBrandNegativeHigh: ColorAliasSemanticToken? { get } - var sysColorBrandNegativeHigher: ColorAliasSemanticToken? { get } - var sysColorBrandNegativeHighest: ColorAliasSemanticToken? { get } - - // MARK: Semantic token - Colors - Alias - Attractive - - var sysColorBrandAttractiveLowest: ColorAliasSemanticToken? { get } - var sysColorBrandAttractiveLower: ColorAliasSemanticToken? { get } - var sysColorBrandAttractiveLow: ColorAliasSemanticToken? { get } - var sysColorBrandAttractiveMedium: ColorAliasSemanticToken? { get } - var sysColorBrandAttractiveHigh: ColorAliasSemanticToken? { get } - var sysColorBrandAttractiveHigher: ColorAliasSemanticToken? { get } - var sysColorBrandAttractiveHighest: ColorAliasSemanticToken? { get } - // MARK: Semantic token - Colors - Background - var colorBackgroundDefaultPrimary: ColorSemanticToken? { get } + var colorBackgroundPrimary: ColorSemanticToken { get } - var colorBackgroundDefaultSecondary: ColorSemanticToken? { get } + var colorBackgroundSecondary: ColorSemanticToken { get } - var colorBackgroundDefaultTertiary: ColorSemanticToken? { get } + var colorBackgroundTertiary: ColorSemanticToken { get } - var colorBackgroundEmphasizedPrimary: ColorSemanticToken? { get } + var colorBackgroundEmphasized: ColorSemanticToken { get } - var colorBackgroundBrandPrimary: ColorSemanticToken? { get } + var colorBackgroundBrandPrimary: ColorSemanticToken { get } - var colorBackgroundBrandSecondary: ColorSemanticToken? { get } + var colorBackgroundBrandSecondary: ColorSemanticToken { get } - var colorBackgroundBrandTertiary: ColorSemanticToken? { get } + var colorBackgroundBrandTertiary: ColorSemanticToken { get } - var colorBackgroundStatusNeutral: ColorSemanticToken? { get } + var colorBackgroundStatusNeutral: ColorSemanticToken { get } - var colorBackgroundStatusNeutralOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorBackgroundStatusNeutralOnBackgroundEmphasized: ColorSemanticToken { get } - var colorBackgroundStatusAttractiveMuted: ColorSemanticToken? { get } + var colorBackgroundStatusPositiveMuted: ColorSemanticToken { get } - var colorBackgroundStatusAttractiveEmphasized: ColorSemanticToken? { get } + var colorBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken { get } - var colorBackgroundStatusWarningMuted: ColorSemanticToken? { get } + var colorBackgroundStatusPositiveEmphasized: ColorSemanticToken { get } - var colorBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorBackgroundStatusInfoMuted: ColorSemanticToken { get } - var colorBackgroundStatusWarningEmphasized: ColorSemanticToken? { get } + var colorBackgroundStatusInfoMutedOnBackgroundEmphasized: ColorSemanticToken { get } - var colorBackgroundStatusNegativeMuted: ColorSemanticToken? { get } + var colorBackgroundStatusInfoEmphasized: ColorSemanticToken { get } - var colorBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorBackgroundStatusWarningMuted: ColorSemanticToken { get } - var colorBackgroundStatusNegativeEmphasized: ColorSemanticToken? { get } + var colorBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken { get } - var colorBackgroundStatusPositiveMuted: ColorSemanticToken? { get } + var colorBackgroundStatusWarningEmphasized: ColorSemanticToken { get } - var colorBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorBackgroundStatusNegativeMuted: ColorSemanticToken { get } - var colorBackgroundStatusPositiveEmphasized: ColorSemanticToken? { get } + var colorBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken { get } - var colorBackgroundStatusInformationMuted: ColorSemanticToken? { get } + var colorBackgroundStatusNegativeEmphasized: ColorSemanticToken { get } - var colorBackgroundStatusInformationMutedOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorBackgroundStatusAccentMuted: ColorSemanticToken { get } - var colorBackgroundStatusInformationEmphasized: ColorSemanticToken? { get } + var colorBackgroundStatusAccentMutedOnBackgroundEmphasized: ColorSemanticToken { get } - // MARK: Semantic token - Colors - Background - Action + var colorBackgroundStatusAccentEmphasized: ColorSemanticToken { get } - var colorBackgroundActionEnabled: ColorSemanticToken? { get } + // MARK: Semantic token - Colors - Content - Status - var colorBackgroundActionEnabledOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorContentDefault: ColorSemanticToken { get } - var colorBackgroundActionEnabledOnBackgroundStatusExcNegative: ColorSemanticToken? { get } + var colorContentContentDefaultOnBackgroundEmphasized: ColorSemanticToken { get } - var colorBackgroundActionEnabledOnBackgroundStatusNegative: ColorSemanticToken? { get } + var colorContentMuted: ColorSemanticToken { get } - var colorBackgroundActionPressed: ColorSemanticToken? { get } + var colorContentContentMutedOnBackgroundEmphasized: ColorSemanticToken { get } - var colorBackgroundActionPressedOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorContentDisabled: ColorSemanticToken { get } - var colorBackgroundActionPressedOnBackgroundStatusExcNegative: ColorSemanticToken? { get } + var colorContentContentDisabledOnBackgroundEmphasized: ColorSemanticToken { get } - var colorBackgroundActionPressedOnBackgroundStautsNegative: ColorSemanticToken? { get } + var colorContentBrandPrimary: ColorSemanticToken { get } - var colorBackgroundActionDisabled: ColorSemanticToken? { get } + var colorContentBrandSecondary: ColorSemanticToken { get } - var colorBackgroundActionDisabledOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorContentBrandTertiary: ColorSemanticToken { get } - var colorBackgroundActionDisabledOnBackgroundStatusExcNegative: ColorSemanticToken? { get } + var colorContentStatusPositive: ColorSemanticToken { get } - var colorBackgroundActionDisabledOnBackgroundStatusNegative: ColorSemanticToken? { get } + var colorContentStatusInfo: ColorSemanticToken { get } - var colorBackgroundActionFocus: ColorSemanticToken? { get } + var colorContentStatusWarning: ColorSemanticToken { get } - var colorBackgroundActionFocusOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorContentStatusNegative: ColorSemanticToken { get } - var colorBackgroundActionFocusOnBackgroundStatusExcNegative: ColorSemanticToken? { get } + var colorContentStatusAccent: ColorSemanticToken { get } - var colorBackgroundActionFocusOnBackgroundStatusNegative: ColorSemanticToken? { get } + // MARK: Semantic token - Colors - Content - On Background - // MARK: Semantic token - Colors - Background - Always + var colorContentOnBackgroundPrimary: ColorSemanticToken { get } - var colorBackgroundAlwaysBlack: ColorSemanticToken? { get } + var colorContentOnBackgroundSecondary: ColorSemanticToken { get } - var colorBackgroundAlwaysWhite: ColorSemanticToken? { get } + var colorContentOnBackgroundTertiary: ColorSemanticToken { get } - var colorBackgroundAlwaysAttractive: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusPositiveMuted: ColorSemanticToken { get } - var colorBackgroundAlwaysWarning: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusPositiveMutedOnBackgroundEmphasized: ColorSemanticToken { get } - var colorBackgroundAlwaysNegative: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusPositiveEmphasized: ColorSemanticToken { get } - var colorBackgroundAlwaysPositive: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusInfoMuted: ColorSemanticToken { get } - var colorBackgroundAlwaysInformation: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusInfoMutedOnBackgroundEmphasized: ColorSemanticToken { get } - // MARK: Semantic token - Colors - Background - Transparent + var colorContentOnBackgroundStatusInfoEmphasized: ColorSemanticToken { get } - var colorBackgroundTransparentDefault: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusWarningMuted: ColorSemanticToken { get } - // MARK: Semantic token - Colors - Content + var colorContentOnBackgroundStatusWarningMutedOnBackgroundEmphasized: ColorSemanticToken { get } - var colorContentDefault: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusWarningEmphasized: ColorSemanticToken { get } - var colorContentDefaultOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusNegativeMuted: ColorSemanticToken { get } - var colorContentDefaultOnBackgroundBrandPrimary: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusNegativeMutedOnBackgroundEmphasized: ColorSemanticToken { get } - var colorContentMuted: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusNegativeEmphasized: ColorSemanticToken { get } - var colorContentMutedOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusAccentMuted: ColorSemanticToken { get } - var colorContentDisabled: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusAccentMutedOnBackgroundEmphasized: ColorSemanticToken { get } - var colorContentDisabledOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorContentOnBackgroundStatusAccentedEmphasized: ColorSemanticToken { get } - var colorContentBrandPrimary: ColorSemanticToken? { get } + // MARK: Semantic token - Colors - Border - var colorContentBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorBorderDefault: ColorSemanticToken { get } - var colorContentBrandSecondary: ColorSemanticToken? { get } + var colorBorderDefaultOnBackgroundEmphasized: ColorSemanticToken { get } - var colorContentBrandTertiary: ColorSemanticToken? { get } + var colorBorderEmphasized: ColorSemanticToken { get } - var colorContentStatusAttractive: ColorSemanticToken? { get } + var colorBorderEmphasizedOnBackgroundEmphasized: ColorSemanticToken { get } - var colorContentStatusNegative: ColorSemanticToken? { get } + var colorBorderFocus: ColorSemanticToken { get } - var colorContentStatusPositive: ColorSemanticToken? { get } + var colorBorderBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken { get } - var colorContentStatusInformation: ColorSemanticToken? { get } + var colorBorderBrandPrimary: ColorSemanticToken { get } - var colorContentActionEnabled: ColorSemanticToken? { get } + var colorBorderBrandSecondary: ColorSemanticToken { get } - var colorContentActionEnabledOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorBorderBrandTertiary: ColorSemanticToken { get } - var colorContentActionEnabledOnBackgroundStatusExcNegative: ColorSemanticToken? { get } + var colorBorderStatusPositive: ColorSemanticToken { get } - var colorContentActionEnabledOnBackgroundStatusNegative: ColorSemanticToken? { get } + var colorBorderStatusInfo: ColorSemanticToken { get } - var colorContentActionHover: ColorSemanticToken? { get } + var colorBorderStatusWarning: ColorSemanticToken { get } - var colorContentActionHoverOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorBorderStatusNegative: ColorSemanticToken { get } - var colorContentActionHoverOnBackgroundStatusExcNegative: ColorSemanticToken? { get } + var colorBorderStatusAccent: ColorSemanticToken { get } - var colorContentActionHoverOnBackgroundStatusNegative: ColorSemanticToken? { get } + var colorBorderOnBackgroundBrandPrimary: ColorSemanticToken { get } - var colorContentTransparentDefault: ColorSemanticToken? { get } + var colorBorderOnBackgroundBrandSecondary: ColorSemanticToken { get } - // TODO: #124 - Add missing colorContentActionPressed* tokens - // TODO: #124 - Add missing colorContentActionDisabled* tokens - // TODO: #124 - Add missing colorContentActionFocus* tokens - // TODO: #124 - Add missing colorContentVisited* tokens - // TODO: #124 - Add missing colorContentActionSelectionSelected* tokens - // TODO: #124 - Add missing colorContentActionSelectionHover* tokens - // TODO: #124 - Add missing colorContentActionSelectionPressed* tokens - // TODO: #124 - Add missing colorContentActionSelectionSelectedFocus* tokens - // TODO: #124 - Add missing colorContentActionSelectionUnselected* tokens - // TODO: #124 - Add missing colorContentActionAlways* tokens + var colorBorderOnBackgroundBrandTertiary: ColorSemanticToken { get } - // MARK: Semantic token - Colors - Border + // MARK: Semantic token - Colors - Action + + var colorActionSelected: ColorSemanticToken { get } + + var colorActionSelectedOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionDisabled: ColorSemanticToken { get } + + var colorActionDisabledOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionVisited: ColorSemanticToken { get } + + var colorActionVistedOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionPrimaryEnabled: ColorSemanticToken { get } + + var colorActionPrimaryEnabledOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionPrimaryHover: ColorSemanticToken { get } + + var colorActionPrimaryHoverOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionPrimaryPressed: ColorSemanticToken { get } + + var colorActionPrimaryPressedOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionPrimaryLoading: ColorSemanticToken { get } + + var colorActionPrimaryLoadingOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionPrimaryFocus: ColorSemanticToken { get } + + var colorActionPrimaryFocusOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionSecondaryEnabled: ColorSemanticToken { get } + + var colorActionSecondaryEnabledOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionSecondaryHover: ColorSemanticToken { get } + + var colorActionSecondaryHoverOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionSecondaryPressed: ColorSemanticToken { get } + + var colorActionSecondaryPressedOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionSecondaryLoading: ColorSemanticToken { get } + + var colorActionSecondaryLoadingOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionSecondaryFocus: ColorSemanticToken { get } + + var colorActionSecondaryFocusOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionNegativeEnabled: ColorSemanticToken { get } + + var colorActionNegativeHover: ColorSemanticToken { get } + + var colorActionNegativePressed: ColorSemanticToken { get } + + var colorActionNegativeLoading: ColorSemanticToken { get } + + var colorActionNegativeFocus: ColorSemanticToken { get } + + var colorActionOnBackgroundActionDisabled: ColorSemanticToken { get } + + var colorActionOnBackgroundActionDisabledOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionOnBackgroundActionNegative: ColorSemanticToken { get } + + var colorActionOnBackgroundActionPrimaryEnabled: ColorSemanticToken { get } + + var colorActionOnBackgroundActionPrimaryEnabledOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionOnBackgroundActionPrimaryHover: ColorSemanticToken { get } + + var colorActionOnBackgroundActionPrimaryHoverOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionOnBackgroundActionPrimaryPressed: ColorSemanticToken { get } + + var colorActionOnBackgroundActionPrimaryPressedOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionOnBackgroundActionPrimaryLoading: ColorSemanticToken { get } + + var colorActionOnBackgroundActionPrimaryLoadingOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionOnBackgroundActionPrimaryFocus: ColorSemanticToken { get } + + var colorActionOnBackgroundActionPrimaryFocusOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionOnBackgroundActionSecondaryEnabled: ColorSemanticToken { get } + + var colorActionOnBackgroundActionSecondaryEnabledOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionOnBackgroundActionSecondaryHover: ColorSemanticToken { get } + + var colorActionOnBackgroundActionSecondaryHoverOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionOnBackgroundActionSecondaryPressed: ColorSemanticToken { get } + + var colorActionOnBackgroundActionSecondaryPressedOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionOnBackgroundActionSecondaryLoading: ColorSemanticToken { get } + + var colorActionOnBackgroundActionSecondaryLoadingOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorActionOnBackgroundActionSecondaryFocus: ColorSemanticToken { get } + + var colorActionOnBackgroundActionSecondaryFocusOnBackgroundEmphasized: ColorSemanticToken { get } + + // MARK: Semantic token - Colors - Always + + var colorAlwaysBlack: ColorSemanticToken { get } + + var colorAlwaysWhite: ColorSemanticToken { get } + + var colorAlwaysWarning: ColorSemanticToken { get } + + var colorAlwaysNegative: ColorSemanticToken { get } + + var colorAlwaysPositive: ColorSemanticToken { get } + + var colorAlwaysInfo: ColorSemanticToken { get } + + var colorAlwaysAccent: ColorSemanticToken { get } + + var colorAlwaysOnBackgroundBlack: ColorSemanticToken { get } + + var colorAlwaysOnBackgroundWhite: ColorSemanticToken { get } + + var colorAlwaysOnBackgroundWarning: ColorSemanticToken { get } + + var colorAlwaysOnBackgroundNegative: ColorSemanticToken { get } + + var colorAlwaysOnBackgroundPositive: ColorSemanticToken { get } + + var colorAlwaysOnBackgroundInfo: ColorSemanticToken { get } + + var colorAlwaysOnBackgroundAccent: ColorSemanticToken { get } + + // MARK: Semantic token - Colors - Transparent + + var colorTransparentDefault: ColorSemanticToken { get } + + // MARK: Semantic token - Colors - Elevation + + var colorElevationRaised: ColorSemanticToken { get } + + var colorElevationRaisedOnBackgroundSecondary: ColorSemanticToken { get } + + var colorElevationRaisedOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorElevationDrag: ColorSemanticToken { get } + + var colorElevationDragOnBackgroundSecondary: ColorSemanticToken { get } + + var colorElevationDragOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorElevationOverlayDefault: ColorSemanticToken { get } + + var colorElevationOverlayDefaultOnBackgroundSecondary: ColorSemanticToken { get } + + var colorElevationOverlayDefaultOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorElevationOverlayEmphasized: ColorSemanticToken { get } + + var colorElevationOverlayEmphasizedOnBackgroundSecondary: ColorSemanticToken { get } + + var colorElevationOverlayEmphasizedOnBackgroundEmphasized: ColorSemanticToken { get } + + var colorElevationModal: ColorSemanticToken { get } + + // MARK: Semantic token - Colors - Decorative + + var colorDecorativeBrandPrimary: ColorSemanticToken { get } + + var colorDecorativeBrandPrimaryMuted: ColorSemanticToken { get } + + var colorDecorativeBrandPrimaryEmphasized: ColorSemanticToken { get } + + var colorDecorativeSecondary: ColorSemanticToken { get } + + var colorDecorativeSecondaryMuted: ColorSemanticToken { get } + + var colorDecorativeSecondaryEmphasized: ColorSemanticToken { get } + + var colorDecorativeBrandTertiary: ColorSemanticToken { get } + + var colorDecorativeBrandTertiaryMuted: ColorSemanticToken { get } + + var colorDecorativeBrandTertiaryEmphasized: ColorSemanticToken { get } + + var colorDecorativeNeutralMuted: ColorSemanticToken { get } + + var colorDecorativeNeutralDefault: ColorSemanticToken { get } + + var colorDecorativeNeutralEmphasized: ColorSemanticToken { get } + + var colorDecorativeAccent1Muted: ColorSemanticToken { get } + + var colorDecorativeAccent1Default: ColorSemanticToken { get } + + var colorDecorativeAccent1Emphasized: ColorSemanticToken { get } + + var colorDecorativeAccent2Muted: ColorSemanticToken { get } + + var colorDecorativeAccent2Default: ColorSemanticToken { get } + + var colorDecorativeAccent2Emphasized: ColorSemanticToken { get } + + var colorDecorativeAccent3Muted: ColorSemanticToken { get } + + var colorDecorativeAccent3Default: ColorSemanticToken { get } + + var colorDecorativeAccent3Emphasized: ColorSemanticToken { get } + + var colorDecorativeAccent4Muted: ColorSemanticToken { get } + + var colorDecorativeAccent4Default: ColorSemanticToken { get } + + var colorDecorativeAccent4Emphasized: ColorSemanticToken { get } + + var colorDecorativeAccent5Muted: ColorSemanticToken { get } + + var colorDecorativeAccent5Default: ColorSemanticToken { get } + + var colorDecorativeAccent5Emphasized: ColorSemanticToken { get } + + var colorDecorativeSkintTint100: ColorSemanticToken { get } + + var colorDecorativeSkintTint200: ColorSemanticToken { get } + + var colorDecorativeSkintTint300: ColorSemanticToken { get } + + var colorDecorativeSkintTint400: ColorSemanticToken { get } + + var colorDecorativeSkintTint500: ColorSemanticToken { get } + + var colorDecorativeSkintTint600: ColorSemanticToken { get } + + var colorDecorativeSkintTint700: ColorSemanticToken { get } + + var colorDecorativeSkintTint800: ColorSemanticToken { get } + + var colorDecorativeSkintTint900: ColorSemanticToken { get } + + // MARK: Semantic token - Colors - Chart + + var colorChartCategoricalNeutral: ColorSemanticToken { get } + + var colorChartCategoricalBrand: ColorSemanticToken { get } + + var colorChartCategoricalPositive: ColorSemanticToken { get } + + var colorChartCategoricalNegative: ColorSemanticToken { get } + + var colorChartCategoricalTier1: ColorSemanticToken { get } + + var colorChartCategoricalTier2: ColorSemanticToken { get } + + var colorChartCategoricalTier3: ColorSemanticToken { get } + + var colorChartCategoricalTier4: ColorSemanticToken { get } + + var colorChartCategoricalTier5: ColorSemanticToken { get } + + var colorChartCategoricalTier6: ColorSemanticToken { get } + + var colorChartCategoricalTier7: ColorSemanticToken { get } + + var colorChartCategoricalTier8: ColorSemanticToken { get } + + var colorChartCategoricalTier9: ColorSemanticToken { get } + + var colorChartCategoricalTier10: ColorSemanticToken { get } + + var colorChartSequentialAccent1Tint100: ColorSemanticToken { get } + + var colorChartSequentialAccent1Tint200: ColorSemanticToken { get } + + var colorChartSequentialAccent1Tint300: ColorSemanticToken { get } + + var colorChartSequentialAccent1Tint400: ColorSemanticToken { get } + + var colorChartSequentialAccent1Tint500: ColorSemanticToken { get } + + var colorChartSequentialAccent1Tint600: ColorSemanticToken { get } + + var colorChartSequentialAccent1Tint700: ColorSemanticToken { get } + + var colorChartSequentialAccent1Tint800: ColorSemanticToken { get } + + var colorChartSequentialAccent1Tint900: ColorSemanticToken { get } + + var colorChartSequentialAccent2Tint100: ColorSemanticToken { get } + + var colorChartSequentialAccent2Tint200: ColorSemanticToken { get } + + var colorChartSequentialAccent2Tint300: ColorSemanticToken { get } + + var colorChartSequentialAccent2Tint400: ColorSemanticToken { get } + + var colorChartSequentialAccent2Tint500: ColorSemanticToken { get } + + var colorChartSequentialAccent2Tint600: ColorSemanticToken { get } + + var colorChartSequentialAccent2Tint700: ColorSemanticToken { get } + + var colorChartSequentialAccent2Tint800: ColorSemanticToken { get } + + var colorChartSequentialAccent2Tint900: ColorSemanticToken { get } + + var colorChartSequentialAccent3Tint100: ColorSemanticToken { get } + + var colorChartSequentialAccent3Tint200: ColorSemanticToken { get } + + var colorChartSequentialAccent3Tint300: ColorSemanticToken { get } + + var colorChartSequentialAccent3Tint400: ColorSemanticToken { get } + + var colorChartSequentialAccent3Tint500: ColorSemanticToken { get } + + var colorChartSequentialAccent3Tint600: ColorSemanticToken { get } + + var colorChartSequentialAccent3Tint700: ColorSemanticToken { get } + + var colorChartSequentialAccent3Tint800: ColorSemanticToken { get } + + var colorChartSequentialAccent3Tint900: ColorSemanticToken { get } + + var colorChartSequentialAccent4Tint100: ColorSemanticToken { get } + + var colorChartSequentialAccent4Tint200: ColorSemanticToken { get } - var colorBorderDefault: ColorSemanticToken? { get } + var colorChartSequentialAccent4Tint300: ColorSemanticToken { get } - var colorBorderDefaultOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorChartSequentialAccent4Tint400: ColorSemanticToken { get } - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandPrimary - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandSecondary - // TODO: #124 - Add missing colorBorderDefaultOnBackgroundBrandTertiary + var colorChartSequentialAccent4Tint500: ColorSemanticToken { get } - var colorBorderEmphasized: ColorSemanticToken? { get } + var colorChartSequentialAccent4Tint600: ColorSemanticToken { get } - var colorBorderEmphasizedOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorChartSequentialAccent4Tint700: ColorSemanticToken { get } - var colorBorderBrandPrimary: ColorSemanticToken? { get } + var colorChartSequentialAccent4Tint800: ColorSemanticToken { get } - var colorBorderBrandPrimaryOnBackgroundEmphasized: ColorSemanticToken? { get } + var colorChartSequentialAccent4Tint900: ColorSemanticToken { get } - var colorBorderBrandSecondary: ColorSemanticToken? { get } + var colorChartSequentialAccent5Tint100: ColorSemanticToken { get } - var colorBorderBrandTertiary: ColorSemanticToken? { get } + var colorChartSequentialAccent5Tint200: ColorSemanticToken { get } - var colorBorderBrandStatusAttractive: ColorSemanticToken? { get } + var colorChartSequentialAccent5Tint300: ColorSemanticToken { get } - var colorBorderBrandStatusWarning: ColorSemanticToken? { get } + var colorChartSequentialAccent5Tint400: ColorSemanticToken { get } - var colorBorderBrandStatusNegative: ColorSemanticToken? { get } + var colorChartSequentialAccent5Tint500: ColorSemanticToken { get } - var colorBorderBrandStatusPositive: ColorSemanticToken? { get } + var colorChartSequentialAccent5Tint600: ColorSemanticToken { get } - var colorBorderBrandStatusInformation: ColorSemanticToken? { get } + var colorChartSequentialAccent5Tint700: ColorSemanticToken { get } - var colorBorderTransparentDefault: ColorSemanticToken? { get } + var colorChartSequentialAccent5Tint800: ColorSemanticToken { get } - // TODO: #124 - Add missing colorBorderActionEnabled* - // TODO: #124 - Add missing colorBorderActionHover* - // TODO: #124 - Add missing colorBorderActionPressed* - // TODO: #124 - Add missing colorBorderActionDisabled* - // TODO: #124 - Add missing colorBorderActionFocus* - // TODO: #124 - Add missing colorBorderSelectionSelected* - // TODO: #124 - Add missing colorBorderSelectionUnselected* - // TODO: #124 - Add missing colorBorderAlways* - // TODO: #124 - Add missing colorBorderOutside - // TODO: #124 - Add missing colorOnBackgroundStatusAttractive* - // TODO: #124 - Add missing colorOnBackgroundStatusWarning* - // TODO: #124 - Add missing colorOnBackgroundStatusNegative* - // TODO: #124 - Add missing colorOnBackgroundStatusPositive* - // TODO: #124 - Add missing colorOnBackgroundStatusInformation* - // TODO: #124 - Add missing colorOnBackgroundActionEnabled* - // TODO: #124 - Add missing colorOnBackgroundActionHover* - // TODO: #124 - Add missing colorOnBackgroundActionPressed* - // TODO: #124 - Add missing colorOnBackgroundActionDisabled* - // TODO: #124 - Add missing colorOnBackgroundActionFocus* - // TODO: #124 - Add missing colorOnBackgroundActionAlways* - // TODO: #124 - Add missing colorElevation* - // TODO: #124 - Add missing colorDecorativeBrand* - // TODO: #124 - Add missing colorDecorativeNeutral* - // TODO: #124 - Add missing colorDecorativeAccent* - // TODO: #124 - Add missing colorDecorativeSkin* - // TODO: #124 - Add missing colorChart* + var colorChartSequentialAccent5Tint900: ColorSemanticToken { get } } // swiftlint:enable missing_docs +// swiftlint:enable identifier_name diff --git a/Showcase/Showcase.xcodeproj/project.pbxproj b/Showcase/Showcase.xcodeproj/project.pbxproj index 54067c6229..778cfe1e7d 100644 --- a/Showcase/Showcase.xcodeproj/project.pbxproj +++ b/Showcase/Showcase.xcodeproj/project.pbxproj @@ -56,7 +56,6 @@ 5123647B2C3D7B3500572FD5 /* Gemfile.lock in Resources */ = {isa = PBXBuildFile; fileRef = 5123647A2C3D7B3500572FD5 /* Gemfile.lock */; }; 513AD9402C5AAADE0003253B /* OUDSTokensComponent in Frameworks */ = {isa = PBXBuildFile; productRef = 513AD93F2C5AAADE0003253B /* OUDSTokensComponent */; }; 5149BADB2C3D6F4F000FA4BF /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = 5149BADA2C3D6F4F000FA4BF /* Podfile */; }; - 51B4F7F42C5BEAB700312019 /* OrangeCustomTheme.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51B4F7F32C5BEAB700312019 /* OrangeCustomTheme.swift */; }; 51BC9DE72C6513F200EB2A11 /* OUDSFoundations in Frameworks */ = {isa = PBXBuildFile; productRef = 51BC9DE62C6513F200EB2A11 /* OUDSFoundations */; }; 51BD76212C466FCF0033365D /* AboutPage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51BD760B2C466FCF0033365D /* AboutPage.swift */; }; 51BD76222C466FCF0033365D /* ComponentsPage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51BD760D2C466FCF0033365D /* ComponentsPage.swift */; }; @@ -135,7 +134,6 @@ 5123647A2C3D7B3500572FD5 /* Gemfile.lock */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Gemfile.lock; path = ../Gemfile.lock; sourceTree = ""; }; 5149BADA2C3D6F4F000FA4BF /* Podfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Podfile; sourceTree = ""; }; 51A7A9DA2C46E17F00EF7A77 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; - 51B4F7F32C5BEAB700312019 /* OrangeCustomTheme.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrangeCustomTheme.swift; sourceTree = ""; }; 51BD760B2C466FCF0033365D /* AboutPage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AboutPage.swift; sourceTree = ""; }; 51BD760D2C466FCF0033365D /* ComponentsPage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ComponentsPage.swift; sourceTree = ""; }; 51BD760F2C466FCF0033365D /* ShowcaseElementsPage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ShowcaseElementsPage.swift; sourceTree = ""; }; @@ -447,7 +445,6 @@ 51BD761D2C466FCF0033365D /* Utils */, 51BD761E2C466FCF0033365D /* Showcase.swift */, 51BD761F2C466FCF0033365D /* MainView.swift */, - 51B4F7F32C5BEAB700312019 /* OrangeCustomTheme.swift */, ); path = Showcase; sourceTree = ""; @@ -676,7 +673,6 @@ 07CF42802CA41325000BD03E /* OpacityTokenPage.swift in Sources */, 0747947A2CAE882A0033C2D8 /* EmptyState.swift in Sources */, 51BD762B2C466FCF0033365D /* MainView.swift in Sources */, - 51B4F7F42C5BEAB700312019 /* OrangeCustomTheme.swift in Sources */, 07CF42742CA3EC58000BD03E /* CardIllustration.swift in Sources */, 07CF42782CA3F4BE000BD03E /* ElevationTokenElement.swift in Sources */, 07CF42792CA3F4BE000BD03E /* ElevationTokenPage.swift in Sources */, diff --git a/Showcase/Showcase/MainView.swift b/Showcase/Showcase/MainView.swift index 023646e0ef..e9dbd1e2f0 100644 --- a/Showcase/Showcase/MainView.swift +++ b/Showcase/Showcase/MainView.swift @@ -18,6 +18,7 @@ import SwiftUI struct MainView: View { @Environment(\.theme) private var theme + @Environment(\.colorScheme) private var colorScheme var body: some View { TabView { @@ -34,7 +35,7 @@ struct MainView: View { Label("app_bottomBar_about", image: "ic_info") } } - .accentColor(theme.sysColorBrandPrimaryDefault?.color) + .accentColor(theme.colorContentBrandPrimary.color(for: colorScheme)) } } diff --git a/Showcase/Showcase/OrangeCustomTheme.swift b/Showcase/Showcase/OrangeCustomTheme.swift deleted file mode 100644 index 28431ab4d3..0000000000 --- a/Showcase/Showcase/OrangeCustomTheme.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// Software Name: OUDS iOS -// SPDX-FileCopyrightText: Copyright (c) Orange SA -// SPDX-License-Identifier: MIT -// -// This software is distributed under the MIT license, -// the text of which is available at https://opensource.org/license/MIT/ -// or see the "LICENSE" file for more details. -// -// Authors: See CONTRIBUTORS.txt -// Software description: A SwiftUI components library with code examples for Orange Unified Design System -// - -import OUDSThemesOrange -import OUDSTokensComponent -import OUDSTokensRaw -import OUDSTokensSemantic -import SwiftUI - -// swiftlint:disable required_deinit -// swiftlint:disable no_grouping_extension -// swiftlint:disable force_unwrapping -// swiftlint:disable implicitly_unwrapped_optional - -// Can be for example a country theme -class OrangeCustomTheme: OrangeTheme { } - -extension OrangeCustomTheme { // For ColorSemanticTokens - - override var colorBackgroundDefaultPrimary: ColorSemanticToken! { MultipleColorTokens(light: ColorRawTokens.colorFunctionalSun500, dark: ColorRawTokens.colorFunctionalSun800) } -} - -extension OrangeCustomTheme { // For ButtonsComponentTokens - - override var buttonInternalSpacing: SpacingPaddingInlineSemanticToken { spacePaddingInlineShorter } - - override var buttonBorderStyle: BorderStyleSemanticToken { borderStyleDrag } - override var buttonBorderColor: ColorSemanticToken { colorBorderDefault! } - override var buttonBorderWidth: BorderWidthSemanticToken { borderWidthDefault } - override var buttonBorderRadius: BorderRadiusSemanticToken { borderRadiusShort } - - override var buttonForegroundColor: ColorSemanticToken { MultipleColorTokens(light: sysColorBrandNeutralMutedLower!, dark: sysColorBrandNeutralMutedWhite!) } - override var buttonBackgroundColor: ColorSemanticToken { MultipleColorTokens(light: sysColorBrandPositiveLowest!, dark: sysColorBrandPositiveHighest!) } - - override var buttonWidth: SizingSemanticToken { DimensionRawTokens.dimension2000 } - override var buttonHeight: SizingSemanticToken { DimensionRawTokens.dimension800 } - - override var buttonTypography: MultipleTypographyTokens { typeDisplaySmall } -} - -// swiftlint:enable required_deinit -// swiftlint:enable no_grouping_extension -// swiftlint:enable force_unwrapping -// swiftlint:enable implicitly_unwrapped_optional diff --git a/Showcase/Showcase/Pages/ThemeSelection/ThemeSelection.swift b/Showcase/Showcase/Pages/ThemeSelection/ThemeSelection.swift index b1c5200fe7..0c8cdf0412 100644 --- a/Showcase/Showcase/Pages/ThemeSelection/ThemeSelection.swift +++ b/Showcase/Showcase/Pages/ThemeSelection/ThemeSelection.swift @@ -115,6 +115,6 @@ struct ThemeSelectionButton: View { } label: { Image(systemName: "paintpalette") } - .foregroundColor(themeProvider.currentTheme.colorContentBrandPrimary?.color(for: colorScheme)) + .foregroundColor(themeProvider.currentTheme.colorContentBrandPrimary.color(for: colorScheme)) } } diff --git a/Showcase/Showcase/Pages/Tokens/Border/BorderTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Border/BorderTokenPage.swift index aa3c2d9c60..3a1dfc0311 100644 --- a/Showcase/Showcase/Pages/Tokens/Border/BorderTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Border/BorderTokenPage.swift @@ -16,9 +16,6 @@ import OUDSComponents import OUDSTokensSemantic import SwiftUI -// TODO: Check if we can get rid of alias colors tokens which are optional -// swiftlint:disable force_unwrapping - struct BorderTokenPage: View { @Environment(\.theme) private var theme @@ -37,7 +34,7 @@ struct BorderTokenPage: View { } header: { Text("Width") .typeHeadingLarge(theme) - .foregroundStyle((theme.colorContentDefault?.color(for: colorScheme))!) + .foregroundStyle((theme.colorContentDefault.color(for: colorScheme))) } Section { @@ -49,7 +46,7 @@ struct BorderTokenPage: View { } header: { Text("Radius") .typeHeadingLarge(theme) - .foregroundStyle((theme.colorContentDefault?.color(for: colorScheme))!) + .foregroundStyle((theme.colorContentDefault.color(for: colorScheme))) } Section { @@ -61,7 +58,7 @@ struct BorderTokenPage: View { } header: { Text("Style") .typeHeadingLarge(theme) - .foregroundStyle((theme.colorContentDefault?.color(for: colorScheme))!) + .foregroundStyle((theme.colorContentDefault.color(for: colorScheme))) } } .padding(.horizontal, theme.spaceFixedMedium) @@ -71,7 +68,7 @@ struct BorderTokenPage: View { private var rectangle: some View { Rectangle() - .fill(theme.colorBackgroundDefaultSecondary?.color(for: colorScheme) ?? Color(UIColor.systemGroupedBackground)) + .fill(theme.colorBackgroundSecondary.color(for: colorScheme)) .frame(width: 64, height: 64) } @@ -85,7 +82,7 @@ struct BorderTokenPage: View { .oudsBorder(style: theme.borderStyleDefault, width: token, radius: theme.borderRadiusNone, - color: theme.colorBorderDefault!) + color: theme.colorBorderDefault) } } @@ -99,7 +96,7 @@ struct BorderTokenPage: View { .oudsBorder(style: theme.borderStyleDefault, width: theme.borderWidthDefault, radius: token, - color: theme.colorBorderDefault!) + color: theme.colorBorderDefault) } } @@ -113,11 +110,10 @@ struct BorderTokenPage: View { .oudsBorder(style: token, width: theme.borderWidthDefault, radius: theme.borderRadiusNone, - color: theme.colorBorderDefault!) + color: theme.colorBorderDefault) } } } -// swiftlint:enable force_unwrapping private enum NamedBorderRadius: String, CaseIterable { case borderRadiusNone diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Sizing/SizingTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Sizing/SizingTokenPage.swift index 1b1e17e6c9..8b92a341b0 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Sizing/SizingTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Sizing/SizingTokenPage.swift @@ -15,9 +15,6 @@ import OUDS import OUDSTokensSemantic import SwiftUI -// TODO: Check if we can get rid of colors alaises tokens to avoid handling optional values -// swiftlint:disable force_unwrapping - struct SizingTokenPage: View { @Environment(\.theme) private var theme @@ -47,7 +44,7 @@ struct SizingTokenPage: View { return ShowcaseTokenIllustration(tokenName: name, tokenValue: value) { ZStack { Rectangle() - .fill((theme.colorBackgroundEmphasizedPrimary?.color(for: colorScheme))!) + .fill((theme.colorBackgroundEmphasized.color(for: colorScheme))) .frame(width: 82, height: 82, alignment: .center) Image("ic_token") @@ -62,8 +59,6 @@ struct SizingTokenPage: View { } } -// swiftlint:enable force_unwrapping - // MARK: - Named Spacing private enum NamedSizing: String, CaseIterable { diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Spacing/SpacingTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Spacing/SpacingTokenPage.swift index 3629c2acee..7191eb69ce 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Spacing/SpacingTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Spacing/SpacingTokenPage.swift @@ -15,9 +15,6 @@ import OUDS import OUDSTokensSemantic import SwiftUI -// TODO: Check if we can get rid of alias colors tokens which are optional -// swiftlint:disable force_unwrapping - struct SpacingTokenPage: View { @Environment(\.theme) private var theme @@ -50,7 +47,7 @@ struct SpacingTokenPage: View { return ShowcaseTokenIllustration(tokenName: name, tokenValue: value) { ZStack { Rectangle() - .fill((theme.colorBackgroundEmphasizedPrimary?.color(for: colorScheme))!) + .fill((theme.colorAlwaysOnBackgroundAccent.color(for: colorScheme))) .frame(width: 64, height: 64, alignment: .center) Rectangle() // .fill((theme.colorBackgroundStatusAttractiveEmphasized?.color(for: colorScheme))!) // TODO: Update when color is available @@ -61,8 +58,6 @@ struct SpacingTokenPage: View { } } -// swiftlint:enable force_unwrapping - // MARK: - Named Spacing private enum NamedSpacing: String, CaseIterable { diff --git a/Showcase/Showcase/Pages/Tokens/Elevation/ElevationTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Elevation/ElevationTokenPage.swift index c2f402d44f..f2f99f9427 100644 --- a/Showcase/Showcase/Pages/Tokens/Elevation/ElevationTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Elevation/ElevationTokenPage.swift @@ -45,7 +45,7 @@ struct ElevationTokenPage: View { return ShowcaseTokenIllustration(tokenName: name, tokenValue: value) { Rectangle() .frame(width: theme.sizeIconDecorativeTallest, height: theme.sizeIconDecorativeTallest) - .foregroundColor(theme.colorBackgroundDefaultSecondary?.color(for: colorScheme)) + .foregroundColor(theme.colorBackgroundSecondary.color(for: colorScheme)) .shadow(elevation: token) .padding(.bottom, 2) } diff --git a/Showcase/Showcase/Pages/Tokens/Opacity/OpacityTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Opacity/OpacityTokenPage.swift index c2d515270e..c46dc24054 100644 --- a/Showcase/Showcase/Pages/Tokens/Opacity/OpacityTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Opacity/OpacityTokenPage.swift @@ -16,9 +16,6 @@ import OUDSComponents import OUDSTokensSemantic import SwiftUI -// TODO: Check if we can get rid of colors alaises tokens to avoid handling optional values -// swiftlint:disable force_unwrapping - // MARK: - Opacity Token Page struct OpacityTokenPage: View { @@ -53,7 +50,7 @@ struct OpacityTokenPage: View { .accessibilityHidden(true) Rectangle() - .fill((theme.colorContentDefault?.color(for: colorScheme))!) + .fill((theme.colorContentDefault.color(for: colorScheme))) .opacity(token) .frame(width: 44, height: 44) .modifier(ExtraBorderModifier(namedOpacity: opacityName)) @@ -77,7 +74,7 @@ private struct ExtraBorderModifier: ViewModifier { content.oudsBorder(style: theme.borderStyleDefault, width: theme.borderWidthThin, radius: theme.borderRadiusNone, - color: theme.colorContentDefault!) + color: theme.colorContentDefault) } else { content } @@ -111,5 +108,3 @@ private enum NamedOpacity: String, CaseIterable { } } } - -// swiftlint:enable force_unwrapping diff --git a/Showcase/Showcase/Pages/Tokens/Typography/TypographyTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Typography/TypographyTokenPage.swift index fc473a5e1c..f364295a6a 100644 --- a/Showcase/Showcase/Pages/Tokens/Typography/TypographyTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Typography/TypographyTokenPage.swift @@ -15,8 +15,6 @@ import OUDS import OUDSTokensSemantic import SwiftUI -// swiftlint:disable force_unwrapping - // MARK: - Typography Token Page struct TypographyTokenPage: View { @@ -45,7 +43,7 @@ struct TypographyTokenPage: View { VStack(alignment: .leading, spacing: theme.spaceFixedNone) { typgraphyIllustration(from: namedTypography) - .foregroundStyle((theme.colorContentMuted?.color(for: colorScheme))!) + .foregroundStyle((theme.colorContentMuted.color(for: colorScheme))) Group { Text("family (\(theme.customFontFamily ?? "system")), ") @@ -56,7 +54,7 @@ struct TypographyTokenPage: View { } .typeBodyDefaultMedium(theme) .fixedSize(horizontal: false, vertical: true) - .foregroundStyle((theme.colorContentDefault?.color(for: colorScheme))!) + .foregroundStyle((theme.colorContentDefault.color(for: colorScheme))) } .frame(maxWidth: .infinity, alignment: .leading) .padding(.vertical, theme.spaceFixedShorter) @@ -115,8 +113,6 @@ struct TypographyTokenPage: View { } } -// swiftlint:enable force_unwrapping - // MARK: - Named Typography private enum NamedTypography: String, CaseIterable { diff --git a/Showcase/Showcase/Pages/Utils/ShowcaseElementPage.swift b/Showcase/Showcase/Pages/Utils/ShowcaseElementPage.swift index 3e697b87cc..821581e64c 100644 --- a/Showcase/Showcase/Pages/Utils/ShowcaseElementPage.swift +++ b/Showcase/Showcase/Pages/Utils/ShowcaseElementPage.swift @@ -42,18 +42,18 @@ struct ShowcaseElementPage: View { .listRowSeparator(Visibility.hidden) .padding(.horizontal, theme.spaceFixedNone) .padding(.bottom, theme.spaceFixedMedium) - .background(theme.colorBackgroundDefaultPrimary?.color(for: colorScheme)) + .background(theme.colorBackgroundPrimary.color(for: colorScheme)) element.pageDescription .listRowInsets(EdgeInsets()) .listRowSeparator(Visibility.hidden) .padding(.bottom, theme.spaceFixedMedium) - .background(theme.colorBackgroundDefaultPrimary?.color(for: colorScheme)) + .background(theme.colorBackgroundPrimary.color(for: colorScheme)) } .listStyle(.plain) .padding(.top, theme.spaceFixedNone) .padding(.horizontal, theme.spaceFixedNone) - .background(theme.colorBackgroundDefaultPrimary?.color(for: colorScheme)) + .background(theme.colorBackgroundPrimary.color(for: colorScheme)) .navigationTitle(LocalizedStringKey(element.name)) .navigationbarMenuForThemeSelection() .oudsRequestAccessibleFocus(_requestFocus) diff --git a/Showcase/Showcase/Pages/Utils/ShowcaseElementsPage.swift b/Showcase/Showcase/Pages/Utils/ShowcaseElementsPage.swift index ab87637fa3..2e1398d707 100644 --- a/Showcase/Showcase/Pages/Utils/ShowcaseElementsPage.swift +++ b/Showcase/Showcase/Pages/Utils/ShowcaseElementsPage.swift @@ -47,7 +47,7 @@ struct ShowcaseElementsPage: View { .navigationbarMenuForThemeSelection() .oudsNavigationTitle("app_bottomBar_tokens") } - .background(theme.colorBackgroundDefaultPrimary?.color(for: colorScheme)) + .background(theme.colorBackgroundPrimary.color(for: colorScheme)) } .navigationViewStyle(.stack) } diff --git a/Showcase/Showcase/Pages/Utils/ShowcaseTokenIllustration.swift b/Showcase/Showcase/Pages/Utils/ShowcaseTokenIllustration.swift index 07612fd537..d89160a3b9 100644 --- a/Showcase/Showcase/Pages/Utils/ShowcaseTokenIllustration.swift +++ b/Showcase/Showcase/Pages/Utils/ShowcaseTokenIllustration.swift @@ -15,8 +15,6 @@ import OUDS import OUDSTokensSemantic import SwiftUI -// swiftlint:disable force_unwrapping - struct ShowcaseTokenIllustration: View where TokenIllustration: View { @Environment(\.theme) private var theme @@ -47,11 +45,11 @@ struct ShowcaseTokenIllustration: View where TokenIllustratio VStack(alignment: .leading) { Text(tokenName) .typeBodyStrongLarge(theme) - .foregroundStyle((theme.colorContentDefault?.color(for: colorScheme))!) + .foregroundStyle((theme.colorContentDefault.color(for: colorScheme))) if let tokenValue { Text(tokenValue) .typeBodyDefaultMedium(theme) - .foregroundStyle((theme.colorContentMuted?.color(for: colorScheme))!) + .foregroundStyle((theme.colorContentMuted.color(for: colorScheme))) } } .frame(maxWidth: .infinity, alignment: .leading) @@ -59,5 +57,3 @@ struct ShowcaseTokenIllustration: View where TokenIllustratio .padding(.vertical, theme.spaceFixedShorter) } } - -// swiftlint:enable force_unwrapping diff --git a/Showcase/Showcase/Pages/Utils/ShowcaseVariantElement.swift b/Showcase/Showcase/Pages/Utils/ShowcaseVariantElement.swift index add58cbd31..c2d0bb5bd7 100644 --- a/Showcase/Showcase/Pages/Utils/ShowcaseVariantElement.swift +++ b/Showcase/Showcase/Pages/Utils/ShowcaseVariantElement.swift @@ -15,8 +15,6 @@ import OUDS import OUDSTokensSemantic import SwiftUI -// swiftlint:disable force_unwrapping - struct ShowcaseVariantElement: View { @Environment(\.theme) private var theme @@ -35,12 +33,10 @@ struct ShowcaseVariantElement: View { } label: { Text(LocalizedStringKey(element.name)) .typeHeadingMedium(theme) - .foregroundStyle((theme.colorContentDefault?.color(for: colorScheme))!) + .foregroundStyle((theme.colorContentDefault.color(for: colorScheme))) .padding(.vertical, theme.spaceFixedShorter) } } .padding(.horizontal, theme.spaceFixedMedium) } } - -// swiftlint:enable force_unwrapping