From 7399c33c5e412ad7e2cd4bfaa32c9f64b6b5f254 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Lapersonne Date: Tue, 17 Dec 2024 12:45:05 +0100 Subject: [PATCH] refactor: apply new architecture with tokens providers (#79) (#352) - Defines tokens providers embeded in the theme - Improve documentation (DocC catalogs, Swift doc) Reviewed-by: Ludovic Pinel Acked-by: Ludovic Pinel Signed-off-by: Pierre-Yves Lapersonne --- CHANGELOG.md | 1 + OUDS/Core/Components/README.md | 5 - .../Sources/Extensions/View+Typography.swift | 46 +- .../AccessibleModifiers.swift | 14 +- .../AccessibleModifiers/View+extensions.swift | 29 + .../BorderModifiers/View+Border.swift | 15 +- .../CustomFontModifier.swift | 4 +- .../TypographyModifiers/FontModifier.swift | 2 +- .../TypographyModifier.swift | 4 +- .../{_OUDSComponents.md => OUDSComponents.md} | 40 +- .../OUDSTheme+BorderSemanticTokens.swift | 2 +- ...UDSTheme+ColorMultipleSemanticTokens.swift | 8 +- .../OUDSTheme+ColorSemanticTokens.swift | 2 +- ...eme+ElevationCompositeSemanticTokens.swift | 12 +- ...heme+ElevationMultipleSemanticTokens.swift | 6 +- .../OUDSTheme+ElevationSemanticTokens.swift | 2 +- ...UDSTheme+FontCompositeSemanticTokens.swift | 8 +- ...OUDSTheme+FontMultipleSemanticTokens.swift | 6 +- .../OUDSTheme+FontSemanticTokens.swift | 2 +- .../OUDSTheme+GridSemanticTokens.swift | 2 +- .../OUDSTheme+GridSemanticTokensHelper.swift | 88 +- .../OUDSTheme+OpacitySemanticTokens.swift | 2 +- ...OUDSTheme+SizeMultipleSemanticTokens.swift | 6 +- .../OUDSTheme+SizeSemanticTokens.swift | 2 +- ...UDSTheme+SpaceMultipleSemanticTokens.swift | 6 +- .../OUDSTheme+SpaceSemanticTokens.swift | 2 +- .../OUDS/Sources/OUDSTheme/OUDSTheme.swift | 94 +- .../Sources/OUDSUserInterfaceSizeClass.swift | 6 + .../OUDS/Sources/_OUDS.docc/Components.md | 2 +- .../OUDS/Sources/_OUDS.docc/GettingStarted.md | 47 +- OUDS/Core/OUDS/Sources/_OUDS.docc/Modules.md | 2 +- OUDS/Core/OUDS/Sources/_OUDS.docc/Themes.md | 163 +- OUDS/Core/OUDS/Sources/_OUDS.docc/Tokens.md | 23 +- .../MockTheme+AllBorderSemanticTokens.swift | 53 + .../MockTheme+AllColorSemanticTokens.swift | 631 ++++++++ ...MockTheme+AllElevationSemanticTokens.swift | 115 ++ .../MockTheme+AllFontSemanticTokens.swift | 222 +++ .../MockTheme+AllGridSemanticTokens.swift | 42 + .../MockTheme+AllOpacitySemanticTokens.swift | 34 + .../MockTheme+AllSizeSemanticTokens.swift | 197 +++ .../MockTheme+AllSpaceSemanticTokens.swift | 133 ++ .../MockTheme+BorderSemanticTokens.swift | 49 - .../MockTheme+ColorSemanticTokens.swift | 625 -------- ...eme+ElevationCompositeSemanticTokens.swift | 41 - .../MockTheme+ElevationSemanticTokens.swift | 87 -- ...ockTheme+FontCompositeSemanticTokens.swift | 60 - .../MockTheme+FontSemanticTokens.swift | 172 --- .../MockTheme+GridSemanticTokens.swift | 38 - .../MockTheme+OpacitySemanticTokens.swift | 30 - .../MockTheme+SizeSemanticTokens.swift | 193 --- .../MockTheme+SpaceSemanticTokens.swift | 129 -- .../OUDSTheme/MockThemes/MockTheme.swift | 43 +- .../OUDSTheme/MockThemes/OtherMockTheme.swift | 18 +- ...tThemeOverrideOfBorderSemanticTokens.swift | 60 +- ...verrideOfColorMultipleSemanticTokens.swift | 684 ++++----- ...stThemeOverrideOfColorSemanticTokens.swift | 1340 ++++++++--------- ...deOfCompositeElevationSemanticTokens.swift | 32 +- ...ideOfElevationMultipleSemanticTokens.swift | 34 +- ...emeOverrideOfElevationSemanticTokens.swift | 136 +- ...verrideOfFontCompositeSemanticTokens.swift | 92 +- ...OverrideOfFontMultipleSemanticTokens.swift | 120 +- ...estThemeOverrideOfFontSemanticTokens.swift | 316 ++-- ...estThemeOverrideOfGridSemanticTokens.swift | 48 +- ...ThemeOverrideOfOpacitySemanticTokens.swift | 24 +- ...OverrideOfSizeMultipleSemanticTokens.swift | 124 +- ...estThemeOverrideOfSizeSemanticTokens.swift | 332 ++-- ...verrideOfSpaceMultipleSemanticTokens.swift | 40 +- ...stThemeOverrideOfSpaceSemanticTokens.swift | 288 ++-- .../TestThemeOverrideOfThemeProperties.swift | 8 +- .../InverseTheme+ColorSemanticTokens.swift | 57 +- .../Themes/Inverse/Sources/InverseTheme.swift | 43 +- .../OUDSThemesInverse.md | 51 +- .../Tests/TestInverseThemeColors.swift | 342 ++--- .../Tests/TestInverseThemeElevation.swift | 18 +- .../OrangeBrandColorRawTokens.swift | 2 +- .../OrangeBrandFontRawTokens.swift | 2 +- .../OrangeTheme+SemanticColorTokens.swift | 25 +- .../Themes/Orange/Sources/OrangeTheme.swift | 81 +- ...> OrangeBrandColorRawTokens+Aliases.swift} | 0 .../OUDSThemesOrange.md | 222 ++- .../OUDSTokensComponent.md | 4 +- .../_OUDSTokensRaw.docc/OUDSTokensRaw.md | 46 +- .../OUDSBorderSemanticTokensProvider.swift | 67 + .../OUDSColorSemanticTokensProvider.swift | 66 + .../OUDSElevationSemanticTokensProvider.swift | 64 + .../OUDSFontSemanticTokensProvider.swift | 68 + .../OUDSGridSemanticTokensProvider.swift | 69 + .../OUDSOpacitySemanticTokensProvider.swift | 61 + .../OUDSSizeSemanticTokensProvider.swift | 67 + .../OUDSSpaceSemanticTokensProvider.swift | 67 + .../SemanticTokensProviders+TypeAliases.swift | 52 + .../Sources/Values/BorderSemanticTokens.swift | 2 +- .../Values/ColorMultipleSemanticTokens.swift | 4 +- .../ElevationCompositeSemanticTokens.swift | 15 + .../ElevationMultipleSemanticTokens.swift | 4 +- .../Values/FontCompositeSemanticTokens.swift | 18 + .../Values/OpacitySemanticTokens.swift | 2 +- .../OUDSTokensSemantic.md | 82 +- .../MultipleColorSemanticTokenTests.swift | 2 +- ...ipleElevationCompositeRawTokensTests.swift | 2 +- ...FontLetterSpacingSemanticTokensTests.swift | 2 +- ...pleFontLineHeightSemanticTokensTests.swift | 2 +- .../MultipleFontSizeSemanticTokensTests.swift | 2 +- .../MultipleSizeSemanticTokenTests.swift | 2 +- .../MultipleSpaceSemanticTokensTests.swift | 2 +- ...pleTypographyCompositeRawTokensTests.swift | 2 +- .../_OUDSFoundations.docc/OUDSFoundations.md | 4 +- OUDS/Modules/Sources/README.md | 5 - .../Sources/_OUDSModules.docc/OUDSModules.md | 3 +- OUDS/README.md | 237 +-- Showcase/Showcase/MainView.swift | 2 +- .../Pages/Components/Button/ButtonPage.swift | 6 +- .../Components/EmptyState/EmptyState.swift | 10 +- .../Components/Utils/ComponentPage.swift | 8 +- .../Pages/ThemeSelection/ThemeSelection.swift | 2 +- .../Pages/Tokens/Border/BorderTokenPage.swift | 70 +- .../Pages/Tokens/Color/ColorTokenPage.swift | 34 +- .../Color/NamedColor/NamedColor+Action.swift | 38 +- .../Color/NamedColor/NamedColor+Always.swift | 8 +- .../NamedColor/NamedColor+Background.swift | 8 +- .../Color/NamedColor/NamedColor+Border.swift | 12 +- .../Color/NamedColor/NamedColor+Chart.swift | 34 +- .../Color/NamedColor/NamedColor+Content.swift | 42 +- .../NamedColor/NamedColor+Decorative.swift | 60 +- .../Color/NamedColor/NamedColor+Opacity.swift | 4 +- .../Color/NamedColor/NamedColor+Overlay.swift | 8 +- .../NamedColor/NamedColor+Repository.swift | 102 +- .../Color/NamedColor/NamedColor+Surface.swift | 26 +- .../NamedSize/NamedSize+IconDecorative.swift | 14 +- .../NamedSize+IconWithTypography.swift | 70 +- .../Tokens/Dimension/Size/SizeTokenPage.swift | 12 +- .../NamedSpace/NameSpace+GapInline.swift | 12 +- .../Space/NamedSpace/NameSpace+GapStack.swift | 12 +- .../NamedSpace/NameSpace+PaddingInline.swift | 14 +- .../NamedSpace/NameSpace+PaddingInset.swift | 20 +- .../NamedSpace/NameSpace+PaddingStack.swift | 14 +- .../Space/NamedSpace/NamedSpace+Fixed.swift | 24 +- .../Space/NamedSpace/NamedSpace+Scaled.swift | 20 +- .../Space/SpaceBasicTokenIllustrations.swift | 4 +- .../Space/SpaceTokenCommonIllustration.swift | 60 +- .../Dimension/Space/SpaceTokenPage.swift | 2 +- .../Tokens/Elevation/ElevationTokenPage.swift | 28 +- .../Pages/Tokens/Font/FontTokenPage.swift | 14 +- .../Tokens/Font/NamedFont/NamedFont.swift | 46 +- .../Pages/Tokens/Grid/GrisTokenPage.swift | 12 +- .../Tokens/Opacity/OpacityTokenPage.swift | 32 +- .../Utils/ShowcaseTokenIllustration.swift | 8 +- ...ShowcaseTokkenIllustrationBackground.swift | 2 +- .../Utils/Elements/ShowcaseElementPage.swift | 20 +- .../Utils/Elements/ShowcaseElementsPage.swift | 6 +- .../Elements/ShowcaseVariantElement.swift | 10 +- .../Showcase/Pages/Utils/ShowcaseCode.swift | 40 +- .../Pages/Utils/ShowcaseConfiguration.swift | 12 +- .../OUDSTokenBorderUITests.swift | 6 +- .../OUDSTokensColorUITests.swift | 22 +- .../Size/OUDSTokensSizeUITests.swift | 4 +- .../Space/OUDSTokensSpaceUITests.swift | 14 +- .../OUDSTokensElevationUITests.swift | 2 +- .../OUDSTokensFontUITests.swift | 2 +- .../OUDSTokensOpacityUITests.swift | 2 +- 160 files changed, 5743 insertions(+), 4400 deletions(-) delete mode 100644 OUDS/Core/Components/README.md rename OUDS/Core/Components/Sources/_OUDSComponents.docc/{_OUDSComponents.md => OUDSComponents.md} (77%) create mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllBorderSemanticTokens.swift create mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllColorSemanticTokens.swift create mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllElevationSemanticTokens.swift create mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllFontSemanticTokens.swift create mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllGridSemanticTokens.swift create mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllOpacitySemanticTokens.swift create mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllSizeSemanticTokens.swift create mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllSpaceSemanticTokens.swift delete mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+BorderSemanticTokens.swift delete mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ColorSemanticTokens.swift delete mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ElevationCompositeSemanticTokens.swift delete mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ElevationSemanticTokens.swift delete mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+FontCompositeSemanticTokens.swift delete mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+FontSemanticTokens.swift delete mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+GridSemanticTokens.swift delete mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+OpacitySemanticTokens.swift delete mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SizeSemanticTokens.swift delete mode 100644 OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SpaceSemanticTokens.swift rename OUDS/Core/Themes/Orange/Sources/TypeAliases/{OrangeBrandColorTokens+Aliases.swift => OrangeBrandColorRawTokens+Aliases.swift} (100%) create mode 100644 OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSBorderSemanticTokensProvider.swift create mode 100644 OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSColorSemanticTokensProvider.swift create mode 100644 OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSElevationSemanticTokensProvider.swift create mode 100644 OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSFontSemanticTokensProvider.swift create mode 100644 OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSGridSemanticTokensProvider.swift create mode 100644 OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSOpacitySemanticTokensProvider.swift create mode 100644 OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSSizeSemanticTokensProvider.swift create mode 100644 OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSSpaceSemanticTokensProvider.swift create mode 100644 OUDS/Core/Tokens/SemanticTokens/Sources/Providers/SemanticTokensProviders+TypeAliases.swift delete mode 100644 OUDS/Modules/Sources/README.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a2bf8dd45..aee3195651 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] New architecture with tokens provider ([#79](https://github.com/Orange-OpenSource/ouds-ios/issues/79)) - [DemoApp] Prepare new architecture to add components illustration ([#328](https://github.com/Orange-OpenSource/ouds-ios/issues/328)) ### Changed diff --git a/OUDS/Core/Components/README.md b/OUDS/Core/Components/README.md deleted file mode 100644 index f1f7ec253e..0000000000 --- a/OUDS/Core/Components/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# OUDS / Core / Components - -Defined as a module with _Swift Package Manager_, this *OUDSComponents* module provides any GUI components for applications. -Components should use the a theme inheriting from `OUDSTheme` so as to apply the relevant style. - diff --git a/OUDS/Core/Components/Sources/Extensions/View+Typography.swift b/OUDS/Core/Components/Sources/Extensions/View+Typography.swift index 71e4b7560f..7cd190a7ad 100644 --- a/OUDS/Core/Components/Sources/Extensions/View+Typography.swift +++ b/OUDS/Core/Components/Sources/Extensions/View+Typography.swift @@ -23,7 +23,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeDisplayLarge(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeDisplayLarge)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeDisplayLarge)) } /// Modifies the current `View` to apply a *display medium* typography. @@ -31,7 +31,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeDisplayMedium(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeDisplayMedium)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeDisplayMedium)) } /// Modifies the current `View` to apply a *display small* typography. @@ -39,7 +39,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeDisplaySmall(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeDisplaySmall)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeDisplaySmall)) } /// Modifies the current `View` to apply a *heading x large* typography. @@ -47,7 +47,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeHeadingXLarge(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeHeadingXLarge)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeHeadingXLarge)) } /// Modifies the current `View` to apply a *heading large* typography. @@ -55,7 +55,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeHeadingLarge(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeHeadingLarge)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeHeadingLarge)) } /// Modifies the current `View` to apply a *heading medium* typography. @@ -63,7 +63,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeHeadingMedium(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeHeadingMedium)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeHeadingMedium)) } /// Modifies the current `View` to apply a *heading small* typography. @@ -71,7 +71,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeHeadingSmall(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeHeadingSmall)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeHeadingSmall)) } /// Modifies the current `View` to apply a *body default large* typography. @@ -79,7 +79,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeBodyDefaultLarge(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeBodyDefaultLarge)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeBodyDefaultLarge)) } /// Modifies the current `View` to apply a *body default medium* typography. @@ -87,7 +87,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeBodyDefaultMedium(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeBodyDefaultMedium)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeBodyDefaultMedium)) } /// Modifies the current `View` to apply a *body default small* typography. @@ -95,7 +95,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeBodyDefaultSmall(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeBodyDefaultSmall)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeBodyDefaultSmall)) } /// Modifies the current `View` to apply a *body strong large* typography. @@ -103,7 +103,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeBodyStrongLarge(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeBodyStrongLarge)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeBodyStrongLarge)) } /// Modifies the current `View` to apply a *body strong medium* typography. @@ -111,7 +111,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeBodyStrongMedium(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeBodyStrongMedium)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeBodyStrongMedium)) } /// Modifies the current `View` to apply a *body strong small* typography. @@ -119,7 +119,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeBodyStrongSmall(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeBodyStrongSmall)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeBodyStrongSmall)) } /// Modifies the current `View` to apply a *label default x large* typography. @@ -127,7 +127,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeLabelDefaultXLarge(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeLabelDefaultXLarge)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeLabelDefaultXLarge)) } /// Modifies the current `View` to apply a *label default large* typography. @@ -135,7 +135,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeLabelDefaultLarge(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeBodyDefaultLarge)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeBodyDefaultLarge)) } /// Modifies the current `View` to apply a *label default medium* typography. @@ -143,7 +143,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeLabelDefaultMedium(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeBodyDefaultMedium)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeBodyDefaultMedium)) } /// Modifies the current `View` to apply a *label default small* typography. @@ -151,7 +151,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeLabelDefaultSmall(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeBodyDefaultSmall)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeBodyDefaultSmall)) } /// Modifies the current `View` to apply a *label strong x large* typography. @@ -159,7 +159,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeLabelStrongXLarge(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeLabelStrongXLarge)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeLabelStrongXLarge)) } /// Modifies the current `View` to apply a *label strong large* typography. @@ -167,7 +167,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeLabelStrongLarge(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeLabelStrongLarge)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeLabelStrongLarge)) } /// Modifies the current `View` to apply a *label strong medium* typography. @@ -175,7 +175,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeLabelStrongMedium(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeLabelStrongMedium)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeLabelStrongMedium)) } /// Modifies the current `View` to apply a *label strong small* typography. @@ -183,7 +183,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeLabelStrongSmall(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeLabelStrongSmall)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeLabelStrongSmall)) } /// Modifies the current `View` to apply a *code medium* typography. @@ -191,7 +191,7 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeCodeMedium(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeCodeMedium)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeCodeMedium)) } /// Modifies the current `View` to apply a *code small* typography. @@ -199,6 +199,6 @@ extension View { /// - Parameter theme: The current `OUDSTheme` to use to load the current font family and the suitable font semantic token. /// - Returns some View: The current `View` but with new typography applied public func typeCodeSmall(_ theme: OUDSTheme) -> some View { - self.modifier(TypographyModifier(customFontFamily: theme.customFontFamily, font: theme.typeCodeSmall)) + self.modifier(TypographyModifier(fontFamily: theme.fontFamily, font: theme.fonts.typeCodeSmall)) } } diff --git a/OUDS/Core/Components/Sources/ViewModifiers/AccessibleModifiers/AccessibleModifiers.swift b/OUDS/Core/Components/Sources/ViewModifiers/AccessibleModifiers/AccessibleModifiers.swift index c133615ce7..8db34c6fb4 100644 --- a/OUDS/Core/Components/Sources/ViewModifiers/AccessibleModifiers/AccessibleModifiers.swift +++ b/OUDS/Core/Components/Sources/ViewModifiers/AccessibleModifiers/AccessibleModifiers.swift @@ -38,7 +38,7 @@ struct AccessibleNavigationTitleModifier: ViewModifier { // MARK: - Request Accessible Focus Modifier -/// `ViewModifier` to apply on a a `View` so as to request the focus after a given time. +/// `ViewModifier` to apply on a `View` so as to request the focus after a given time. struct RequestAccessibleFocusModifier: ViewModifier { /// Flag to listen saying wether or not the `View` got the focus @@ -58,6 +58,18 @@ struct RequestAccessibleFocusModifier: ViewModifier { // MARK: - Accessibility Focusable +/// Value to use as a `AccessibilityFocusState` to request focus. +/// +/// ```swift +/// // In your view, add the following property +/// @AccessibilityFocusState private var requestFocus: AccessibilityFocusable? +/// +/// var body: some View { +/// SomeView() +/// .accessibilityFocused($requestFocus, equals: .some(id: element.id)) +/// .oudsRequestAccessibleFocus(_requestFocus, for: .some(id: elements[0].id)) +/// } +/// ``` public enum AccessibilityFocusable: Hashable { case none case some(id: String) diff --git a/OUDS/Core/Components/Sources/ViewModifiers/AccessibleModifiers/View+extensions.swift b/OUDS/Core/Components/Sources/ViewModifiers/AccessibleModifiers/View+extensions.swift index 5d08bf9aa2..3fba65aee6 100644 --- a/OUDS/Core/Components/Sources/ViewModifiers/AccessibleModifiers/View+extensions.swift +++ b/OUDS/Core/Components/Sources/ViewModifiers/AccessibleModifiers/View+extensions.swift @@ -29,6 +29,11 @@ extension View { /// Adds a modifier to the current `View` so as to define a navigation title using the current `title` /// and also send a notification for accessibility layers for a change of screen when appeared. + /// + /// ```swift + /// SomeView().oudsNavigationTitle("your title key") + /// ``` + /// /// - Parameter title: The navigation title /// - Returns View: The view with a new modifier public func oudsNavigationTitle(_ title: String) -> some View { @@ -37,6 +42,18 @@ extension View { } /// Adds a modifier to the current `View` so as to defer a focus request after the view is displayed + /// + /// ```swift + /// YourView: View { + /// @AccessibilityFocusState var requestFocus: Bool + /// + /// var body: some View { + /// SomeView() + /// .oudsRequestAccessibleFocus(_requestFocus) + /// } + /// } + /// ``` + /// /// - Parameter requestFocus: The boolean binding (e.g. the `AccessibilityFocusState`) /// - Returns View: The view with a new modifier public func oudsRequestAccessibleFocus(_ requestFocus: AccessibilityFocusState) -> some View { @@ -45,6 +62,18 @@ extension View { } /// Adds a modifier to the current `View` so as to defer a focus request after the view is displayed for the given element + /// + /// ```swift + /// YourView: View { + /// @AccessibilityFocusState var requestFocus: Bool + /// + /// var body: some View { + /// SomeView() + /// .oudsRequestAccessibleFocus(_requestFocus, for: .some(id: element.id)) + /// } + /// } + /// ``` + /// /// - Parameters: /// - requestFocus: The boolean binding (e.g. the `AccessibilityFocusState`) /// - target: The item which will get the focus diff --git a/OUDS/Core/Components/Sources/ViewModifiers/BorderModifiers/View+Border.swift b/OUDS/Core/Components/Sources/ViewModifiers/BorderModifiers/View+Border.swift index 3c7d47e2d1..e2f6da1984 100644 --- a/OUDS/Core/Components/Sources/ViewModifiers/BorderModifiers/View+Border.swift +++ b/OUDS/Core/Components/Sources/ViewModifiers/BorderModifiers/View+Border.swift @@ -17,7 +17,20 @@ import SwiftUI extension View { /// Modifies the current `View` to apply a border. - /// + /// + /// ```swift + /// @Environment(\.theme) private var theme + /// + /// var body: some View { + /// SomeView() + /// .oudsBorder( + /// style: theme.borders.borderStyleDefault, + /// width: theme.borders.borderWidthThin, + /// radius: theme.borders.borderRadiusNone, + /// color: theme.colors.colorBorderDefault) + /// } + /// ``` + /// /// - Parameters /// - style: The style to apply on the component /// - width: The width of the border diff --git a/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/CustomFontModifier.swift b/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/CustomFontModifier.swift index 72e3c90cfd..cae50742be 100644 --- a/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/CustomFontModifier.swift +++ b/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/CustomFontModifier.swift @@ -14,8 +14,8 @@ import OUDSTokensSemantic import SwiftUI -/// A `ViewModifier` applying a custom font on a `View` -/// Note that `CustomFontModifier` expects to lad a custom external font and not any font embeded in the device. +/// A `ViewModifier` applying a custom font on a `View`. +/// Note that `CustomFontModifier` expects to load a custom external font and not any font embeded in the device. struct CustomFontModifier: ViewModifier { // MARK: - Properties diff --git a/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/FontModifier.swift b/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/FontModifier.swift index 66f6c9d5d7..ee5c3ab9b8 100644 --- a/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/FontModifier.swift +++ b/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/FontModifier.swift @@ -14,7 +14,7 @@ import OUDSTokensSemantic import SwiftUI -/// A `ViewModifier` which will apply the system `Font` in a component `View` using a `MultipleFontCompositeRawTokens` +/// A `ViewModifier` which will apply the system `Font` in a component `View` using a `MultipleFontCompositeRawTokens`. /// Note that `FontModifier` use default system font but nothing for others fonts embeded in device struct FontModifier: ViewModifier { diff --git a/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/TypographyModifier.swift b/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/TypographyModifier.swift index 2796ab9508..0322c8dc78 100644 --- a/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/TypographyModifier.swift +++ b/OUDS/Core/Components/Sources/ViewModifiers/TypographyModifiers/TypographyModifier.swift @@ -27,7 +27,7 @@ import SwiftUI struct TypographyModifier: ViewModifier { /// The name of a possible custom font family, or `nil` if the font is use is _system font_ - let customFontFamily: FontFamilyRawToken? + let fontFamily: FontFamilyRawToken? /// The typography to apply for *compact* or *regular* modes, i.e. font tokens let font: MultipleFontCompositeRawTokens @@ -61,7 +61,7 @@ struct TypographyModifier: ViewModifier { // using UIFontMetrics to scale the font size, ensuring Dynamic Type support let scaledFontSize = UIFontMetrics.default.scaledValue(for: fontSize) - if let fontFamilyName = customFontFamily { + if let fontFamilyName = fontFamily { let composedFontFamily = fontFamilyName.compose(withFont: "\(adaptiveFont.weight.fontWeight)") let customFont: Font = .custom(composedFontFamily, size: adaptiveFont.size) return customFont diff --git a/OUDS/Core/Components/Sources/_OUDSComponents.docc/_OUDSComponents.md b/OUDS/Core/Components/Sources/_OUDSComponents.docc/OUDSComponents.md similarity index 77% rename from OUDS/Core/Components/Sources/_OUDSComponents.docc/_OUDSComponents.md rename to OUDS/Core/Components/Sources/_OUDSComponents.docc/OUDSComponents.md index 8fb9e71148..526953eec3 100644 --- a/OUDS/Core/Components/Sources/_OUDSComponents.docc/_OUDSComponents.md +++ b/OUDS/Core/Components/Sources/_OUDSComponents.docc/OUDSComponents.md @@ -2,21 +2,18 @@ The catalog of all components provided by OUDS. It contains also `View` extensions and `ViewModifiers` to apply tokens and styles on components and higher-level views. -@Metadata { - @TechnologyRoot - @SupportedLanguage(objc) -} - ## Overview -❗**More details coming soon.**❗ +❗More details coming soon.❗ -## Topics +## Customize components -### Apply shadow effect +Some helpers are provided through this module. + +### Apply a specific shadow effect (elevation tokens) The unified design system implemented by OUDS iOS library allows to apply *elevation effets* on a `View`, i.e. a shadow under the component. -Because the design tool in use is _Figma_ which defines such shadow with a _blur_ and a _spread_ radiuses, and because _SwfitUI_ uses only its own _radius_ definition, an extension of `View` has been implemented to let users apply some effect using an [`ElevationCompositeSemanticToken`](https://ios.unified-design-system.orange.com/documentation/oudstokenssemantic/elevationcompositesemantictoken) from the [OUDSTokensSemantic](https://ios.unified-design-system.orange.com/documentation/oudstokenssemantic/) library thanks to the method `shadow(elevation: ElevationCompositeSemanticToken)`. +Because the design tool in use is _Figma_ which defines such shadow with a _blur_ and a _spread_ radiuses, and because _SwiftUI_ uses only its own _radius_ definition, an extension of `View` has been implemented to let users apply some effect using an [`ElevationCompositeSemanticToken`](https://ios.unified-design-system.orange.com/documentation/oudstokenssemantic/elevationcompositesemantictoken) from the [OUDSTokensSemantic](https://ios.unified-design-system.orange.com/documentation/oudstokenssemantic/) library thanks to the method `shadow(elevation: ElevationCompositeSemanticToken)`. ```swift // For example, apply the elevation effect "elevationDragLight" from your theme: @@ -32,7 +29,7 @@ public static let elevationBottom_3_500 = ElevationCompositeRawToken(x: 0, y: 4, // Blur will be used to compute the radius value ``` -### Apply a specific typography +### Apply a specific typography (font tokens) Your application identity can be strongly based on the *typography* you use, i.e. the font family you choose and other configuration details like the font size or the font weight. @@ -53,7 +50,7 @@ public static let typeBold1050 = FontCompositeRawToken(size: fontSize1050, lineH ``` However the _theme_ must know which _font family_ to apply, and this font family can be a _custom one_ or the _system one_. -Thus, we let the users define the font family they want by overriding the `customFontFamily` property. This value will be used to compute the typography, if not defined the systme font will be used. +Thus, we let the users define the font family they want by overriding the `fontFamily` property. This value will be used to compute the typography, if not defined the systme font will be used. Thus, if you want to apply a specific typography to a `View`, supposing you defined previously the semantic tokens, just call the method you want and gives as parameter the theme (to get the custom font if defined): @@ -67,5 +64,24 @@ myView.typeLabelStrongXLarge(theme) // Etc. ``` -### Group +### Apply a specific border (border tokens) + +This module exposes the helper `oudsBorder(style:width:radius:color)` so as to apply border semantic tokens on a view in order to define a border effect. +The helper is available through `View`, and tokens through the provider of the theme. +```swift + @Environment(\.theme) private var theme + + var body: some View { + SomeView() + .oudsBorder( + style: theme.borders.borderStyleDefault, + width: theme.borders.borderWidthThin, + radius: theme.borders.borderRadiusNone, + color: theme.colors.colorBorderDefault) + } +``` + +## Topics + +### Group diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+BorderSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+BorderSemanticTokens.swift index 00f8e8e438..5933a57cbd 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+BorderSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+BorderSemanticTokens.swift @@ -15,7 +15,7 @@ import Foundation import OUDSTokensRaw import OUDSTokensSemantic -extension OUDSTheme: BorderSemanticTokens { +extension OUDSBorderSemanticTokensProvider: BorderSemanticTokens { @objc open var borderRadiusDefault: BorderRadiusSemanticToken { BorderRawTokens.borderRadius0 } @objc open var borderRadiusMedium: BorderRadiusSemanticToken { BorderRawTokens.borderRadius150 } @objc open var borderRadiusNone: BorderRadiusSemanticToken { BorderRawTokens.borderRadius0 } diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorMultipleSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorMultipleSemanticTokens.swift index 9f8cdb70f4..15d42430c6 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorMultipleSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorMultipleSemanticTokens.swift @@ -21,12 +21,12 @@ import OUDSTokensSemantic // swiftlint:disable line_length -/// Defines wrapper objects for `ColorSemanticToken`. -/// These values can be overriden inside `OUDSTheme` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. +/// Defines provider objects for `ColorSemanticTokens` so as to pack them as light and dark mode colors. +/// These values can be overriden inside `OUDSColorSemanticTokensProvider` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. /// Some tokens do not have values assigned in the design system, and must be overriden. -/// Some tokens must be overiden in `OrangeTheme` side because they rely on Orange brand colors. +/// Some tokens must be overriden in `OrangeTheme` side because they rely on Orange brand colors. /// Helps to expose color semantic tokens with two values to use depending to the color scheme (*Figma* cannot manage such tokens and generate them). -extension OUDSTheme: ColorMultipleSemanticTokens { +extension OUDSColorSemanticTokensProvider: ColorMultipleSemanticTokens { // MARK: - Color - Opacity - Invisible 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 f0c209429d..ec615ae0f0 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorSemanticTokens.swift @@ -19,7 +19,7 @@ import OUDSTokensSemantic // swiftlint:disable identifier_name -extension OUDSTheme: ColorSemanticTokens { +extension OUDSColorSemanticTokensProvider: ColorSemanticTokens { @objc open var colorOpacityInvisibleBlackLight: ColorSemanticToken { ColorRawTokens.colorOpacityBlack0 } @objc open var colorOpacityInvisibleWhiteLight: ColorSemanticToken { ColorRawTokens.colorOpacityWhite0 } @objc open var colorOpacityInvisibleBlackDark: ColorSemanticToken { ColorRawTokens.colorOpacityWhite0 } diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationCompositeSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationCompositeSemanticTokens.swift index c94370db99..18404af113 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationCompositeSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationCompositeSemanticTokens.swift @@ -19,13 +19,13 @@ import OUDSTokensSemantic // WARNING: Not synchronized anymore with the Figjam / Figma by developers team // Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml -/// Defines basic values common to all themes for ``ElevationCompositeSemanticTokens``. -/// These values can be overriden inside ``OUDSTheme`` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. -/// The aim of this extensions is to make relationships between all semantic tokens for elevations and associated raw tokens. -/// `OUDSTheme`` can be seen as a kind of "abstract class" in _object oriented paradigm_. -/// The *tokenator* is not able to provide code for such "composite" objects because the *Figma* tool itself cannot manage that and does not output anything in its JSON to process/ +/// Defines basic values common to all themes for `ElevationCompositeSemanticTokens``. +/// These values can be overriden inside ``OUDSElevationSemanticTokensProvider`` subclasses (in extensions or not, in the same module or not) t +/// hanks to the `@objc open` combination. +/// The aim of this extension is to make relationships between all semantic tokens for elevations and associated raw tokens. +/// The *tokenator* is not able to provide code for such "composite" objects because the *Figma* tool itself cannot manage that and does not output anything in its JSON to process. /// It defines in fact box shadows effects. -extension OUDSTheme: ElevationCompositeSemanticTokens { +extension OUDSElevationSemanticTokensProvider: ElevationCompositeSemanticTokens { // MARK: Semantic token - Elevation - Box shadow diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationMultipleSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationMultipleSemanticTokens.swift index 034a5feaff..5767c09491 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationMultipleSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationMultipleSemanticTokens.swift @@ -21,9 +21,9 @@ import OUDSTokensSemantic // swiftlint:disable line_length -/// Defines wrapper objects for eelvation color semantic tokens. -/// 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: ElevationMultipleSemanticTokens { +/// Defines provider objects for elevation color semantic tokens using ``MultipleColorSemanticTokens`` so as to exposed colors for light and dark color schemes. +/// These values can be overriden inside `OUDSElevationSemanticTokensProvider` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. +extension OUDSElevationSemanticTokensProvider: ElevationMultipleSemanticTokens { @objc open var elevationColorDefault: MultipleColorSemanticTokens { MultipleColorSemanticTokens(light: elevationColorDefaultLight, dark: elevationColorDefaultDark) } @objc open var elevationColorDrag: MultipleColorSemanticTokens { MultipleColorSemanticTokens(light: elevationColorDragLight, dark: elevationColorDragDark) } diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationSemanticTokens.swift index 66aad89f29..835cdb9eba 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationSemanticTokens.swift @@ -17,7 +17,7 @@ import OUDSTokensSemantic // swiftlint:disable identifier_name -extension OUDSTheme: ElevationSemanticTokens { +extension OUDSElevationSemanticTokensProvider: ElevationSemanticTokens { @objc open var elevationBlurDefault: ElevationBlurSemanticToken { ElevationRawTokens.elevationBlur300 } @objc open var elevationBlurDrag: ElevationBlurSemanticToken { ElevationRawTokens.elevationBlur400 } @objc open var elevationBlurEmphasized: ElevationBlurSemanticToken { ElevationRawTokens.elevationBlur600 } diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontCompositeSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontCompositeSemanticTokens.swift index 0ea2e94c2c..2fccf8a813 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontCompositeSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontCompositeSemanticTokens.swift @@ -21,11 +21,11 @@ import OUDSTokensSemantic // swiftlint:disable line_length -/// Defines basic values common to all themes for ``FontCompositeSemanticTokens``. -/// These values can be overriden inside ``OUDSTheme`` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. +/// Defines basic values common to all themes for `FontCompositeSemanticToken`. +/// These values can be overriden inside ``OUDSFontSemanticTokensProvider`` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. /// The aim of this extensions is to make relationships between all composite semantic tokens for typography / fonts and associated composite raw tokens. -/// `OUDSTheme` can be seen as a kind of "abstract class" in _object oriented paradigm_. -extension OUDSTheme: FontCompositeSemanticTokens { +/// The *tokenator* is not able to provide code for such "composite" objects because the *Figma* tool itself cannot manage that and does not output anything in its JSON to process. +extension OUDSFontSemanticTokensProvider: FontCompositeSemanticTokens { // MARK: - Semantic tokens - Typography - Composites - Display diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontMultipleSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontMultipleSemanticTokens.swift index 01a017322f..0d6d4936fe 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontMultipleSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontMultipleSemanticTokens.swift @@ -21,9 +21,9 @@ import OUDSTokensSemantic // swiftlint:disable line_length -/// Defines wrapper objects for typography semantic tokens but "multiple", i.e. tokens with values depending to size classes or color schemes. -/// 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: FontMultipleSemanticTokens { +/// Defines provider objects for font semantic tokens but "multiple", i.e. tokens with values depending to size classes or color schemes. +/// These values can be overriden inside `OUDSFontSemanticTokensProvider` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. +extension OUDSFontSemanticTokensProvider: FontMultipleSemanticTokens { // MARK: - Semantic token - Typography - Font - Size diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontSemanticTokens.swift index 3af7fc8444..375562d82f 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontSemanticTokens.swift @@ -15,7 +15,7 @@ import Foundation import OUDSTokensRaw import OUDSTokensSemantic -extension OUDSTheme: FontSemanticTokens { +extension OUDSFontSemanticTokensProvider: FontSemanticTokens { @objc open var fontFamily: FontFamilySemanticToken { FontRawTokens.fontFamilySystemSfPro } @objc open var fontLetterSpacingBodyLargeMobile: FontLetterSpacingSemanticToken { FontRawTokens.fontLetterSpacing250 } @objc open var fontLetterSpacingBodyLargeTablet: FontLetterSpacingSemanticToken { FontRawTokens.fontLetterSpacing250 } diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+GridSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+GridSemanticTokens.swift index e89c2ee524..235eebfafe 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+GridSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+GridSemanticTokens.swift @@ -15,7 +15,7 @@ import Foundation import OUDSTokensRaw import OUDSTokensSemantic -extension OUDSTheme: GridSemanticTokens { +extension OUDSGridSemanticTokensProvider: GridSemanticTokens { @objc open var gridCompactColumnGap: GridSemanticToken { GridRawTokens.gridColumnGap100 } @objc open var gridCompactMargin: GridSemanticToken { GridRawTokens.gridMargin300 } @objc open var gridCompactMaxWidth: GridSemanticToken { GridRawTokens.gridMaxWidthCompact } diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+GridSemanticTokensHelper.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+GridSemanticTokensHelper.swift index 207a8d6011..2cb31af495 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+GridSemanticTokensHelper.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+GridSemanticTokensHelper.swift @@ -18,65 +18,121 @@ extension OUDSTheme { // MARK: Semantic Grid token - Helper - /// The min column width of a grid. + /// The min column width of a grid based on the given size class. + /// + /// ```swift + /// struct YourView: View { + /// + /// @Environment(\.theme) var theme + /// @Environment(\.oudsHorizontalSizeClass) var sizeClass + /// // Or also @Environment(\.oudsVerticalSizeClass) var sizeClass + /// + /// func someFunc() -> GridRawToken { + /// theme.gridMinWidth(for: sizeClass) + /// } + /// } + /// ``` + /// /// - Parameter sizeClass: The current interface size class /// - Returns `GridRawToken`: The minimal width according to viewports / size classes. public final func gridMinWidth(for sizeClass: OUDSUserInterfaceSizeClass) -> GridRawToken { switch sizeClass { case .extraCompact: - return gridExtraCompactMinWidth + return grids.gridExtraCompactMinWidth case .compact: - return gridCompactMinWidth + return grids.gridCompactMinWidth case .regular: - return gridRegularMinWidth + return grids.gridRegularMinWidth @unknown default: fatalError("πŸ€– Raw token unavailable for \(sizeClass)!") } } - /// The max column width of a grid. + /// The max column width of a grid based on the given size class. + /// + /// ```swift + /// struct YourView: View { + /// + /// @Environment(\.theme) var theme + /// @Environment(\.oudsHorizontalSizeClass) var sizeClass + /// // Or also @Environment(\.oudsVerticalSizeClass) var sizeClass + /// + /// func someFunc() -> GridRawToken { + /// theme.gridMaxWidth(for: sizeClass) + /// } + /// } + /// ``` + /// /// - Parameter sizeClass: The current interface size class /// - Returns `GridRawToken`: The maximal width according to viewports / size classes. public final func gridMaxWidth(for sizeClass: OUDSUserInterfaceSizeClass) -> GridRawToken { switch sizeClass { case .extraCompact: - return gridExtraCompactMaxWidth + return grids.gridExtraCompactMaxWidth case .compact: - return gridCompactMaxWidth + return grids.gridCompactMaxWidth case .regular: - return gridRegularMaxWidth + return grids.gridRegularMaxWidth @unknown default: fatalError("πŸ€– Raw token unavailable for \(sizeClass)!") } } - /// The margin of a grid. + /// The margin of a grid based on the given size class. + /// + /// ```swift + /// struct YourView: View { + /// + /// @Environment(\.theme) var theme + /// @Environment(\.oudsHorizontalSizeClass) var sizeClass + /// // Or also @Environment(\.oudsVerticalSizeClass) var sizeClass + /// + /// func someFunc() -> GridRawToken { + /// theme.gridMargin(for: sizeClass) + /// } + /// } + /// ``` + /// /// - Parameter sizeClass: The current interface size class /// - Returns `GridRawToken`: The margin according to viewports / size classes. public final func gridMargin(for sizeClass: OUDSUserInterfaceSizeClass) -> GridRawToken { switch sizeClass { case .extraCompact: - return gridExtraCompactMargin + return grids.gridExtraCompactMargin case .compact: - return gridCompactMargin + return grids.gridCompactMargin case .regular: - return gridRegularMargin + return grids.gridRegularMargin @unknown default: fatalError("πŸ€– Raw token unavailable for \(sizeClass)!") } } - /// The column gap of a grid. + /// The column gap of a grid based on the given size class. + /// + /// ```swift + /// struct YourView: View { + /// + /// @Environment(\.theme) var theme + /// @Environment(\.oudsHorizontalSizeClass) var sizeClass + /// // Or also @Environment(\.oudsVerticalSizeClass) var sizeClass + /// + /// func someFunc() -> GridRawToken { + /// theme.gridColumnGap(for: sizeClass) + /// } + /// } + /// ``` + /// /// - Parameter sizeClass: The current interface size class /// - Returns `GridRawToken`: The column gap according to viewports / size classes. public final func gridColumnGap(for sizeClass: OUDSUserInterfaceSizeClass) -> GridRawToken { switch sizeClass { case .extraCompact: - return gridExtraCompactColumnGap + return grids.gridExtraCompactColumnGap case .compact: - return gridCompactColumnGap + return grids.gridCompactColumnGap case .regular: - return gridRegularColumnGap + return grids.gridRegularColumnGap @unknown default: fatalError("πŸ€– Raw token unavailable for \(sizeClass)!") } diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+OpacitySemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+OpacitySemanticTokens.swift index 35f60af62e..0b2372632a 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+OpacitySemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+OpacitySemanticTokens.swift @@ -15,7 +15,7 @@ import Foundation import OUDSTokensRaw import OUDSTokensSemantic -extension OUDSTheme: OpacitySemanticTokens { +extension OUDSOpacitySemanticTokensProvider: OpacitySemanticTokens { @objc open var opacityInvisible: OpacitySemanticToken { OpacityRawTokens.opacity0 } @objc open var opacityMedium: OpacitySemanticToken { OpacityRawTokens.opacity320 } @objc open var opacityOpaque: OpacitySemanticToken { OpacityRawTokens.opacity1000 } diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizeMultipleSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizeMultipleSemanticTokens.swift index f5b55174fb..4f7206a4a4 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizeMultipleSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizeMultipleSemanticTokens.swift @@ -21,9 +21,9 @@ import OUDSTokensSemantic // WARNING: Not synchronized anymore with the Figjam / Figma by developers team // Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml -/// Defines wrapper objects for size semantic tokens (i.e. in the end ``DimensionRawToken``). -/// 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: SizeMultipleSemanticTokens { +/// Defines provider objects for size semantic tokens (i.e. in the end `DimensionRawTokens`). +/// These values can be overriden inside ``OUDSSizeSemanticTokensProvider`` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. +extension OUDSSizeSemanticTokensProvider: SizeMultipleSemanticTokens { // MARK: - Semantic token - Sizing - Icon with typography diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizeSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizeSemanticTokens.swift index 2432a74d79..5934b8e742 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizeSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizeSemanticTokens.swift @@ -15,7 +15,7 @@ import Foundation import OUDSTokensRaw import OUDSTokensSemantic -extension OUDSTheme: SizeSemanticTokens { +extension OUDSSizeSemanticTokensProvider: SizeSemanticTokens { @objc open var sizeIconDecorative2xl: SizeSemanticToken { DimensionRawTokens.dimension900 } @objc open var sizeIconDecorative2xs: SizeSemanticToken { DimensionRawTokens.dimension200 } @objc open var sizeIconDecorativeLg: SizeSemanticToken { DimensionRawTokens.dimension600 } diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SpaceMultipleSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SpaceMultipleSemanticTokens.swift index 3915b122db..01c44e80c7 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SpaceMultipleSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SpaceMultipleSemanticTokens.swift @@ -19,9 +19,9 @@ import OUDSTokensSemantic // WARNING: Not synchronized anymore with the Figjam / Figma by developers team // Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml -/// Defines wrapper objects for space semantic tokens (i.e. in the end ``DimensionRawToken`). -/// 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: SpaceMultipleSemanticTokens { +/// Defines provider objects for space semantic tokens (i.e. in the end `DimensionRawTokens`). +/// These values can be overriden inside ``OUDSSpaceSemanticTokensProvider`` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination. +extension OUDSSpaceSemanticTokensProvider: SpaceMultipleSemanticTokens { // MARK: Semantic token - Spacing - Layout fluid diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SpaceSemanticTokens.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SpaceSemanticTokens.swift index fb5b8596a9..1bd780e9a8 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SpaceSemanticTokens.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SpaceSemanticTokens.swift @@ -15,7 +15,7 @@ import Foundation import OUDSTokensRaw import OUDSTokensSemantic -extension OUDSTheme: SpaceSemanticTokens { +extension OUDSSpaceSemanticTokensProvider: SpaceSemanticTokens { @objc open var spaceColumnGapMedium: SpaceSemanticToken { DimensionRawTokens.dimension150 } @objc open var spaceColumnGapNone: SpaceSemanticToken { DimensionRawTokens.dimension0 } @objc open var spaceColumnGapShort: SpaceSemanticToken { DimensionRawTokens.dimension100 } diff --git a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme.swift b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme.swift index 532174b645..224b04bb60 100644 --- a/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme.swift +++ b/OUDS/Core/OUDS/Sources/OUDSTheme/OUDSTheme.swift @@ -20,30 +20,106 @@ import OUDSTokensSemantic /// Any properties of an overridable theme should be defined so as to provide defaults values. /// We allow this theme to be derivated and be overriden. /// -/// `OUDSTheme` can be seen as a kind of "abstract class" in _object oriented paradigm_. +/// ``OUDSTheme`` can be seen as a kind of "abstract class" in _object oriented paradigm_. /// /// Because `OUDSTheme` is not a *final* class, its type cannot be seen as `Sendable`, that is the reason why this conformity is unchecked. /// /// **Warning: You are not supposed to use this abstract default theme directly. Please prefer `OrangeTheme` instead** open class OUDSTheme: @unchecked Sendable { + // MARK: - Properties + + /// All color semantic tokens exposed in one object + public let colors: AllColorSemanticTokens + + /// All border semantic tokens exposed in one object + public let borders: AllBorderSemanticTokens + + /// All elevation semantic tokens exposed in one object + public let elevations: AllElevationSemanticTokens + /// A theme can have a custom font which is not the system font - public let customFontFamily: FontFamilySemanticToken? + public let fontFamily: FontFamilySemanticToken? + + /// All font semantic tokens exposed in one object + public let fonts: AllFontSemanticTokens + + /// All grid semantic tokens exposed in one object + public let grids: AllGridSemanticTokens + + /// All opacity semantic tokens exposed in one object + public let opacities: AllOpacitySemanticTokens + + /// All size semantic tokens exposed in one object + public let sizes: AllSizeSemanticTokens + + /// All size semantic tokens exposed in one object + public let spaces: AllSpaceSemanticTokens + + // TODO: Add components tokens + + // MARK: - Initializers /// Defines a basic kind of abstract theme to subclass then. /// No custom font family will be used. - public convenience init() { - self.init(customFontFamily: nil) + /// - Parameters: + /// - colors: An object providing all the color semantic tokens, by default `OUDSColorSemanticTokensProvider` + /// - borders: An object providing all the border semantic tokens, by default `OUDSBorderSemanticTokensProvider` + /// - elevations: An object providing all the elevation semantic tokens, by default `OUDSElevationSemanticTokensProvider` + /// - fonts: An object providing all the font semantic tokens, by default `OUDSFontSemanticTokensProvider` + /// - grids: An object providing all the grid semantic tokens, by default `OUDSGridSemanticTokensProvider` + /// - opacities: An object providing all the opacity semantic tokens, by default `OUDSOpacitySemanticTokensProvider` + /// - sizes: An object providing all the size semantic tokens, by default `OUDSSizeSemanticTokensProvider` + /// - spaces: An object providing all the space semantic tokens, by default `OUDSSpaceSemanticTokensProvider` + public init(colors: AllColorSemanticTokens = OUDSColorSemanticTokensProvider(), + borders: AllBorderSemanticTokens = OUDSBorderSemanticTokensProvider(), + elevations: AllElevationSemanticTokens = OUDSElevationSemanticTokensProvider(), + fonts: AllFontSemanticTokens = OUDSFontSemanticTokensProvider(), + grids: AllGridSemanticTokens = OUDSGridSemanticTokensProvider(), + opacities: AllOpacitySemanticTokens = OUDSOpacitySemanticTokensProvider(), + sizes: AllSizeSemanticTokens = OUDSSizeSemanticTokensProvider(), + spaces: AllSpaceSemanticTokens = OUDSSpaceSemanticTokensProvider()) { + self.colors = colors + self.borders = borders + self.elevations = elevations + fontFamily = nil + self.fonts = fonts + self.grids = grids + self.opacities = opacities + self.sizes = sizes + self.spaces = spaces } /// Defines a basic kind of abstract theme to subclass then. /// - Parameters: - /// - customFontFamily: Set `nil` if system font to use, otherwise use the `FontFamilySemanticToken` you want to apply - public init(customFontFamily: FontFamilySemanticToken?) { - self.customFontFamily = customFontFamily + /// - colors: An object providing all the color semantic tokens, as `AllColorSemanticTokens` implementation + /// - borders: An object providing all the border semantic tokens, as `BorderSemanticTokens` implementation + /// - elevations: An object providing all the elevation semantic tokens, by default `AllElevationSemanticTokens` + /// - fontFamily: Set `nil` if system font to use, otherwise use the `FontFamilySemanticToken` you want to apply + /// - fonts: An object providing all the font semantic tokens, by default `AllFontemanticTokens` + /// - grids: An object providing all the grid semantic tokens, by default `AllGridSemanticTokens` + /// - opacities: An object providing all the opacity semantic tokens, as `AllOpacitySemanticTokens` implementation + /// - sizes: An object providing all the size semantic tokens, as `AllSizeSemanticTokens` implementation + /// - spaces: An object providing all the space semantic tokens, as `AllSpaceSemanticTokens` implementation + public init(colors: AllColorSemanticTokens, + borders: AllBorderSemanticTokens, + elevations: AllElevationSemanticTokens, + fontFamily: FontFamilySemanticToken?, + fonts: AllFontSemanticTokens, + grids: AllGridSemanticTokens, + opacities: AllOpacitySemanticTokens, + sizes: AllSizeSemanticTokens, + spaces: AllSpaceSemanticTokens) { + self.colors = colors + self.borders = borders + self.elevations = elevations + self.fontFamily = fontFamily + self.fonts = fonts + self.grids = grids + self.opacities = opacities + self.sizes = sizes + self.spaces = spaces } deinit { } - - // Please refer to extensions for properties, it will be more clear } diff --git a/OUDS/Core/OUDS/Sources/OUDSUserInterfaceSizeClass.swift b/OUDS/Core/OUDS/Sources/OUDSUserInterfaceSizeClass.swift index fe420c0dc5..d5e2897fff 100644 --- a/OUDS/Core/OUDS/Sources/OUDSUserInterfaceSizeClass.swift +++ b/OUDS/Core/OUDS/Sources/OUDSUserInterfaceSizeClass.swift @@ -69,6 +69,12 @@ extension EnvironmentValues { /// /// See: https://developer.apple.com/design/human-interface-guidelines/layout#iOS-iPadOS-device-size-classes /// Remark: This enum is defined as a string to easily display its raw value. +/// +/// To use it: +/// ```swift +/// @Environment(\.oudsHorizontalSizeClass) var horizontalSizeClass +/// @Environment(\.oudsVerticalSizeClass) var verticalSizeClass +/// ``` public enum OUDSUserInterfaceSizeClass: String, Sendable { case extraCompact = "Extra Compact" case compact = "Compact" diff --git a/OUDS/Core/OUDS/Sources/_OUDS.docc/Components.md b/OUDS/Core/OUDS/Sources/_OUDS.docc/Components.md index 18c571df74..c017aa6240 100644 --- a/OUDS/Core/OUDS/Sources/_OUDS.docc/Components.md +++ b/OUDS/Core/OUDS/Sources/_OUDS.docc/Components.md @@ -2,7 +2,7 @@ _Components_ are defined in the `OUDSComponents` target and can be integrated in applications. -❗**More details coming soon.**❗ +❗More details coming soon❗ ## How to use components diff --git a/OUDS/Core/OUDS/Sources/_OUDS.docc/GettingStarted.md b/OUDS/Core/OUDS/Sources/_OUDS.docc/GettingStarted.md index 7d6b31bc71..4861d60bc2 100644 --- a/OUDS/Core/OUDS/Sources/_OUDS.docc/GettingStarted.md +++ b/OUDS/Core/OUDS/Sources/_OUDS.docc/GettingStarted.md @@ -1,8 +1,6 @@ # Getting Started with OUDS -How to add the package as dependency, and import libraries - -❗**More details coming soon.**❗ +How to add the package as dependency, import libraries and use theme. ## Integrate OUDS @@ -12,20 +10,21 @@ If you want to add the iOS library of **Orange Unified Design System**, you need To do that, add a new _package dependency_ to your _Xcode_ project by refering to it with `https://github.com/Orange-OpenSource/ouds-ios`. You are free to choose wether or not you want a branch or a specific tag, pick the solution you want. -You can [refer to the wiki](https://github.com/Orange-OpenSource/ouds-ios/wiki/50-%E2%80%90-About-versions,-releases-and-builds) for more details about versions, releases and tags. +You can [refer to the wiki](https://github.com/Orange-OpenSource/ouds-ios/wiki/50-%E2%80%90-About-versions,-releases-and-builds) for more details about versions, releases and tags. You can find release tags (e.g. *0.8.0*) and release candidates tags (e.g. *0.8..0-rc1*). ### Import the library you need You should use one (or several) of the following imports for your needs, which are basically _Swift Package_ products. ```swift -import OUDS // If you want to define your theme or use OUDSThemeableView -import OUDSModules // To use modules -import OUDSComponents // To use components -import OUDSThemesOrange // To use the default theme -import OUDSTokensComponent // If you need to override or use directly components tokens -import OUDSTokenSemantic // If you need to override or use directly semantic tokens -import OUDSTokensRaw // If you need to override or use directly raw tokens +import OUDS // If you want to define your theme or use OUDSThemeableView +import OUDSModules // To use modules +import OUDSComponents // To use components +import OUDSThemeOrange // To use the default theme +import OUDSThemeInverse // To use the inverse theme +import OUDSTokensComponent // If you need to override or use directly components tokens +import OUDSTokenSemantic // If you need to override or use directly semantic tokens +import OUDSTokensRaw // If you need to override or use directly raw tokens ``` ### Chose your theme @@ -38,3 +37,29 @@ You can: ### Apply your theme You will need to use for your root view the [`OUDSThemeableView`](https://ios.unified-design-system.orange.com/documentation/ouds/oudsthemeableview/). [This page may help](https://ios.unified-design-system.orange.com/documentation/ouds/themes) also. + +```swift +import OUDS // To get OUDSThemeableView +import OUDSThemeOrange // To get OrangeTheme +import OUDSThemeOrange // To get OrangeTheme +import SwiftUI + +@main +struct YourApp: App { + var body: some Scene { + WindowGroup { + OUDSThemeableView(theme: OrangeTheme()) { +// or OUDSThemeableView(theme: InverseTheme()) { + // Your root view + } + } + } +} +``` + +Then get it in your views and apply the tokens you want: +```swift +import OUDS + +@Environment(\.theme) var theme +``` diff --git a/OUDS/Core/OUDS/Sources/_OUDS.docc/Modules.md b/OUDS/Core/OUDS/Sources/_OUDS.docc/Modules.md index 6116b234d2..242de1d7f3 100644 --- a/OUDS/Core/OUDS/Sources/_OUDS.docc/Modules.md +++ b/OUDS/Core/OUDS/Sources/_OUDS.docc/Modules.md @@ -3,4 +3,4 @@ A _module_ can be seen as a set of features and components to fill a need. There is not module yet. -❗**More details coming soon.**❗ +❗More details coming soon❗ diff --git a/OUDS/Core/OUDS/Sources/_OUDS.docc/Themes.md b/OUDS/Core/OUDS/Sources/_OUDS.docc/Themes.md index df8e6351e3..f6357f4b5a 100644 --- a/OUDS/Core/OUDS/Sources/_OUDS.docc/Themes.md +++ b/OUDS/Core/OUDS/Sources/_OUDS.docc/Themes.md @@ -46,54 +46,137 @@ It is quite simple, you have to follow several steps. You will have to create a _Swift class_ which will inherit from `OrangeTheme` or `OUDSTheme`. You can see `OrangeTheme` as more specified and less abtract as `OUDSTheme` which is the base of all themes. We do not recommend to use directly the `OUDSTheme` as is. -Then, you should override the _semantic tokens_ and _components tokens_ you want ; we recommend to use _Swift extensions_ for clarity reasons. +Then, you should override the _semantic tokens_ and _components tokens_ you want using the providers ; we recommend to use _Swift extensions_ for clarity reasons. If your theme needs to define its own _raw tokens_, you can also define them using a `enum` and the _raw tokens types_. -First, use the suitable imports: +### By subclassing + +You may want to define your own theme, thus you can override the `OrangeTheme` with your own class or just override the providers. + +You will have to override the tokens provider you need. To do that, make a subclass of the provider you target: +- spaces tokens are `OUDSSpaceSemanticTokensProvider` +- sizes tokens are in `OUDSSizeSemanticTokensProvider` +- colors tokens are all defined in `OrangeThemeColorSemanticTokensProvider` +- borders tokens are in `OUDSBorderSemanticTokensProvider` +- elevations tokens are in `OUDSElevationSemanticTokensProvider` +- opacity tokens are in `OUDSOpacitySemanticTokensProvider` +- grid tokens are in `OUDSGridSemanticTokensProvider` +- font tokens are in `OUDSFontSemanticTokensProvider` + +Find bellow some example + ```swift -import OUDS // To get OUDSTheme -import OUDSTokensRaw // To get raw tokens -import OUDSTokensSemantic // To get semantic tokens -import OUDSTokensComponent // To get component tokens -import OUDSThemesOrange // To override OrangeTheme (which is default theme) -``` +import OUDSTokensSemantic // To use semantic tokens if needed +import OUDSTokensRaw // To use raw tokens if needed -Then, declare the class: -``` -// If you jsut want to make a subtheme with some changes -final class YourCustomTheme: OrangeTheme { } +// Token provider for spaces -// Or for white label themes or themes with more configurations not that much related to OrangeTheme, choose the one you want -final class YourCustomTheme: OUDSTheme { } -``` +class YourAppThemeSpaceTokensProvider: OUDSSpaceSemanticTokensProvider { + override var spaceFixedMedium: SpaceSemanticToken { + DimensionRawTokens.dimension400 + } + override var spaceScaledShort: MultipleSpaceSemanticTokens { + MultipleSpaceSemanticTokens(compact: spaceFixedJumbo, regular: spaceFixedJumbo) + } +} -And define the theme by overriding the values you want: +// Token provider for sizes -``` -extension YourCustomTheme { +class YourAppThemeSizeTokensProvider: OUDSSizeSemanticTokensProvider { + override var sizeIconDecorative2xl: SizeSemanticToken { + DimensionRawTokens.dimension300 + } + override var sizeIconDecorativeMd: SizeSemanticToken { + DimensionRawTokens.dimension900 + } +} - // Override components tokens - // Not define dyet - - // Override colors semantic tokens - override public var colorBgPrimary: ColorSemanticToken { MultipleColorSemanticTokens(ColorRawTokens.colorFunctionalDarkGray880) } - - // Override some fonts semantic tokens - public var fontFamily: FontFamilySemanticToken { FontRawTokens.fontFamilySystemSFPro } - public var fontFamilyBody: FontFamilySemanticToken { MyOwnFontRawTokens.someFontBody } +// Token provider for colors - // Etc. +class YourAppThemeColorTokensProvider: OrangeThemeColorSemanticTokensProvider { + override var colorBgSecondary: MultipleColorSemanticTokens { + MultipleColorSemanticTokens(light: ColorRawTokens.colorDecorativeAmber500, dark: OrangeBrandColorRawTokens.colorOrange900) + } + override var colorActionEnabled: MultipleColorSemanticTokens { + MultipleColorSemanticTokens(light: ColorRawTokens.colorDecorativeShockingPink100, dark: ColorRawTokens.colorFunctionalScarlet600) + } } -``` -You can defined your own set of raw tokens, for example: +// Token provider for border + +class YourAppThemeBorderTokensProvider: OUDSBorderSemanticTokensProvider { + override var borderStyleDefault: BorderStyleSemanticToken { + BorderRawTokens.borderStyleDashed + } + override var borderWidthMedium: BorderWidthSemanticToken { + BorderRawTokens.borderWidth100 + } + override var borderRadiusTall: BorderRadiusSemanticToken { + BorderRawTokens.borderRadius800 + } +} + +// Token provider for elevation + +class YourAppThemeElevationTokensProvider: OUDSElevationSemanticTokensProvider { + override var elevationStickyEmphasized: ElevationCompositeSemanticToken { + ElevationCompositeSemanticToken(ElevationRawTokens.elevationBottom_4_600) + } +} + +// Token provider for opacity + +class YourAppThemeOpacityTokensProvider: OUDSOpacitySemanticTokensProvider { + override var opacityStrong: OpacitySemanticToken { + OpacityRawTokens.opacity920 + } +} + +// Token provider for grid + +class YourAppThemeGridTokensProvider: OUDSGridSemanticTokensProvider { + override var gridExtraCompactColumnGap: GridSemanticToken { + GridRawTokens.gridColumnGap200 + } + override var gridCompactColumnGap: GridSemanticToken { + GridRawTokens.gridColumnGap200 + } + override var gridRegularColumnGap: GridSemanticToken { + GridRawTokens.gridColumnGap200 + } +} + +// Token provider for font + +class YourAppThemeFontTokensProvider: OUDSFontSemanticTokensProvider { + override var typeDisplayLarge: MultipleFontCompositeRawTokens { + MultipleFontCompositeRawTokens(compact: FontRawTokens.typeRegular150, regular: FontRawTokens.typeRegular150) + } + override var typeCodeMedium: MultipleFontCompositeRawTokens { + MultipleFontCompositeRawTokens(FontRawTokens.typeBold300) + } +} ``` -public typealias MyOwnFontRawTokens = FontRawTokens // Refer to type FontRawTokens for consistency, declared in OUDSTokensRaw -public enum MyOwnFontRawTokens { +Then define your own them class and assign the providers: - public static let someFontBody: MyOwnFontRawTokens = "Arial" +```swift +import OUDS +import OUDSThemesOrange // To get OrangeTheme + +// Define your theme +class YourAppTheme: OrangeTheme { + override init() { + super.init(colors: YourAppThemeColorTokensProvider(), + borders: YourAppThemeBorderTokensProvider(), + elevations: YourAppThemeElevationTokensProvider(), + fonts: YourAppThemeFontTokensProvider(), + grids: YourAppThemeGridTokensProvider(), + opacities: YourAppThemeOpacityTokensProvider(), + sizes: YourAppThemeSizeTokensProvider(), + spaces: YourAppThemeSpaceTokensProvider()) + } } ``` @@ -106,13 +189,25 @@ import OUDS // To get ``OUDSThemeableView`` struct MyAppRootView: View { var body: some View { - OUDSThemeableView(theme: YourCustomTheme()) { + OUDSThemeableView(theme: YourAppTheme()) { // ... } } } ``` +You can define your own set of raw tokens, and asign them in the semantic tokens you override as values, for example: + +``` +public typealias MyOwnFontRawTokens = FontRawTokens // Refer to type FontRawTokens for consistency, declared in OUDSTokensRaw + +public enum MyOwnFontRawTokens { + + public static let someFontBody: MyOwnFontRawTokens = "Arial" + +} +``` + All components the OUDS library provides are based on themes, handle through the abstract `OUDSTheme`, exposing *semantic tokens*, defined by *raw tokens* assigned to usable final values. In few words, if you want to change the look and feel for the OUDS components you use, you will have to override the matching *semantic tokens*, but it will bring side effects as these *semantic tokens* are shared accross several components. In the future we will have components and *component tokens*. diff --git a/OUDS/Core/OUDS/Sources/_OUDS.docc/Tokens.md b/OUDS/Core/OUDS/Sources/_OUDS.docc/Tokens.md index 4787f99765..34805051a5 100644 --- a/OUDS/Core/OUDS/Sources/_OUDS.docc/Tokens.md +++ b/OUDS/Core/OUDS/Sources/_OUDS.docc/Tokens.md @@ -1,6 +1,6 @@ # Tokens -Design tokens represent the small, repeated design decisions that make up a design system's visual style. Tokens replace hard-coded static values, such as hexadecimal codes for color, with self-explanatory names. +Design tokens represent the small, repeated design decisions that make up a design system's visual style. Tokens wrap hard-coded static values, such as hexadecimal codes for color, with self-explanatory names. About responsabilities: ```mermaid @@ -19,7 +19,7 @@ flowchart TD ``` *You can have the graphical rendering of this _Mermaid_ charts in the [README markdown](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/OUDS/README.md).* -*Frustrated? Boost [the issue we submitted](https://github.com/swiftlang/swift-docc/issues/1026)* +*Frustrated? Boost [that issue](https://github.com/swiftlang/swift-docc-render/issues/413)* ## Component tokens @@ -32,9 +32,9 @@ No _tokens_ ([OUDSTokensComponent](https://ios.unified-design-system.orange.com/ These _tokens_ ([OUDSTokensSemantic](https://ios.unified-design-system.orange.com/documentation/oudstokenssemantic/)) can be used mainly for _component tokens_ to apply some style and configuration values. They can be seen as an high level of usage with functional meanings. -A semantic token points to a raw token, and is used by components. A semantic token brings meanings, higher level notions. For example, a raw token can be a "red color", and a semantic token pointing to it can be a "danger information color". Semantic tokens are used by components tokens and shared definition of themes. They are splitted in kind of families, i.e. borders, dimensions, colors, spacings, elevations, sizings, opacities, grids and typographies. For some of theses tokens, like for borders, subfamilies can be defined likes width, radius and style. Finally, any of these raw tokens is associated to a raw value which will be - in the end - applied to SwiftUI views inside components. Type aliases will help to make a simple math between any semantic tokens and raw tokens. Thus if we need for example to change a warning color, supposing this color is defined as a _semantic token_, we only have to change its assigned value and all components using the _semantic token_ won't be impacted in their definition, only their rendering. +A semantic token points to a raw token, and is used by components. A semantic token brings meanings, higher level notions. For example, a raw token can be a "red color", and a semantic token pointing to it can be a "danger information color". Semantic tokens are used by components tokens and shared definition of themes. They are splitted in kind of families, i.e. borders, colors, spacings, elevations, sizings, opacities, grids and fonts. For some of theses tokens, like for borders, subfamilies can be defined likes width, radius and style. Finally, any of these semantic tokens is associated to a raw value which will be - in the end - applied to SwiftUI views inside components. Type aliases will help to make a simple match between any semantic tokens and raw tokens. Thus if we need for example to change a warning color, supposing this color is defined as a _semantic token_, we only have to change its assigned value and all components using the _semantic token_ won't be impacted in their definition, only their rendering. -In addition, there are hundreds of _semantics tokens_ and we needed to add them to the abstract root theme using extensions for clarity reasons to prevent to have a _Swift class_ with thousands of lines. Each _raw token_ "family" is then declared in its dedicated _Swift protocol_ any root theme must implement. Because we choose to split responsabilities and objects into their own modules, we faced troubles to make possible for children themes to override properties declared in _protocols_ and defined in _extensions_. +In addition, there are hundreds of _semantics tokens_ and we needed to add them to the abstract root theme using extensions for clarity reasons to prevent to have a _Swift class_ with thousands of lines. Each _semantic token_ "family" is then declared in its dedicated _Swift protocol_ any root theme must implement through prociders. Because we choose to split responsabilities and objects into their own modules, we faced troubles to make possible for children themes to override properties declared in _protocols_ and defined in _extensions_. That is the reason why tokens are exposed as `@objc open` to be available and overridable anywhere. @@ -53,7 +53,7 @@ protocol ColorSemanticTokens { } // Define the semantic tokens exposed through the theme -extension OUDSTheme: ColorSemanticTokens { +extension OUDSColorSemanticTokensProvider: ColorSemanticTokens { // Color is available in the module of OUDSTheme @objc open var colorBgPrimary: ColorSemanticToken { ColorRawTokens.colorFunctionalWhite } @@ -61,15 +61,17 @@ extension OUDSTheme: ColorSemanticTokens { // If the semantic token refers to a raw token not stored in the OUDSTheme module, override later and throw error because unxpected state if used @objc open var colorBgSecondary: ColorSemanticToken { fatalError("πŸ€– Raw token unavailable for colorBgSecondary!") } - // Possible to have tokens not defined in lwoer level must only in themes implementation, throw error if used because unexpected state + // Possible to have tokens not defined in lower level but only in themes implementation, throw error if used because unexpected state @objc open var colorBgTertiary: ColorSemanticToken { fatalError("πŸ€– No value defined for colorBgTertiary!") } } // Add missing values -extension OrangeTheme: ColorSemanticTokens { +extension OrangeColorSemanticTokensProvider: OUDSColorSemanticTokensProvider { // Define value value with the accessible token @objc open var colorBgSecondary: ColorSemanticToken { OrangeBrandColorRawTokens.colorOrange200 } + + @objc open var colorBgTertiary: ColorSemanticToken { colorBgSecondary } } ``` @@ -77,9 +79,9 @@ extension OrangeTheme: ColorSemanticTokens { You may see the source code can be more simple, or the source code does not follow the Swift guidelines, or plenty of warnings of SwiftLint are disabled, or things are dirty. -In fact, rely to much on *Figma* and how the design system is implemented. -There are thousands of tokens, and we do now know if they will be used, how and by whom. In addition, the logic behind these tokens, their nature and names, is very tight to the web domain because the design team behind is more used to web environment than mobileones like Android and iOS. Some tokens like composite tokens are defined in *Figma* but *Figma* is not able to manage them, it is tinkering, and the outputed JSON cannot manage that too. -In addition, *Figma* exposts the tokens in JSON, which is then parsed with our own fork and implementation of _style dictionary_ tool which struggles to outputs the JSON to web, Kotlin and Swift assets. +In fact, we rely to much on *Figma* and how the design system is implemented. +There are thousands of tokens, and we do now know if they will be used, how and by whom. In addition, the logic behind these tokens, their nature and names, is very tight to the web domain because the design team behind is more used to web environment than mobile ones like Android and iOS. Some tokens like composite tokens are defined in *Figma* but *Figma* is not able to manage them, it is tinkering, and the outputed JSON cannot manage that too. +In addition, *Figma* exposes the tokens in JSON, which is then parsed with our own fork and implementation of _style dictionary_ tool which struggles to outputs the JSON to web, Kotlin and Swift assets. That is the reason why: - some *SwiftLint* warnings on tokens are disabled: not possible to have doc of public tokens, too long names, too long lines, too long body, too long identifiers @@ -138,6 +140,7 @@ enum OrangeBrandColorRawTokens { If you need to add, edit or remove tokens, you will have to follow some simple steps. You may need to [create an issue](https://github.com/Orange-OpenSource/ouds-ios/issues) or [a pull request](https://github.com/Orange-OpenSource/ouds-ios/pulls) to submit the evolutions you want. Use for example the _Token Update Request_ issue template. +Do not forget to add or update unit tests in order to make assertions on some rules and properties of raw tokens, and the capability of semantic tokens overridings. ### For raw tokens diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllBorderSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllBorderSemanticTokens.swift new file mode 100644 index 0000000000..d33d2d7c3a --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllBorderSemanticTokens.swift @@ -0,0 +1,53 @@ +// +// 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 required_deinit + +/// Overrides **all** the border semantic tokens (from its super class, i.e. `OUDSBorderSemanticTokensProvider`) so as to test overriding of them (unit tests) +/// and to act like smoke tests with crashing tests if some tokens disappeared. +final class MockThemeBorderSemanticTokensProvider: OUDSBorderSemanticTokensProvider { + + static let mockThemeBorderWidthRawToken: BorderWidthRawToken = 1_337 + static let mockThemeBorderRadiusRawToken: BorderRadiusRawToken = 42 + static let mockThemeBorderStyleRawToken: BorderStyleRawToken = "(β•―Β°β–‘Β°οΌ‰β•―οΈ΅ ┻━┻" + + // MARK: Semantic token - Border - Width + + override public var borderWidthNone: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken } + override public var borderWidthDefault: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken } + override public var borderWidthThin: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken } + override public var borderWidthMedium: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken } + override public var borderWidthThick: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken } + override public var borderWidthThicker: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken } + override public var borderWidthFocus: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken } + override public var borderWidthFocusInset: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken } + + // MARK: Semantic token - Border - Radius + + override public var borderRadiusNone: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } + override public var borderRadiusDefault: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } + override public var borderRadiusShort: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } + override public var borderRadiusMedium: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } + override public var borderRadiusTall: BorderRadiusSemanticToken { Self.mockThemeBorderRadiusRawToken } + + // MARK: Semantic token - Border - Style + + override public var borderStyleDefault: BorderStyleSemanticToken { Self.mockThemeBorderStyleRawToken } + override public var borderStyleDrag: BorderStyleSemanticToken { Self.mockThemeBorderStyleRawToken } +} + +// swiftlint:enable required_deinit diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllColorSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllColorSemanticTokens.swift new file mode 100644 index 0000000000..62fc491046 --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllColorSemanticTokens.swift @@ -0,0 +1,631 @@ +// +// 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 +// swiftlint:disable required_deinit +// swiftlint:disable type_body_length + +/// Overrides **all** the color semantic tokens (from its super class, i.e. `OUDSColorSemanticTokensProvider`) so as to test overriding of them (unit tests) +/// and to act like smoke tests with crashing tests if some tokens disappeared. +/// This ``MockThemeColorSemanticTokensProvider`` will be asigned in ``MockTheme`` as an ``AllColorSemanticTokens`` implementation. +open class MockThemeColorSemanticTokensProvider: OUDSColorSemanticTokensProvider { + + static let mockThemeMultipleColorSemanticTokens = MultipleColorSemanticTokens("#68489D") + static let mockThemeSemanticColorTokens: ColorSemanticToken = "#68489D" + + // MARK: - Color semantic tokens - Light and dark + + override public var colorOpacityInvisibleBlackLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorOpacityInvisibleBlackDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorOpacityInvisibleWhiteLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorOpacityInvisibleWhiteDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorActionDisabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionEnabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionFocusLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionHighlightedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionHoverLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionLoadingLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionNegativeEnabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionNegativeFocusLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionNegativeHoverLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionNegativeLoadingLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionNegativePressedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorActionNegativeEnabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionNegativeFocusDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionNegativeHoverDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionNegativeLoadingDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionNegativePressedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorActionPressedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionSelectedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionSupportEnabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionSupportFocusLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionSupportHoverLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionSupportLoadingLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionSupportPressedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorActionSupportEnabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionSupportFocusDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionSupportHoverDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionSupportLoadingDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionSupportPressedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorActionVisitedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionDisabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionEnabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionFocusDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionHighlightedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionHoverDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionLoadingDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionPressedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionSelectedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorActionVisitedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorAlwaysBlackLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorAlwaysOnBlackLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorAlwaysOnWhiteLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorAlwaysWhiteLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorAlwaysBlackDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorAlwaysOnBlackDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorAlwaysOnWhiteDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorAlwaysWhiteDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorBgEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBgPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBgSecondaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBgTertiaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorBgEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBgPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBgSecondaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBgTertiaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorBorderBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBorderDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBorderEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBorderFocusLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBorderFocusInsetLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBorderOnBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorBorderOnBrandPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBorderBrandPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBorderDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBorderEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBorderFocusDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorBorderFocusInsetDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorContentBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentDisabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionDisabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionEnabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionFocusLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionHighlightedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionHoverLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionLoadingLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionNegativeLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionPressedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorContentOnActionDisabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionEnabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionFocusDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionHighlightedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionHoverDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionLoadingDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionNegativeDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnActionPressedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorContentOnBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnBrandPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnOverlayEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnOverlayEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnStatusEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnStatusEmphasizedNeutralLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnStatusMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnStatusEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnStatusEmphasizedNeutralDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentOnStatusMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorContentStatusInfoLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentStatusNegativeLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentStatusPositiveLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentStatusWarningLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentStatusInfoDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentStatusNegativeDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentStatusPositiveDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorContentStatusWarningDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorOverlayDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorOverlayDragLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorOverlayEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorOverlayModalLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorOverlayDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorOverlayDragDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorOverlayEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorOverlayModalDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorSurfaceBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceBrandPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusAccentEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusAccentMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusAccentEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusAccentMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusInfoEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusInfoMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusInfoEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusInfoMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusNegativeEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusNegativeMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusNegativeEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusNegativeMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusNeutralEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusNeutralMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusNeutralEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusNeutralMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusPositiveEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusPositiveMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusPositiveEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusPositiveMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusWarningEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusWarningMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusWarningEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorSurfaceStatusWarningMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorDecorativeAccent1DefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent1EmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent1MutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent1DefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent1EmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent1MutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorDecorativeAccent2DefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent2EmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent2MutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent2DefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent2EmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent2MutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorDecorativeAccent3DefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent3EmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent3MutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent3DefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent3EmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent3MutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorDecorativeAccent4DefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent4EmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent4MutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent4DefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent4EmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent4MutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorDecorativeAccent5DefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent5EmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent5MutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent5DefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent5EmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeAccent5MutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorDecorativeBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeBrandSecondaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeBrandTertiaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeBrandPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeBrandSecondaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeBrandTertiaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorDecorativeNeutralDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeNeutralEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeNeutralMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeNeutralDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeNeutralEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeNeutralMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorDecorativeSkinTint100Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint200Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint300Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint400Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint500Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint600Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint700Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint800Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint900Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorDecorativeSkinTint100Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint200Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint300Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint400Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint500Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint600Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint700Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint800Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorDecorativeSkinTint900Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorChartCategoricalTier1Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier2Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier3Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier4Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier5Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier6Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier7Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier8Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier9Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier10Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorChartCategoricalTier1Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier2Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier3Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier4Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier5Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier6Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier7Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier8Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier9Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartCategoricalTier10Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorChartFunctionalInformationLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartFunctionalNegativeLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartFunctionalPositiveLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartFunctionalWarningLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorChartFunctionalInformationDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartFunctionalNegativeDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartFunctionalPositiveDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartFunctionalWarningDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorChartGridlinesLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartHighlightLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorChartNeutralLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryAccentDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryAccentHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryAccentLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryAccentLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryAccentDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryAccentHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryAccentLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryAccentLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryInfoDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryInfoHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryInfoLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryInfoLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryInfoDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryInfoHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryInfoLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryInfoLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryNegativeDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNegativeHighLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNegativeHigherLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNegativeHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryNegativeLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNegativeLowerLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNegativeLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryNegativeDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNegativeHighDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNegativeHigherDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNegativeHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryNegativeLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNegativeLowerDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNegativeLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryNeutralEmphasizedBlackLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralEmphasizedHighLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralEmphasizedHigherLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralEmphasizedHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralEmphasizedMediumLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryNeutralEmphasizedBlackDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralEmphasizedHighDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralEmphasizedHigherDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralEmphasizedHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralEmphasizedMediumDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryNeutralMutedLowerLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralMutedLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralMutedWhiteLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryNeutralMutedLowerDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralMutedLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryNeutralMutedWhiteDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryOpacityBlackHigherLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackLowerLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackMediumLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackTransparentLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryOpacityBlackHigherDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackLowerDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackMediumDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityBlackTransparentDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryOpacityInfoLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityNegativeLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityPositiveLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWarningLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryOpacityWhiteHighLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteHigherLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteLowerLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteTransparentLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryOpacityWhiteHighDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteHigherDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteLowerDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWhiteTransparentDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryOpacityInfoDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityNegativeDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityPositiveDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryOpacityWarningDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryPositiveDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryPositiveHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryPositiveLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryPositiveLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryPositiveDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryPositiveHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryPositiveLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryPositiveLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryPrimaryDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryPrimaryLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryPrimaryDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryPrimaryLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryWarningDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryWarningHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryWarningLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryWarningLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + override public var colorRepositoryWarningDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryWarningHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryWarningLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + override public var colorRepositoryWarningLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } + + // MARK: - Color semantic tokens - Multiples + + // MARK: - Color - Opacity - Invisible + + override public var colorOpacityInvisibleBlack: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorOpacityInvisibleWhite: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + + // MARK: - Color - Action + + override public var colorActionDisabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionEnabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionFocus: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionHighlighted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionHover: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionLoading: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionNegativeEnabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionNegativeFocus: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionNegativeHover: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionNegativeLoading: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionNegativePressed: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionPressed: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionSelected: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionSupportEnabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionSupportFocus: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionSupportHover: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionSupportLoading: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionSupportPressed: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorActionVisited: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + + // MARK: - Color - Always + + override public var colorAlwaysBlack: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorAlwaysOnBlack: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorAlwaysOnWhite: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorAlwaysWhite: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + + // MARK: - Color - Background + + override public var colorBgEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorBgPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorBgSecondary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorBgTertiary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + + // MARK: - Color - Border + + override public var colorBorderBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorBorderDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorBorderEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorBorderFocus: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorBorderFocusInset: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorBorderOnBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + + // MARK: - Color - Content + + override public var colorContentBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentDisabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnActionDisabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnActionEnabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnActionFocus: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnActionHighlighted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnActionHover: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnActionLoading: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnActionNegative: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnActionPressed: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnOverlayEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnStatusEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnStatusEmphasizedNeutral: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentOnStatusMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentStatusInfo: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentStatusNegative: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentStatusPositive: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorContentStatusWarning: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + + // MARK: - Color - Overlay + + override public var colorOverlayDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorOverlayDrag: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorOverlayEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorOverlayModal: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + + // MARK: - Color - Surface + + override public var colorSurfaceBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusAccentEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusAccentMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusInfoEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusInfoMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusNegativeEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusNegativeMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusNeutralEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusNeutralMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusPositiveEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusPositiveMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusWarningEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorSurfaceStatusWarningMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + + // MARK: - Color - Decorative + + override public var colorDecorativeAccent1Default: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent1Emphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent1Muted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent2Default: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent2Emphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent2Muted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent3Default: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent3Emphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent3Muted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent4Default: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent4Emphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent4Muted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent5Default: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent5Emphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeAccent5Muted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeBrandSecondary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeBrandTertiary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeNeutralDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeNeutralEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeNeutralMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeSkinTint100: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeSkinTint200: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeSkinTint300: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeSkinTint400: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeSkinTint500: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeSkinTint600: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeSkinTint700: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeSkinTint800: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorDecorativeSkinTint900: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + + // MARK: - Color - Chart + + override public var colorChartCategoricalTier1: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartCategoricalTier2: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartCategoricalTier3: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartCategoricalTier4: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartCategoricalTier5: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartCategoricalTier6: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartCategoricalTier7: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartCategoricalTier8: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartCategoricalTier9: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartCategoricalTier10: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartFunctionalInformation: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartFunctionalNegative: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartFunctionalPositive: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartFunctionalWarning: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartGridlines: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartHighlight: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorChartNeutral: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + + // MARK: - Color - Repository + + override public var colorRepositoryAccentDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryAccentHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryAccentLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryAccentLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryInfoDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryInfoHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryInfoLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryInfoLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNegativeDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNegativeHigh: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNegativeHigher: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNegativeHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNegativeLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNegativeLower: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNegativeLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNeutralEmphasizedBlack: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNeutralEmphasizedHigh: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNeutralEmphasizedHigher: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNeutralEmphasizedHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNeutralEmphasizedMedium: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNeutralMutedLower: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNeutralMutedLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryNeutralMutedWhite: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityBlackHigher: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityBlackHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityBlackLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityBlackLower: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityBlackLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityBlackMedium: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityBlackTransparent: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityInfo: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityNegative: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityPositive: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityWarning: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityWhiteHigh: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityWhiteHigher: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityWhiteHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityWhiteLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityWhiteLower: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityWhiteLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryOpacityWhiteTransparent: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryPositiveDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryPositiveHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryPositiveLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryPositiveLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryPrimaryDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryPrimaryLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryWarningDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryWarningHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryWarningLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } + override public var colorRepositoryWarningLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } +} + +// swiftlint:enable required_deinit +// swiftlint:enable type_body_length diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllElevationSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllElevationSemanticTokens.swift new file mode 100644 index 0000000000..fd923c6a96 --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllElevationSemanticTokens.swift @@ -0,0 +1,115 @@ +// +// 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 required_deinit +// swiftlint:disable identifier_name +// swiftlint:disable line_length + +/// Overrides **all** the elevation semantic tokens, both simple, multiple and composites (from its super class, i.e. `OUDSElevationSemanticTokensProvider` so as to test overriding of them (unit tests) +/// and to act like smoke tests with crashing tests if some tokens disappeared. +/// This ``MockThemeElevationSemanticTokensProvider`` will be asigned in ``MockTheme`` as an ``AllElevationSemanticTokens`` implementation. +final class MockThemeElevationSemanticTokensProvider: OUDSElevationSemanticTokensProvider { + + // MARK: Semantic token - Elevation - Box shadow (Composites) + + static let mockThemeElevationCompositeSemanticToken = ElevationCompositeSemanticToken(ElevationRawTokens.elevationBottom_1_600) + + override public var elevationNone: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override public var elevationRaised: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override public var elevationDrag: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override public var elevationOverlayDefault: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override public var elevationOverlayEmphasized: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override public var elevationStickyDefault: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override public var elevationStickyEmphasized: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + override public var elevationStickyNavigationScrolled: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } + + // MARK: - Semantic token - Elevation + + static let mockThemeElevationXRawToken: ElevationRawToken = 711 + static let mockThemeElevationYRawToken: ElevationRawToken = 713 + static let mockThemeElevationBlurRawToken: ElevationRawToken = 816 + static let mockThemeElevationColorRawToken: ColorRawToken = ColorRawTokens.colorFunctionalMalachite500 + static let mockThemeElevationMultipleColorSemanticToken = MultipleColorSemanticTokens(mockThemeElevationColorRawToken) + + // MARK: Semantic token - Elevation - X + + override public var elevationXNone: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override public var elevationXRaised: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override public var elevationXDrag: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override public var elevationXStickyDefault: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override public var elevationXStickyEmphasized: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + override public var elevationXStickyNavigationScrolled: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } + + // MARK: Semantic token - Elevation - Y + + override public var elevationYNone: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override public var elevationYRaised: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override public var elevationYDrag: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override public var elevationYStickyDefault: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override public var elevationYStickyEmphasized: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + override public var elevationYStickyNavigationScrolled: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } + + // MARK: Semantic token - Elevation - Blur + + override public var elevationBlurNone: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override public var elevationBlurRaised: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override public var elevationBlurDrag: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override public var elevationBlurStickyDefault: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override public var elevationBlurStickyEmphasized: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + override public var elevationBlurStickyNavigationScrolled: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } + + // MARK: Semantic token - Elevation - Color (Multiples) + + override public var elevationColorDefault: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } + override public var elevationColorNone: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } + override public var elevationColorRaised: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } + override public var elevationColorDrag: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } + override public var elevationColorEmphasized: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } + override public var elevationColorStickyDefault: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } + override public var elevationColorStickyEmphasized: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } + override public var elevationColorStickyNavigationScrolled: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } + + // MARK: Semantic token - Elevation - Color (semantic tokens) + + override public var elevationColorDefaultLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorDefaultDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorNoneLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorNoneDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorRaisedLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorRaisedDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorDragLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorDragDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorEmphasizedLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorEmphasizedDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorStickyDefaultLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorStickyDefaultDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorStickyEmphasizedLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorStickyEmphasizedDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorStickyNavigationScrolledLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } + override public var elevationColorStickyNavigationScrolledDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } +} + +// swiftlint:enable required_deinit +// swiftlint:enable identifier_name +// swiftlint:enable line_length diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllFontSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllFontSemanticTokens.swift new file mode 100644 index 0000000000..1c7756c0cc --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllFontSemanticTokens.swift @@ -0,0 +1,222 @@ +// +// 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 line_length +// swiftlint:disable required_deinit + +/// Overrides **all** the font semantic tokens, both simple, multiple and composites (from its super class, i.e. `OUDSFontSemanticTokensProvider` so as to test overriding of them (unit tests) +/// and to act like smoke tests with crashing tests if some tokens disappeared. +final class MockThemeFontSemanticTokensProvider: OUDSFontSemanticTokensProvider { + + // MARK: Semantic tokens - Not composites + + static let mockThemeFontFamilyRawToken: FontFamilyRawToken = "oΒ°xXSkyBl0GF0ntxXxΒ°o" + static let mockThemeFontWeightRawToken: FontWeightRawToken = 888 + static let mockThemeFontSizeRawToken: FontSizeRawToken = 666 + static let mockThemeFontLineHeightRawToken: FontLineHeightRawToken = 321 + static let mockThemeFontLetterSpacingRawToken: FontLetterSpacingRawToken = 21_092_024 + static let mockThemeMultipleFontSizeTokens = MultipleFontSizeSemanticTokens(mockThemeFontSizeRawToken) + static let mockThemeMultipleFontLineHeightTokens = MultipleFontLineHeightSemanticTokens(mockThemeFontLineHeightRawToken) + static let mockThemeMultipleFontLetterSpacingTokens = MultipleFontLetterSpacingSemanticTokens(mockThemeFontLetterSpacingRawToken) + + // MARK: Semantic token - Typography - Font - Family + + override public var fontFamily: FontFamilySemanticToken { Self.mockThemeFontFamilyRawToken } + + // MARK: Semantic token - Typography - Font - Weight + + override public var fontWeightDefault: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } + override public var fontWeightCode: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } + override public var fontWeightStrong: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } + override public var fontWeightDisplay: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } + override public var fontWeightHeading: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } + override public var fontWeightBodyDefault: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } + override public var fontWeightBodyStrong: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } + override public var fontWeightLabelDefault: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } + override public var fontWeightLabelStrong: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } + + // MARK: - Semantic token - Typography - Multiples + + // MARK: Semantic token - Typography - Font - Size + + override public var fontSizeDisplayLarge: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } + override public var fontSizeDisplayMedium: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } + override public var fontSizeDisplaySmall: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } + override public var fontSizeHeadingXlarge: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } + override public var fontSizeHeadingLarge: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } + override public var fontSizeHeadingMedium: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } + override public var fontSizeHeadingSmall: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } + override public var fontSizeBodyLarge: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } + override public var fontSizeBodyMedium: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } + override public var fontSizeBodySmall: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } + override public var fontSizeLabelXlarge: FontSizeSemanticToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeLabelLarge: FontSizeSemanticToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeLabelMedium: FontSizeSemanticToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeLabelSmall: FontSizeSemanticToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeCodeMedium: FontSizeSemanticToken { Self.mockThemeFontSizeRawToken } + + // MARK: - Semantic token - Typography - Font - Line height + + override public var fontLineHeightDisplayLarge: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } + override public var fontLineHeightDisplayMedium: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } + override public var fontLineHeightDisplaySmall: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } + override public var fontLineHeightHeadingXlarge: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } + override public var fontLineHeightHeadingLarge: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } + override public var fontLineHeightHeadingMedium: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } + override public var fontLineHeightHeadingSmall: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } + override public var fontLineHeightBodyLarge: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } + override public var fontLineHeightBodyMedium: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } + override public var fontLineHeightBodySmall: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } + override public var fontLineHeightLabelXlarge: FontLineHeightSemanticToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightLabelLarge: FontLineHeightSemanticToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightLabelMedium: FontLineHeightSemanticToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightLabelSmall: FontLineHeightSemanticToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightCodeMedium: FontLineHeightSemanticToken { Self.mockThemeFontLineHeightRawToken } + + // MARK: - Semantic token - Typography - Font - Letter spacing + + override public var fontLetterSpacingDisplayLarge: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } + override public var fontLetterSpacingDisplayMedium: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } + override public var fontLetterSpacingDisplaySmall: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } + override public var fontLetterSpacingHeadingXlarge: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } + override public var fontLetterSpacingHeadingLarge: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } + override public var fontLetterSpacingHeadingMedium: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } + override public var fontLetterSpacingHeadingSmall: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } + override public var fontLetterSpacingBodyLarge: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } + override public var fontLetterSpacingBodyMedium: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } + override public var fontLetterSpacingBodySmall: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } + override public var fontLetterSpacingLabelXlarge: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingLabelLarge: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingLabelMedium: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingLabelSmall: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingCodeMedium: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + + // MARK: - Semantic token - Typography - Pure semantic + + // MARK: Semantic token - Typography - Font - Size + + override public var fontSizeDisplayLargeMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeDisplayLargeTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeDisplayMediumMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeDisplayMediumTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeDisplaySmallMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeDisplaySmallTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeHeadingXlargeMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeHeadingXlargeTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeHeadingLargeMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeHeadingLargeTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeHeadingMediumMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeHeadingMediumTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeHeadingSmallMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeHeadingSmallTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeBodyLargeMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeBodyLargeTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeBodyMediumMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeBodyMediumTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeBodySmallMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + override public var fontSizeBodySmallTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } + + // MARK: - Semantic token - Typography - Font - Line height + + override public var fontLineHeightDisplayLargeMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightDisplayLargeTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightDisplayMediumMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightDisplayMediumTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightDisplaySmallMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightDisplaySmallTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightHeadingXlargeMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightHeadingXlargeTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightHeadingLargeMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightHeadingLargeTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightHeadingMediumMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightHeadingMediumTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightHeadingSmallMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightHeadingSmallTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightBodyLargeMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightBodyLargeTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightBodyMediumMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightBodyMediumTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightBodySmallMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + override public var fontLineHeightBodySmallTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } + + // MARK: - Semantic token - Typography - Font - Letter spacing + + override public var fontLetterSpacingDisplayLargeMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingDisplayLargeTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingDisplayMediumMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingDisplayMediumTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingDisplaySmallMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingDisplaySmallTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingHeadingXlargeMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingHeadingXlargeTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingHeadingLargeMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingHeadingLargeTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingHeadingMediumMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingHeadingMediumTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingHeadingSmallMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingHeadingSmallTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingBodyLargeMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingBodyLargeTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingBodyMediumMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingBodyMediumTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingBodySmallMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + override public var fontLetterSpacingBodySmallTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } + + // MARK: Semantic tokens - Composites + + static let mockThemeMultipleFontCompositeRawTokens = MultipleFontCompositeRawTokens(FontRawTokens.typeBold1850) + + // MARK: - Semantic tokens - Typography - Composites - Display + + override public var typeDisplayLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeDisplayMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeDisplaySmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + + // MARK: - Semantic tokens - Typography - Composites - Heading + + override public var typeHeadingXLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeHeadingLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeHeadingMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeHeadingSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + + // MARK: - Semantic tokens - Typography - Composites - Body + + override public var typeBodyDefaultLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeBodyDefaultMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeBodyDefaultSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeBodyStrongLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeBodyStrongMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeBodyStrongSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + + // MARK: - Semantic tokens - Typography - Composites - Label + + override public var typeLabelDefaultXLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeLabelDefaultLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeLabelDefaultMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeLabelDefaultSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeLabelStrongXLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeLabelStrongLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeLabelStrongMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeLabelStrongSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + + // MARK: - Semantic tokens - Typography - Composites - Code + + override public var typeCodeMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } + override public var typeCodeSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } +} + +// swiftlint:enable line_length +// swiftlint:enable required_deinit diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllGridSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllGridSemanticTokens.swift new file mode 100644 index 0000000000..fe5700746b --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllGridSemanticTokens.swift @@ -0,0 +1,42 @@ +// +// 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 required_deinit + +/// Overrides **all** the grid semantic tokens (from its super class, i.e. `OUDSGridSemanticTokensProvider` so as to test overriding of them (unit tests) +/// and to act like smoke tests with crashing tests if some tokens disappeared. +final class MockThemeGridSemanticTokensProvider: OUDSGridSemanticTokensProvider { + + static let mockThemeGridRawToken: GridRawToken = 3_630 + + override public var gridExtraCompactMinWidth: GridSemanticToken { Self.mockThemeGridRawToken } + override public var gridExtraCompactMaxWidth: GridSemanticToken { Self.mockThemeGridRawToken } + override public var gridExtraCompactMargin: GridSemanticToken { Self.mockThemeGridRawToken } + override public var gridExtraCompactColumnGap: GridSemanticToken { Self.mockThemeGridRawToken } + + override public var gridCompactMinWidth: GridSemanticToken { Self.mockThemeGridRawToken } + override public var gridCompactMaxWidth: GridSemanticToken { Self.mockThemeGridRawToken } + override public var gridCompactMargin: GridSemanticToken { Self.mockThemeGridRawToken } + override public var gridCompactColumnGap: GridSemanticToken { Self.mockThemeGridRawToken } + + override public var gridRegularMinWidth: GridSemanticToken { Self.mockThemeGridRawToken } + override public var gridRegularMaxWidth: GridSemanticToken { Self.mockThemeGridRawToken } + override public var gridRegularMargin: GridSemanticToken { Self.mockThemeGridRawToken } + override public var gridRegularColumnGap: GridSemanticToken { Self.mockThemeGridRawToken } +} + +// swiftlint:enable required_deinit diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllOpacitySemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllOpacitySemanticTokens.swift new file mode 100644 index 0000000000..713e3b170c --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllOpacitySemanticTokens.swift @@ -0,0 +1,34 @@ +// +// 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 required_deinit + +/// Overrides **all** the opacity semantic tokens (from its super class, i.e. `OUDSOpacitySemanticTokensProvider`) so as to test overriding of them (unit tests) +/// and to act like smoke tests with crashing tests if some tokens disappeared. +final class MockThemeOpacitySemanticTokensProvider: OUDSOpacitySemanticTokensProvider { + + static let mockThemeOpacityRawToken: OpacityRawToken = 713 + + override public var opacityInvisible: OpacitySemanticToken { Self.mockThemeOpacityRawToken } + override public var opacityWeaker: OpacitySemanticToken { Self.mockThemeOpacityRawToken } + override public var opacityWeak: OpacitySemanticToken { Self.mockThemeOpacityRawToken } + override public var opacityMedium: OpacitySemanticToken { Self.mockThemeOpacityRawToken } + override public var opacityStrong: OpacitySemanticToken { Self.mockThemeOpacityRawToken } + override public var opacityOpaque: OpacitySemanticToken { Self.mockThemeOpacityRawToken } +} + +// swiftlint:enable required_deinit diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllSizeSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllSizeSemanticTokens.swift new file mode 100644 index 0000000000..10457e345b --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllSizeSemanticTokens.swift @@ -0,0 +1,197 @@ +// +// 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 required_deinit + +/// Overrides **all** the size semantic tokens (from its super class, i.e. `OUDSSizeSemanticTokensProvider` so as to test overriding of them (unit tests) +/// and to act like smoke tests with crashing tests if some tokens disappeared. +final class MockThemeSizeSemanticTokensProvider: OUDSSizeSemanticTokensProvider { + + static let mockThemeSizeRawToken: DimensionRawToken = 118_000 + static let mockThemeSizeCompositeToken = MultipleSizeSemanticTokens(compact: 1, regular: 151) + + // MARK: - Semantic token - Sizing - Icon with typography - Multiples + + override public var sizeIconWithHeadingXlargeSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithHeadingXlargeSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithHeadingXlargeSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + + override public var sizeIconWithHeadingLargeSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithHeadingLargeSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithHeadingLargeSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + + override public var sizeIconWithHeadingMediumSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithHeadingMediumSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithHeadingMediumSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + + override public var sizeIconWithHeadingSmallSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithHeadingSmallSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithHeadingSmallSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + + override public var sizeIconWithBodyLargeSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithBodyLargeSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithBodyLargeSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + + override public var sizeIconWithBodyMediumSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithBodyMediumSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithBodyMediumSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + + override public var sizeIconWithBodySmallSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithBodySmallSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeIconWithBodySmallSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + + // MARK: - Semantic token - Sizing - Icon with typography - Pure semantic + + override public var sizeIconWithHeadingXlargeSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingXlargeSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithHeadingXlargeSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingXlargeSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithHeadingXlargeSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingXlargeSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithHeadingLargeSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingLargeSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithHeadingLargeSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingLargeSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithHeadingLargeSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingLargeSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithHeadingMediumSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingMediumSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithHeadingMediumSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingMediumSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithHeadingMediumSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingMediumSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithHeadingSmallSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingSmallSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithHeadingSmallSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingSmallSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithHeadingSmallSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithHeadingSmallSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithBodyLargeSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithBodyLargeSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithBodyLargeSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithBodyLargeSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithBodyLargeSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithBodyLargeSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithBodyMediumSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithBodyMediumSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithBodyMediumSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithBodyMediumSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithBodyMediumSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithBodyMediumSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithBodySmallSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithBodySmallSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithBodySmallSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithBodySmallSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithBodySmallSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithBodySmallSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithLabelXlargeSizeSm: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithLabelXlargeSizeMd: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithLabelXlargeSizeLg: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithLabelLargeSizeXs: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithLabelLargeSizeSm: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithLabelLargeSizeMd: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithLabelLargeSizeLg: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithLabelLargeSizeXl: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithLabelMediumSizeSm: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithLabelMediumSizeMd: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithLabelMediumSizeLg: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeIconWithLabelSmallSizeSm: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithLabelSmallSizeMd: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconWithLabelSmallSizeLg: SizeSemanticToken { Self.mockThemeSizeRawToken } + + // MARK: - Semantic token - Sizing - Icon decorative + + override public var sizeIconDecorative2xs: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconDecorativeXs: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconDecorativeSm: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconDecorativeMd: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconDecorativeLg: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconDecorativeXl: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeIconDecorative2xl: SizeSemanticToken { Self.mockThemeSizeRawToken } + + // MARK: - Semantic token - Sizing - Max width typography - Multiples + + override public var sizeMaxWidthTypeDisplayLarge: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeMaxWidthTypeDisplayMedium: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeMaxWidthTypeDisplaySmall: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + + override public var sizeMaxWidthTypeHeadingXlarge: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeMaxWidthTypeHeadingLarge: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeMaxWidthTypeHeadingMedium: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeMaxWidthTypeHeadingSmall: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + + override public var sizeMaxWidthTypeBodyLarge: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeMaxWidthTypeBodyMedium: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + override public var sizeMaxWidthTypeBodySmall: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } + + // MARK: - Semantic token - Sizing - Max width typography - Pure semantic + + override public var sizeMaxWidthTypeDisplayLargeMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeMaxWidthTypeDisplayLargeTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeMaxWidthTypeDisplayMediumMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeMaxWidthTypeDisplayMediumTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeMaxWidthTypeDisplaySmallMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeMaxWidthTypeDisplaySmallTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeMaxWidthTypeHeadingXlargeMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeMaxWidthTypeHeadingXlargeTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeMaxWidthTypeHeadingLargeMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeMaxWidthTypeHeadingLargeTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeMaxWidthTypeHeadingMediumMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeMaxWidthTypeHeadingMediumTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeMaxWidthTypeHeadingSmallMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeMaxWidthTypeHeadingSmallTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeMaxWidthTypeBodyLargeMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeMaxWidthTypeBodyLargeTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeMaxWidthTypeBodyMediumMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeMaxWidthTypeBodyMediumTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } + + override public var sizeMaxWidthTypeBodySmallMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } + override public var sizeMaxWidthTypeBodySmallTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } +} + +// swiftlint:enable required_deinit diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllSpaceSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllSpaceSemanticTokens.swift new file mode 100644 index 0000000000..2a514d7868 --- /dev/null +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+AllSpaceSemanticTokens.swift @@ -0,0 +1,133 @@ +// +// 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 required_deinit + +/// Overrides **all** the space semantic tokens (from its super class, i.e. `OUDSSpaceSemanticTokensProvider` so as to test overriding of them (unit tests) +/// and to act like smoke tests with crashing tests if some tokens disappeared. +final class MockThemeSpaceSemanticTokensProvider: OUDSSpaceSemanticTokensProvider { + + static let mockThemeSpaceRawToken: DimensionRawToken = 911 + static let mockThemeSpaceSemanticToken = MultipleSpaceSemanticTokens(compact: 1, regular: 151) + + // MARK: Semantic token - Spacing - Layout fluid (multiple) + + override public var spaceScaledNone: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } + override public var spaceScaledSmash: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } + override public var spaceScaledShortest: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } + override public var spaceScaledShorter: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } + override public var spaceScaledShort: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } + override public var spaceScaledMedium: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } + override public var spaceScaledTall: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } + override public var spaceScaledTaller: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } + override public var spaceScaledTallest: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } + override public var spaceScaledSpacious: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } + + // MARK: Semantic token - Spacing - Layout fluid (pure semantic) + + override public var spaceScaledNoneMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledNoneTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledSmashMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledSmashTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledShortestMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledShortestTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledShorterMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledShorterTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledShortMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledShortTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledMediumMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledMediumTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledTallMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledTallTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledTallerMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledTallerTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledTallestMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledTallestTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledSpaciousMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceScaledSpaciousTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + + // MARK: Semantic token - Spacing - Layout fix + + override public var spaceFixedNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceFixedSmash: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceFixedShortest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceFixedShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceFixedShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceFixedMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceFixedTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceFixedTaller: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceFixedTallest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceFixedSpacious: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceFixedHuge: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceFixedJumbo: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + + // MARK: Semantic token - Spacing - Padding - Padding inline + + override public var spacePaddingInlineNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingInlineSmash: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingInlineShortest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingInlineShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingInlineShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingInlineMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingInlineTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingInlineTaller: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingInlineTallest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingInlineSpacious: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingInlineHuge: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + + // MARK: Semantic token - Padding - Padding stack + + override public var spacePaddingBlockNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingBlockShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingBlockShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingBlockMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingBlockTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingBlockTaller: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spacePaddingBlockTallest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + + // MARK: Semantic token - Padding - Padding inset + + override public var spaceInsetNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceInsetSmash: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceInsetShortest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceInsetShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceInsetShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceInsetMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceInsetTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceInsetTaller: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceInsetTallest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceInsetSpacious: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + + // MARK: Semantic token - Padding - Gap inline + + override public var spaceColumnGapNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceColumnGapShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceColumnGapShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceColumnGapMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceColumnGapTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceColumnGapTaller: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + + // MARK: Semantic token - Padding - Gap stack + + override public var spaceRowGapNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceRowGapShortest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceRowGapShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceRowGapShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceRowGapMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } + override public var spaceRowGapTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } +} + +// swiftlint:enable required_deinit diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+BorderSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+BorderSemanticTokens.swift deleted file mode 100644 index 53ee96a155..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+BorderSemanticTokens.swift +++ /dev/null @@ -1,49 +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 - -/// Overrides **all** the border semantic tokens (from its super class, i.e. `OUDSTheme` so as to test overriding of them (unit tests) -/// and to act like smoke tests with crashing tests if some tokens disappeared. -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 borderWidthFocus: BorderWidthSemanticToken { Self.mockThemeBorderWidthRawToken } - override open var borderWidthFocusInset: 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 deleted file mode 100644 index d632e66fb7..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ColorSemanticTokens.swift +++ /dev/null @@ -1,625 +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 file_length - -/// Overrides **all** the color semantic tokens (from its super class, i.e. `OUDSTheme` so as to test overriding of them (unit tests) -/// and to act like smoke tests with crashing tests if some tokens disappeared. -extension MockTheme { - - static let mockThemeMultipleColorSemanticTokens = MultipleColorSemanticTokens("#68489D") - static let mockThemeSemanticColorTokens: ColorSemanticToken = "#68489D" - - // MARK: - Color semantic tokens - Light and dark - - override open var colorOpacityInvisibleBlackLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorOpacityInvisibleBlackDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorOpacityInvisibleWhiteLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorOpacityInvisibleWhiteDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorActionDisabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionEnabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionFocusLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionHighlightedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionHoverLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionLoadingLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionNegativeEnabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionNegativeFocusLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionNegativeHoverLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionNegativeLoadingLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionNegativePressedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorActionNegativeEnabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionNegativeFocusDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionNegativeHoverDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionNegativeLoadingDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionNegativePressedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorActionPressedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionSelectedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionSupportEnabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionSupportFocusLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionSupportHoverLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionSupportLoadingLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionSupportPressedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorActionSupportEnabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionSupportFocusDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionSupportHoverDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionSupportLoadingDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionSupportPressedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorActionVisitedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionDisabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionEnabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionFocusDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionHighlightedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionHoverDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionLoadingDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionPressedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionSelectedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorActionVisitedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorAlwaysBlackLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorAlwaysOnBlackLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorAlwaysOnWhiteLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorAlwaysWhiteLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorAlwaysBlackDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorAlwaysOnBlackDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorAlwaysOnWhiteDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorAlwaysWhiteDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorBgEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBgPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBgSecondaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBgTertiaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorBgEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBgPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBgSecondaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBgTertiaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorBorderBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBorderDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBorderEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBorderFocusLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBorderFocusInsetLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBorderOnBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorBorderOnBrandPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBorderBrandPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBorderDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBorderEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBorderFocusDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorBorderFocusInsetDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorContentBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentDisabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionDisabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionEnabledLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionFocusLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionHighlightedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionHoverLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionLoadingLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionNegativeLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionPressedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorContentOnActionDisabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionEnabledDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionFocusDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionHighlightedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionHoverDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionLoadingDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionNegativeDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnActionPressedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorContentOnBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnBrandPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnOverlayEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnOverlayEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnStatusEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnStatusEmphasizedNeutralLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnStatusMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnStatusEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnStatusEmphasizedNeutralDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentOnStatusMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorContentStatusInfoLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentStatusNegativeLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentStatusPositiveLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentStatusWarningLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentStatusInfoDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentStatusNegativeDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentStatusPositiveDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorContentStatusWarningDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorOverlayDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorOverlayDragLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorOverlayEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorOverlayModalLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorOverlayDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorOverlayDragDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorOverlayEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorOverlayModalDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorSurfaceBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceBrandPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusAccentEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusAccentMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusAccentEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusAccentMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusInfoEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusInfoMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusInfoEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusInfoMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusNegativeEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusNegativeMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusNegativeEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusNegativeMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusNeutralEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusNeutralMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusNeutralEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusNeutralMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusPositiveEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusPositiveMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusPositiveEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusPositiveMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusWarningEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusWarningMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusWarningEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorSurfaceStatusWarningMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorDecorativeAccent1DefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent1EmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent1MutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent1DefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent1EmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent1MutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorDecorativeAccent2DefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent2EmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent2MutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent2DefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent2EmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent2MutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorDecorativeAccent3DefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent3EmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent3MutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent3DefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent3EmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent3MutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorDecorativeAccent4DefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent4EmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent4MutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent4DefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent4EmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent4MutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorDecorativeAccent5DefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent5EmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent5MutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent5DefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent5EmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeAccent5MutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorDecorativeBrandPrimaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeBrandSecondaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeBrandTertiaryLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeBrandPrimaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeBrandSecondaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeBrandTertiaryDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorDecorativeNeutralDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeNeutralEmphasizedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeNeutralMutedLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeNeutralDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeNeutralEmphasizedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeNeutralMutedDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorDecorativeSkinTint100Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint200Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint300Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint400Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint500Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint600Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint700Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint800Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint900Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorDecorativeSkinTint100Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint200Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint300Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint400Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint500Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint600Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint700Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint800Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorDecorativeSkinTint900Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorChartCategoricalTier1Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier2Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier3Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier4Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier5Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier6Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier7Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier8Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier9Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier10Light: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorChartCategoricalTier1Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier2Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier3Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier4Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier5Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier6Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier7Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier8Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier9Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartCategoricalTier10Dark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorChartFunctionalInformationLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartFunctionalNegativeLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartFunctionalPositiveLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartFunctionalWarningLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorChartFunctionalInformationDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartFunctionalNegativeDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartFunctionalPositiveDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartFunctionalWarningDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorChartGridlinesLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartHighlightLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorChartNeutralLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryAccentDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryAccentHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryAccentLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryAccentLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryAccentDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryAccentHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryAccentLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryAccentLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryInfoDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryInfoHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryInfoLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryInfoLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryInfoDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryInfoHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryInfoLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryInfoLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryNegativeDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNegativeHighLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNegativeHigherLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNegativeHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryNegativeLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNegativeLowerLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNegativeLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryNegativeDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNegativeHighDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNegativeHigherDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNegativeHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryNegativeLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNegativeLowerDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNegativeLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryNeutralEmphasizedBlackLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralEmphasizedHighLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralEmphasizedHigherLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralEmphasizedHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralEmphasizedMediumLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryNeutralEmphasizedBlackDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralEmphasizedHighDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralEmphasizedHigherDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralEmphasizedHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralEmphasizedMediumDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryNeutralMutedLowerLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralMutedLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralMutedWhiteLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryNeutralMutedLowerDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralMutedLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryNeutralMutedWhiteDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryOpacityBlackHigherLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackLowerLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackMediumLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackTransparentLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryOpacityBlackHigherDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackLowerDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackMediumDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityBlackTransparentDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryOpacityInfoLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityNegativeLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityPositiveLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWarningLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryOpacityWhiteHighLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteHigherLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteLowerLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteTransparentLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryOpacityWhiteHighDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteHigherDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteLowerDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWhiteTransparentDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryOpacityInfoDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityNegativeDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityPositiveDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryOpacityWarningDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryPositiveDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryPositiveHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryPositiveLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryPositiveLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryPositiveDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryPositiveHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryPositiveLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryPositiveLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryPrimaryDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryPrimaryLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryPrimaryDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryPrimaryLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryWarningDefaultLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryWarningHighestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryWarningLowLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryWarningLowestLight: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - override open var colorRepositoryWarningDefaultDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryWarningHighestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryWarningLowDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - override open var colorRepositoryWarningLowestDark: ColorSemanticToken { Self.mockThemeSemanticColorTokens } - - // MARK: - Color semantic tokens - Multiples - - // MARK: - Color - Opacity - Invisible - - override open var colorOpacityInvisibleBlack: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorOpacityInvisibleWhite: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - - // MARK: - Color - Action - - override open var colorActionDisabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionEnabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionFocus: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionHighlighted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionHover: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionLoading: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionNegativeEnabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionNegativeFocus: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionNegativeHover: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionNegativeLoading: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionNegativePressed: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionPressed: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionSelected: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionSupportEnabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionSupportFocus: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionSupportHover: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionSupportLoading: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionSupportPressed: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorActionVisited: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - - // MARK: - Color - Always - - override open var colorAlwaysBlack: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorAlwaysOnBlack: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorAlwaysOnWhite: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorAlwaysWhite: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - - // MARK: - Color - Background - - override open var colorBgEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorBgPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorBgSecondary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorBgTertiary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - - // MARK: - Color - Border - - override open var colorBorderBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorBorderDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorBorderEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorBorderFocus: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorBorderFocusInset: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorBorderOnBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - - // MARK: - Color - Content - - override open var colorContentBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentDisabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnActionDisabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnActionEnabled: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnActionFocus: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnActionHighlighted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnActionHover: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnActionLoading: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnActionNegative: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnActionPressed: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnOverlayEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnStatusEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnStatusEmphasizedNeutral: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentOnStatusMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentStatusInfo: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentStatusNegative: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentStatusPositive: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorContentStatusWarning: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - - // MARK: - Color - Overlay - - override open var colorOverlayDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorOverlayDrag: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorOverlayEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorOverlayModal: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - - // MARK: - Color - Surface - - override open var colorSurfaceBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusAccentEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusAccentMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusInfoEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusInfoMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusNegativeEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusNegativeMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusNeutralEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusNeutralMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusPositiveEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusPositiveMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusWarningEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorSurfaceStatusWarningMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - - // MARK: - Color - Decorative - - override open var colorDecorativeAccent1Default: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent1Emphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent1Muted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent2Default: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent2Emphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent2Muted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent3Default: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent3Emphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent3Muted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent4Default: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent4Emphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent4Muted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent5Default: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent5Emphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeAccent5Muted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeBrandPrimary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeBrandSecondary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeBrandTertiary: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeNeutralDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeNeutralEmphasized: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeNeutralMuted: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeSkinTint100: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeSkinTint200: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeSkinTint300: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeSkinTint400: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeSkinTint500: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeSkinTint600: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeSkinTint700: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeSkinTint800: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorDecorativeSkinTint900: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - - // MARK: - Color - Chart - - override open var colorChartCategoricalTier1: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartCategoricalTier2: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartCategoricalTier3: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartCategoricalTier4: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartCategoricalTier5: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartCategoricalTier6: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartCategoricalTier7: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartCategoricalTier8: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartCategoricalTier9: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartCategoricalTier10: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartFunctionalInformation: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartFunctionalNegative: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartFunctionalPositive: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartFunctionalWarning: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartGridlines: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartHighlight: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorChartNeutral: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - - // MARK: - Color - Repository - - override open var colorRepositoryAccentDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryAccentHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryAccentLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryAccentLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryInfoDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryInfoHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryInfoLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryInfoLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNegativeDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNegativeHigh: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNegativeHigher: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNegativeHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNegativeLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNegativeLower: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNegativeLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNeutralEmphasizedBlack: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNeutralEmphasizedHigh: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNeutralEmphasizedHigher: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNeutralEmphasizedHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNeutralEmphasizedMedium: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNeutralMutedLower: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNeutralMutedLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryNeutralMutedWhite: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityBlackHigher: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityBlackHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityBlackLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityBlackLower: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityBlackLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityBlackMedium: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityBlackTransparent: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityInfo: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityNegative: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityPositive: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityWarning: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityWhiteHigh: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityWhiteHigher: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityWhiteHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityWhiteLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityWhiteLower: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityWhiteLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryOpacityWhiteTransparent: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryPositiveDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryPositiveHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryPositiveLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryPositiveLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryPrimaryDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryPrimaryLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryWarningDefault: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryWarningHighest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryWarningLow: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } - override open var colorRepositoryWarningLowest: MultipleColorSemanticTokens { Self.mockThemeMultipleColorSemanticTokens } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ElevationCompositeSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ElevationCompositeSemanticTokens.swift deleted file mode 100644 index d5386a6a8c..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ElevationCompositeSemanticTokens.swift +++ /dev/null @@ -1,41 +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 - -/// Overrides **all** the elevation composite semantic tokens (from its super class, i.e. `OUDSTheme` so as to test overriding of them (unit tests) -/// and to act like smoke tests with crashing tests if some tokens disappeared. -extension MockTheme { - - static let mockThemeElevationCompositeSemanticToken = ElevationCompositeSemanticToken(ElevationRawTokens.elevationBottom_1_600) - - // MARK: Semantic token - Elevation - Box shadow - - override open var elevationNone: ElevationCompositeSemanticToken { Self.mockThemeElevationCompositeSemanticToken } - - 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 } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ElevationSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ElevationSemanticTokens.swift deleted file mode 100644 index 6dc2c45317..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+ElevationSemanticTokens.swift +++ /dev/null @@ -1,87 +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 identifier_name - -/// Overrides **all** the elevation semantic tokens (from its super class, i.e. `OUDSTheme` so as to test overriding of them (unit tests) -/// and to act like smoke tests with crashing tests if some tokens disappeared. -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 = MultipleColorSemanticTokens(mockThemeElevationColorRawToken) - - // 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 elevationXStickyDefault: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } - override open var elevationXStickyEmphasized: ElevationYSemanticToken { Self.mockThemeElevationXRawToken } - override open var elevationXStickyNavigationScrolled: 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 elevationYStickyDefault: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } - override open var elevationYStickyEmphasized: ElevationYSemanticToken { Self.mockThemeElevationYRawToken } - override open var elevationYStickyNavigationScrolled: 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 elevationBlurStickyDefault: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - override open var elevationBlurStickyEmphasized: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - override open var elevationBlurStickyNavigationScrolled: ElevationBlurSemanticToken { Self.mockThemeElevationBlurRawToken } - - // MARK: Semantic token - Elevation - Color (Multiples) - - override open var elevationColorDefault: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } - override open var elevationColorNone: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } - override open var elevationColorRaised: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } - override open var elevationColorDrag: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } - override open var elevationColorEmphasized: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } - override open var elevationColorStickyDefault: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } - override open var elevationColorStickyEmphasized: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } - override open var elevationColorStickyNavigationScrolled: MultipleColorSemanticTokens { Self.mockThemeElevationMultipleColorSemanticToken } - - // MARK: Semantic token - Elevation - Color (semantic tokens) - - override open var elevationColorDefaultLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorDefaultDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorNoneLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorNoneDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorRaisedLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorRaisedDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorDragLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorDragDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorEmphasizedLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorEmphasizedDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorStickyDefaultLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorStickyDefaultDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorStickyEmphasizedLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorStickyEmphasizedDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorStickyNavigationScrolledLight: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } - override open var elevationColorStickyNavigationScrolledDark: ElevationColorSemanticToken { Self.mockThemeElevationColorRawToken } -} -// swiftlint:enable identifier_name diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+FontCompositeSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+FontCompositeSemanticTokens.swift deleted file mode 100644 index 82d4087a07..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+FontCompositeSemanticTokens.swift +++ /dev/null @@ -1,60 +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 - -/// Overrides **all** the font composite semantic tokens (from its super class, i.e. `OUDSTheme` so as to test overriding of them (unit tests) -/// and to act like smoke tests with crashing tests if some tokens disappeared. -extension MockTheme { - - static let mockThemeMultipleFontCompositeRawTokens = MultipleFontCompositeRawTokens(FontRawTokens.typeBold1850) - - // MARK: - Semantic tokens - Typography - Composites - Display - - override open var typeDisplayLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeDisplayMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeDisplaySmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - - // MARK: - Semantic tokens - Typography - Composites - Heading - - override open var typeHeadingXLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeHeadingLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeHeadingMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeHeadingSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - - // MARK: - Semantic tokens - Typography - Composites - Body - - override open var typeBodyDefaultLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeBodyDefaultMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeBodyDefaultSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeBodyStrongLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeBodyStrongMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeBodyStrongSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - - // MARK: - Semantic tokens - Typography - Composites - Label - - override open var typeLabelDefaultXLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeLabelDefaultLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeLabelDefaultMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeLabelDefaultSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeLabelStrongXLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeLabelStrongLarge: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeLabelStrongMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeLabelStrongSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - - // MARK: - Semantic tokens - Typography - Composites - Code - - override open var typeCodeMedium: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } - override open var typeCodeSmall: MultipleFontCompositeRawTokens { Self.mockThemeMultipleFontCompositeRawTokens } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+FontSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+FontSemanticTokens.swift deleted file mode 100644 index 753db658f1..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+FontSemanticTokens.swift +++ /dev/null @@ -1,172 +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 - -/// Overrides **all** the font semantic tokens (from its super class, i.e. `OUDSTheme` so as to test overriding of them (unit tests) -/// and to act like smoke tests with crashing tests if some tokens disappeared. -extension MockTheme { - - static let mockThemeFontFamilyRawToken: FontFamilyRawToken = "oΒ°xXSkyBl0GF0ntxXxΒ°o" - static let mockThemeFontWeightRawToken: FontWeightRawToken = 888 - static let mockThemeFontSizeRawToken: FontSizeRawToken = 666 - static let mockThemeFontLineHeightRawToken: FontLineHeightRawToken = 321 - static let mockThemeFontLetterSpacingRawToken: FontLetterSpacingRawToken = 21_092_024 - static let mockThemeMultipleFontSizeTokens = MultipleFontSizeSemanticTokens(mockThemeFontSizeRawToken) - static let mockThemeMultipleFontLineHeightTokens = MultipleFontLineHeightSemanticTokens(mockThemeFontLineHeightRawToken) - static let mockThemeMultipleFontLetterSpacingTokens = MultipleFontLetterSpacingSemanticTokens(mockThemeFontLetterSpacingRawToken) - - // MARK: Semantic token - Typography - Font - Family - - override open var fontFamily: FontFamilySemanticToken { Self.mockThemeFontFamilyRawToken } - - // MARK: Semantic token - Typography - Font - Weight - - override open var fontWeightDefault: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } - override open var fontWeightCode: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } - override open var fontWeightStrong: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } - override open var fontWeightDisplay: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } - override open var fontWeightHeading: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } - override open var fontWeightBodyDefault: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } - override open var fontWeightBodyStrong: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } - override open var fontWeightLabelDefault: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } - override open var fontWeightLabelStrong: FontWeightSemanticToken { Self.mockThemeFontWeightRawToken } - - // MARK: - Semantic token - Typography - Multiples - - // MARK: Semantic token - Typography - Font - Size - - override open var fontSizeDisplayLarge: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } - override open var fontSizeDisplayMedium: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } - override open var fontSizeDisplaySmall: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } - override open var fontSizeHeadingXlarge: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } - override open var fontSizeHeadingLarge: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } - override open var fontSizeHeadingMedium: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } - override open var fontSizeHeadingSmall: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } - override open var fontSizeBodyLarge: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } - override open var fontSizeBodyMedium: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } - override open var fontSizeBodySmall: MultipleFontSizeSemanticTokens { Self.mockThemeMultipleFontSizeTokens } - override open var fontSizeLabelXlarge: FontSizeSemanticToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeLabelLarge: FontSizeSemanticToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeLabelMedium: FontSizeSemanticToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeLabelSmall: FontSizeSemanticToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeCodeMedium: FontSizeSemanticToken { Self.mockThemeFontSizeRawToken } - - // MARK: - Semantic token - Typography - Font - Line height - - override open var fontLineHeightDisplayLarge: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } - override open var fontLineHeightDisplayMedium: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } - override open var fontLineHeightDisplaySmall: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } - override open var fontLineHeightHeadingXlarge: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } - override open var fontLineHeightHeadingLarge: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } - override open var fontLineHeightHeadingMedium: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } - override open var fontLineHeightHeadingSmall: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } - override open var fontLineHeightBodyLarge: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } - override open var fontLineHeightBodyMedium: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } - override open var fontLineHeightBodySmall: MultipleFontLineHeightSemanticTokens { Self.mockThemeMultipleFontLineHeightTokens } - override open var fontLineHeightLabelXlarge: FontLineHeightSemanticToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightLabelLarge: FontLineHeightSemanticToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightLabelMedium: FontLineHeightSemanticToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightLabelSmall: FontLineHeightSemanticToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightCodeMedium: FontLineHeightSemanticToken { Self.mockThemeFontLineHeightRawToken } - - // MARK: - Semantic token - Typography - Font - Letter spacing - - override open var fontLetterSpacingDisplayLarge: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } - override open var fontLetterSpacingDisplayMedium: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } - override open var fontLetterSpacingDisplaySmall: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } - override open var fontLetterSpacingHeadingXlarge: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } - override open var fontLetterSpacingHeadingLarge: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } - override open var fontLetterSpacingHeadingMedium: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } - override open var fontLetterSpacingHeadingSmall: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } - override open var fontLetterSpacingBodyLarge: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } - override open var fontLetterSpacingBodyMedium: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } - override open var fontLetterSpacingBodySmall: MultipleFontLetterSpacingSemanticTokens { Self.mockThemeMultipleFontLetterSpacingTokens } - override open var fontLetterSpacingLabelXlarge: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingLabelLarge: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingLabelMedium: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingLabelSmall: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingCodeMedium: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - - // MARK: - Semantic token - Typography - Pure semantic - - // MARK: Semantic token - Typography - Font - Size - - override open var fontSizeDisplayLargeMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeDisplayLargeTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeDisplayMediumMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeDisplayMediumTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeDisplaySmallMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeDisplaySmallTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeHeadingXlargeMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeHeadingXlargeTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeHeadingLargeMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeHeadingLargeTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeHeadingMediumMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeHeadingMediumTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeHeadingSmallMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeHeadingSmallTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeBodyLargeMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeBodyLargeTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeBodyMediumMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeBodyMediumTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeBodySmallMobile: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - override open var fontSizeBodySmallTablet: FontSizeRawToken { Self.mockThemeFontSizeRawToken } - - // MARK: - Semantic token - Typography - Font - Line height - - override open var fontLineHeightDisplayLargeMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightDisplayLargeTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightDisplayMediumMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightDisplayMediumTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightDisplaySmallMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightDisplaySmallTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightHeadingXlargeMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightHeadingXlargeTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightHeadingLargeMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightHeadingLargeTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightHeadingMediumMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightHeadingMediumTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightHeadingSmallMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightHeadingSmallTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightBodyLargeMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightBodyLargeTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightBodyMediumMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightBodyMediumTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightBodySmallMobile: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - override open var fontLineHeightBodySmallTablet: FontLineHeightRawToken { Self.mockThemeFontLineHeightRawToken } - - // MARK: - Semantic token - Typography - Font - Letter spacing - - override open var fontLetterSpacingDisplayLargeMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingDisplayLargeTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingDisplayMediumMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingDisplayMediumTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingDisplaySmallMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingDisplaySmallTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingHeadingXlargeMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingHeadingXlargeTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingHeadingLargeMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingHeadingLargeTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingHeadingMediumMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingHeadingMediumTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingHeadingSmallMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingHeadingSmallTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingBodyLargeMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingBodyLargeTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingBodyMediumMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingBodyMediumTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingBodySmallMobile: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } - override open var fontLetterSpacingBodySmallTablet: FontLetterSpacingSemanticToken { Self.mockThemeFontLetterSpacingRawToken } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+GridSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+GridSemanticTokens.swift deleted file mode 100644 index 514ec8e667..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+GridSemanticTokens.swift +++ /dev/null @@ -1,38 +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 - -/// Overrides **all** the grid semantic tokens (from its super class, i.e. `OUDSTheme` so as to test overriding of them (unit tests) -/// and to act like smoke tests with crashing tests if some tokens disappeared. -extension MockTheme { - - static let mockThemeGridRawToken: GridRawToken = 3_630 - - override open var gridExtraCompactMinWidth: GridSemanticToken { Self.mockThemeGridRawToken } - override open var gridExtraCompactMaxWidth: GridSemanticToken { Self.mockThemeGridRawToken } - override open var gridExtraCompactMargin: GridSemanticToken { Self.mockThemeGridRawToken } - override open var gridExtraCompactColumnGap: GridSemanticToken { Self.mockThemeGridRawToken } - - override open var gridCompactMinWidth: GridSemanticToken { Self.mockThemeGridRawToken } - override open var gridCompactMaxWidth: GridSemanticToken { Self.mockThemeGridRawToken } - override open var gridCompactMargin: GridSemanticToken { Self.mockThemeGridRawToken } - override open var gridCompactColumnGap: GridSemanticToken { Self.mockThemeGridRawToken } - - override open var gridRegularMinWidth: GridSemanticToken { Self.mockThemeGridRawToken } - override open var gridRegularMaxWidth: GridSemanticToken { Self.mockThemeGridRawToken } - override open var gridRegularMargin: GridSemanticToken { Self.mockThemeGridRawToken } - override open var gridRegularColumnGap: GridSemanticToken { Self.mockThemeGridRawToken } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+OpacitySemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+OpacitySemanticTokens.swift deleted file mode 100644 index 2d74c7f1fd..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+OpacitySemanticTokens.swift +++ /dev/null @@ -1,30 +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 - -/// Overrides **all** the opacity semantic tokens (from its super class, i.e. `OUDSTheme` so as to test overriding of them (unit tests) -/// and to act like smoke tests with crashing tests if some tokens disappeared. -extension MockTheme { - - static let mockThemeOpacityRawToken: OpacityRawToken = 713 - - override open var opacityInvisible: 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+SizeSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SizeSemanticTokens.swift deleted file mode 100644 index 87fc6f6ba3..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SizeSemanticTokens.swift +++ /dev/null @@ -1,193 +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 - -/// Overrides **all** the size semantic tokens (from its super class, i.e. `OUDSTheme` so as to test overriding of them (unit tests) -/// and to act like smoke tests with crashing tests if some tokens disappeared. -extension MockTheme { - - static let mockThemeSizeRawToken: DimensionRawToken = 118_000 - static let mockThemeSizeCompositeToken = MultipleSizeSemanticTokens(compact: 1, regular: 151) - - // MARK: - Semantic token - Sizing - Icon with typography - Multiples - - override open var sizeIconWithHeadingXlargeSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithHeadingXlargeSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithHeadingXlargeSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - - override open var sizeIconWithHeadingLargeSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithHeadingLargeSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithHeadingLargeSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - - override open var sizeIconWithHeadingMediumSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithHeadingMediumSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithHeadingMediumSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - - override open var sizeIconWithHeadingSmallSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithHeadingSmallSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithHeadingSmallSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - - override open var sizeIconWithBodyLargeSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithBodyLargeSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithBodyLargeSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - - override open var sizeIconWithBodyMediumSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithBodyMediumSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithBodyMediumSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - - override open var sizeIconWithBodySmallSizeSm: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithBodySmallSizeMd: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeIconWithBodySmallSizeLg: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - - // MARK: - Semantic token - Sizing - Icon with typography - Pure semantic - - override open var sizeIconWithHeadingXlargeSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingXlargeSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithHeadingXlargeSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingXlargeSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithHeadingXlargeSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingXlargeSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithHeadingLargeSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingLargeSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithHeadingLargeSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingLargeSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithHeadingLargeSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingLargeSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithHeadingMediumSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingMediumSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithHeadingMediumSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingMediumSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithHeadingMediumSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingMediumSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithHeadingSmallSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingSmallSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithHeadingSmallSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingSmallSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithHeadingSmallSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithHeadingSmallSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithBodyLargeSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithBodyLargeSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithBodyLargeSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithBodyLargeSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithBodyLargeSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithBodyLargeSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithBodyMediumSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithBodyMediumSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithBodyMediumSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithBodyMediumSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithBodyMediumSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithBodyMediumSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithBodySmallSizeSmMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithBodySmallSizeSmTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithBodySmallSizeMdMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithBodySmallSizeMdTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithBodySmallSizeLgMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithBodySmallSizeLgTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithLabelXlargeSizeSm: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithLabelXlargeSizeMd: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithLabelXlargeSizeLg: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithLabelLargeSizeXs: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithLabelLargeSizeSm: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithLabelLargeSizeMd: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithLabelLargeSizeLg: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithLabelLargeSizeXl: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithLabelMediumSizeSm: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithLabelMediumSizeMd: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithLabelMediumSizeLg: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeIconWithLabelSmallSizeSm: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithLabelSmallSizeMd: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconWithLabelSmallSizeLg: SizeSemanticToken { Self.mockThemeSizeRawToken } - - // MARK: - Semantic token - Sizing - Icon decorative - - override open var sizeIconDecorative2xs: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconDecorativeXs: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconDecorativeSm: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconDecorativeMd: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconDecorativeLg: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconDecorativeXl: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeIconDecorative2xl: SizeSemanticToken { Self.mockThemeSizeRawToken } - - // MARK: - Semantic token - Sizing - Max width typography - Multiples - - override open var sizeMaxWidthTypeDisplayLarge: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeMaxWidthTypeDisplayMedium: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeMaxWidthTypeDisplaySmall: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - - override open var sizeMaxWidthTypeHeadingXlarge: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeMaxWidthTypeHeadingLarge: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeMaxWidthTypeHeadingMedium: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeMaxWidthTypeHeadingSmall: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - - override open var sizeMaxWidthTypeBodyLarge: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeMaxWidthTypeBodyMedium: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - override open var sizeMaxWidthTypeBodySmall: MultipleSizeSemanticTokens { Self.mockThemeSizeCompositeToken } - - // MARK: - Semantic token - Sizing - Max width typography - Pure semantic - - override open var sizeMaxWidthTypeDisplayLargeMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeMaxWidthTypeDisplayLargeTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeMaxWidthTypeDisplayMediumMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeMaxWidthTypeDisplayMediumTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeMaxWidthTypeDisplaySmallMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeMaxWidthTypeDisplaySmallTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeMaxWidthTypeHeadingXlargeMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeMaxWidthTypeHeadingXlargeTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeMaxWidthTypeHeadingLargeMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeMaxWidthTypeHeadingLargeTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeMaxWidthTypeHeadingMediumMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeMaxWidthTypeHeadingMediumTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeMaxWidthTypeHeadingSmallMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeMaxWidthTypeHeadingSmallTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeMaxWidthTypeBodyLargeMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeMaxWidthTypeBodyLargeTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeMaxWidthTypeBodyMediumMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeMaxWidthTypeBodyMediumTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } - - override open var sizeMaxWidthTypeBodySmallMobile: SizeSemanticToken { Self.mockThemeSizeRawToken } - override open var sizeMaxWidthTypeBodySmallTablet: SizeSemanticToken { Self.mockThemeSizeRawToken } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SpaceSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SpaceSemanticTokens.swift deleted file mode 100644 index af5b32285b..0000000000 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme+SpaceSemanticTokens.swift +++ /dev/null @@ -1,129 +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 - -/// Overrides **all** the space semantic tokens (from its super class, i.e. `OUDSTheme` so as to test overriding of them (unit tests) -/// and to act like smoke tests with crashing tests if some tokens disappeared. -extension MockTheme { - - static let mockThemeSpaceRawToken: DimensionRawToken = 911 - static let mockThemeSpaceSemanticToken = MultipleSpaceSemanticTokens(compact: 1, regular: 151) - - // MARK: Semantic token - Spacing - Layout fluid (multiple) - - override open var spaceScaledNone: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } - override open var spaceScaledSmash: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } - override open var spaceScaledShortest: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } - override open var spaceScaledShorter: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } - override open var spaceScaledShort: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } - override open var spaceScaledMedium: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } - override open var spaceScaledTall: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } - override open var spaceScaledTaller: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } - override open var spaceScaledTallest: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } - override open var spaceScaledSpacious: MultipleSpaceSemanticTokens { Self.mockThemeSpaceSemanticToken } - - // MARK: Semantic token - Spacing - Layout fluid (pure semantic) - - override open var spaceScaledNoneMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledNoneTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledSmashMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledSmashTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledShortestMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledShortestTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledShorterMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledShorterTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledShortMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledShortTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledMediumMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledMediumTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledTallMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledTallTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledTallerMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledTallerTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledTallestMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledTallestTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledSpaciousMobile: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceScaledSpaciousTablet: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - - // MARK: Semantic token - Spacing - Layout fix - - override open var spaceFixedNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceFixedSmash: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceFixedShortest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceFixedShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceFixedShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceFixedMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceFixedTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceFixedTaller: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceFixedTallest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceFixedSpacious: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceFixedHuge: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceFixedJumbo: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - - // MARK: Semantic token - Spacing - Padding - Padding inline - - override open var spacePaddingInlineNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingInlineSmash: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingInlineShortest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingInlineShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingInlineShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingInlineMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingInlineTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingInlineTaller: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingInlineTallest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingInlineSpacious: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingInlineHuge: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - - // MARK: Semantic token - Padding - Padding stack - - override open var spacePaddingBlockNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingBlockShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingBlockShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingBlockMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingBlockTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingBlockTaller: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spacePaddingBlockTallest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - - // MARK: Semantic token - Padding - Padding inset - - override open var spaceInsetNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceInsetSmash: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceInsetShortest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceInsetShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceInsetShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceInsetMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceInsetTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceInsetTaller: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceInsetTallest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceInsetSpacious: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - - // MARK: Semantic token - Padding - Gap inline - - override open var spaceColumnGapNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceColumnGapShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceColumnGapShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceColumnGapMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceColumnGapTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceColumnGapTaller: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - - // MARK: Semantic token - Padding - Gap stack - - override open var spaceRowGapNone: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceRowGapShortest: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceRowGapShorter: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceRowGapShort: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceRowGapMedium: SpaceSemanticToken { Self.mockThemeSpaceRawToken } - override open var spaceRowGapTall: SpaceSemanticToken { Self.mockThemeSpaceRawToken } -} diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme.swift index 823cf10fc6..e8e0cc323e 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/MockTheme.swift @@ -15,18 +15,49 @@ import Foundation import OUDS import OUDSTokensSemantic -/// A mock theme for tests +/// A mock theme for tests. It helps to make tests on themes, mainly for the architecture and the overriding of tokens. +/// *open* to allow some derivative mock themes like ``OtherMockTheme``. +/// +/// Uses its own tokens providers for tests: +/// - ``MockThemeBorderSemanticTokensProvider`` for borders +/// - ``MockThemeOpacitySemanticTokensProvider`` for opacities +/// - ``MockThemeColorSemanticTokensProvider`` for colors +/// - ``MockThemeElevationSemanticTokensProvider`` for elevations +/// - ``MockThemeFontSemanticTokensProvider`` for fonts +/// - ``MockThemeGridSemanticTokensProvider`` for grids +/// - ``MockThemeOpacitySemanticTokensProvider`` for opacities +/// - ``MockThemeSizeSemanticTokensProvider`` for sizes +/// - ``MockThemeSpaceSemanticTokensprovider`` for spaces open class MockTheme: OUDSTheme, @unchecked Sendable { convenience init() { - self.init(customFont: nil) + self.init(fontFamily: nil) } - init(customFont: String?) { - super.init(customFontFamily: customFont) + /// For ``OtherMockTheme`` + init(colors: AllColorSemanticTokens) { + super.init(colors: colors, + borders: MockThemeBorderSemanticTokensProvider(), + elevations: MockThemeElevationSemanticTokensProvider(), + fontFamily: nil, + fonts: MockThemeFontSemanticTokensProvider(), + grids: MockThemeGridSemanticTokensProvider(), + opacities: MockThemeOpacitySemanticTokensProvider(), + sizes: MockThemeSizeSemanticTokensProvider(), + spaces: MockThemeSpaceSemanticTokensProvider()) } - deinit { } + init(fontFamily: String?) { + super.init(colors: MockThemeColorSemanticTokensProvider(), + borders: MockThemeBorderSemanticTokensProvider(), + elevations: MockThemeElevationSemanticTokensProvider(), + fontFamily: fontFamily, + fonts: MockThemeFontSemanticTokensProvider(), + grids: MockThemeGridSemanticTokensProvider(), + opacities: MockThemeOpacitySemanticTokensProvider(), + sizes: MockThemeSizeSemanticTokensProvider(), + spaces: MockThemeSpaceSemanticTokensProvider()) + } - // Please refer to extensions + deinit { } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/OtherMockTheme.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/OtherMockTheme.swift index b426cb935f..55063843d9 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/OtherMockTheme.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/MockThemes/OtherMockTheme.swift @@ -4,7 +4,7 @@ // SPDX-License-Identifier: MIT // // This software is distributed under the MIT license, -// the text of which is available at https://publicsource.org/license/MIT/ +// the text of which is available at https://opensource.org/license/MIT/ // or see the "LICENSE" file for more details. // // Authors: See CONTRIBUTORS.txt @@ -17,11 +17,24 @@ import OUDSTokensSemantic // swiftlint:disable file_length // swiftlint:disable type_body_length // swiftlint:disable identifier_name +// swiftlint:disable type_name + +// MARK: - Other Mock Theme + +final class OtherMockTheme: MockTheme, @unchecked Sendable { + + public init() { + super.init(colors: OtherMockThemeColorSemanticTokensProvider()) + } +} + +// MARK: - Other Mock Theme Color Semantic Tokens Provider /// Some color semantic tokens may be not implemented, making fatalError() be triggered at `OUDSTheme` level and tests crash. +/// `OrangeTheme` is not accessible here. /// Thus we use another mock theme to make comparisons with `MockTheme` and ensure overriding property of tokens is still working. /// This case of not implemented token only happens with color tokens. (β•―Β° Β°οΌ‰β•―οΈ΅ ┻━┻ -final class OtherMockTheme: MockTheme, @unchecked Sendable { +open class OtherMockThemeColorSemanticTokensProvider: MockThemeColorSemanticTokensProvider { static let otherMockThemeMultipleColorSemanticTokens = MultipleColorSemanticTokens("#FF0000") static let otherMockThemeSemanticColorToken: ColorSemanticToken = "#00FF00" @@ -629,3 +642,4 @@ final class OtherMockTheme: MockTheme, @unchecked Sendable { // swiftlint:enable required_deinit // swiftlint:enable type_body_length // swiftlint:enable identifier_name +// swiftlint:enable type_name diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfBorderSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfBorderSemanticTokens.swift index ba197c84ad..b7dca493d3 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfBorderSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfBorderSemanticTokens.swift @@ -36,82 +36,82 @@ final class TestThemeOverrideOfBorderSemanticTokens: XCTestCase { // MARK: - Semantic token - Border - Width func testInheritedThemeCanOverrideSemanticTokenBorderWidthNone() throws { - XCTAssertNotEqual(inheritedTheme.borderWidthNone, abstractTheme.borderWidthNone) - XCTAssertTrue(inheritedTheme.borderWidthNone == MockTheme.mockThemeBorderWidthRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderWidthNone, abstractTheme.borders.borderWidthNone) + XCTAssertTrue(inheritedTheme.borders.borderWidthNone == MockThemeBorderSemanticTokensProvider.mockThemeBorderWidthRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderWidthDefault() throws { - XCTAssertNotEqual(inheritedTheme.borderWidthDefault, abstractTheme.borderWidthDefault) - XCTAssertTrue(inheritedTheme.borderWidthDefault == MockTheme.mockThemeBorderWidthRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderWidthDefault, abstractTheme.borders.borderWidthDefault) + XCTAssertTrue(inheritedTheme.borders.borderWidthDefault == MockThemeBorderSemanticTokensProvider.mockThemeBorderWidthRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderWidthThin() throws { - XCTAssertNotEqual(inheritedTheme.borderWidthThin, abstractTheme.borderWidthThin) - XCTAssertTrue(inheritedTheme.borderWidthThin == MockTheme.mockThemeBorderWidthRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderWidthThin, abstractTheme.borders.borderWidthThin) + XCTAssertTrue(inheritedTheme.borders.borderWidthThin == MockThemeBorderSemanticTokensProvider.mockThemeBorderWidthRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderWidthMedium() throws { - XCTAssertNotEqual(inheritedTheme.borderWidthMedium, abstractTheme.borderWidthMedium) - XCTAssertTrue(inheritedTheme.borderWidthMedium == MockTheme.mockThemeBorderWidthRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderWidthMedium, abstractTheme.borders.borderWidthMedium) + XCTAssertTrue(inheritedTheme.borders.borderWidthMedium == MockThemeBorderSemanticTokensProvider.mockThemeBorderWidthRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderWidthThick() throws { - XCTAssertNotEqual(inheritedTheme.borderWidthThick, abstractTheme.borderWidthThick) - XCTAssertTrue(inheritedTheme.borderWidthThick == MockTheme.mockThemeBorderWidthRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderWidthThick, abstractTheme.borders.borderWidthThick) + XCTAssertTrue(inheritedTheme.borders.borderWidthThick == MockThemeBorderSemanticTokensProvider.mockThemeBorderWidthRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderWidthThicker() throws { - XCTAssertNotEqual(inheritedTheme.borderWidthThicker, abstractTheme.borderWidthThicker) - XCTAssertTrue(inheritedTheme.borderWidthThicker == MockTheme.mockThemeBorderWidthRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderWidthThicker, abstractTheme.borders.borderWidthThicker) + XCTAssertTrue(inheritedTheme.borders.borderWidthThicker == MockThemeBorderSemanticTokensProvider.mockThemeBorderWidthRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderWidthFocus() throws { - XCTAssertNotEqual(inheritedTheme.borderWidthFocus, abstractTheme.borderWidthFocus) - XCTAssertTrue(inheritedTheme.borderWidthFocus == MockTheme.mockThemeBorderWidthRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderWidthFocus, abstractTheme.borders.borderWidthFocus) + XCTAssertTrue(inheritedTheme.borders.borderWidthFocus == MockThemeBorderSemanticTokensProvider.mockThemeBorderWidthRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderWidthFocusInset() throws { - XCTAssertNotEqual(inheritedTheme.borderWidthFocusInset, abstractTheme.borderWidthFocusInset) - XCTAssertTrue(inheritedTheme.borderWidthFocusInset == MockTheme.mockThemeBorderWidthRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderWidthFocusInset, abstractTheme.borders.borderWidthFocusInset) + XCTAssertTrue(inheritedTheme.borders.borderWidthFocusInset == MockThemeBorderSemanticTokensProvider.mockThemeBorderWidthRawToken) } // MARK: - Semantic token - Border - Radius func testInheritedThemeCanOverrideSemanticTokenBorderRadiusNone() throws { - XCTAssertNotEqual(inheritedTheme.borderRadiusNone, abstractTheme.borderRadiusNone) - XCTAssertTrue(inheritedTheme.borderRadiusNone == MockTheme.mockThemeBorderRadiusRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderRadiusNone, abstractTheme.borders.borderRadiusNone) + XCTAssertTrue(inheritedTheme.borders.borderRadiusNone == MockThemeBorderSemanticTokensProvider.mockThemeBorderRadiusRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderRadiusDefault() throws { - XCTAssertNotEqual(inheritedTheme.borderRadiusDefault, abstractTheme.borderRadiusDefault) - XCTAssertTrue(inheritedTheme.borderRadiusDefault == MockTheme.mockThemeBorderRadiusRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderRadiusDefault, abstractTheme.borders.borderRadiusDefault) + XCTAssertTrue(inheritedTheme.borders.borderRadiusDefault == MockThemeBorderSemanticTokensProvider.mockThemeBorderRadiusRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderRadiusShort() throws { - XCTAssertNotEqual(inheritedTheme.borderRadiusShort, abstractTheme.borderRadiusShort) - XCTAssertTrue(inheritedTheme.borderRadiusShort == MockTheme.mockThemeBorderRadiusRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderRadiusShort, abstractTheme.borders.borderRadiusShort) + XCTAssertTrue(inheritedTheme.borders.borderRadiusShort == MockThemeBorderSemanticTokensProvider.mockThemeBorderRadiusRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderRadiusMedium() throws { - XCTAssertNotEqual(inheritedTheme.borderRadiusMedium, abstractTheme.borderRadiusMedium) - XCTAssertTrue(inheritedTheme.borderRadiusMedium == MockTheme.mockThemeBorderRadiusRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderRadiusMedium, abstractTheme.borders.borderRadiusMedium) + XCTAssertTrue(inheritedTheme.borders.borderRadiusMedium == MockThemeBorderSemanticTokensProvider.mockThemeBorderRadiusRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderRadiusTall() throws { - XCTAssertNotEqual(inheritedTheme.borderRadiusTall, abstractTheme.borderRadiusTall) - XCTAssertTrue(inheritedTheme.borderRadiusTall == MockTheme.mockThemeBorderRadiusRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderRadiusTall, abstractTheme.borders.borderRadiusTall) + XCTAssertTrue(inheritedTheme.borders.borderRadiusTall == MockThemeBorderSemanticTokensProvider.mockThemeBorderRadiusRawToken) } // MARK: - Semantic token - Border - Style func testInheritedThemeCanOverrideSemanticTokenBorderStyleDefault() throws { - XCTAssertNotEqual(inheritedTheme.borderStyleDefault, abstractTheme.borderStyleDefault) - XCTAssertTrue(inheritedTheme.borderStyleDefault == MockTheme.mockThemeBorderStyleRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderStyleDefault, abstractTheme.borders.borderStyleDefault) + XCTAssertTrue(inheritedTheme.borders.borderStyleDefault == MockThemeBorderSemanticTokensProvider.mockThemeBorderStyleRawToken) } func testInheritedThemeCanOverrideSemanticTokenBorderStyleDrag() throws { - XCTAssertNotEqual(inheritedTheme.borderStyleDrag, abstractTheme.borderStyleDrag) - XCTAssertTrue(inheritedTheme.borderStyleDrag == MockTheme.mockThemeBorderStyleRawToken) + XCTAssertNotEqual(inheritedTheme.borders.borderStyleDrag, abstractTheme.borders.borderStyleDrag) + XCTAssertTrue(inheritedTheme.borders.borderStyleDrag == MockThemeBorderSemanticTokensProvider.mockThemeBorderStyleRawToken) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorMultipleSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorMultipleSemanticTokens.swift index bb6138814b..74c21ecede 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorMultipleSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorMultipleSemanticTokens.swift @@ -42,878 +42,878 @@ final class TestThemeOverrideOfColorMultipleSemanticTokens: XCTestCase { // MARK: - Color - Opacity - Invisible func testInheritedThemeCanOverrideSemanticTokenColorOpacityInvisibleBlack() throws { - XCTAssertNotEqual(inheritedTheme.colorOpacityInvisibleBlack, abstractTheme.colorOpacityInvisibleBlack) - XCTAssertTrue(inheritedTheme.colorOpacityInvisibleBlack == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorOpacityInvisibleBlack, abstractTheme.colors.colorOpacityInvisibleBlack) + XCTAssertTrue(inheritedTheme.colors.colorOpacityInvisibleBlack == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorOpacityInvisibleWhite() throws { - XCTAssertNotEqual(inheritedTheme.colorOpacityInvisibleWhite, abstractTheme.colorOpacityInvisibleWhite) - XCTAssertTrue(inheritedTheme.colorOpacityInvisibleWhite == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorOpacityInvisibleWhite, abstractTheme.colors.colorOpacityInvisibleWhite) + XCTAssertTrue(inheritedTheme.colors.colorOpacityInvisibleWhite == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } // MARK: - Color - Action func testInheritedThemeCanOverrideSemanticTokenColorActionDisabled() throws { - XCTAssertNotEqual(inheritedTheme.colorActionDisabled, abstractTheme.colorActionDisabled) - XCTAssertTrue(inheritedTheme.colorActionDisabled == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionDisabled, abstractTheme.colors.colorActionDisabled) + XCTAssertTrue(inheritedTheme.colors.colorActionDisabled == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionEnabled() throws { - XCTAssertNotEqual(inheritedTheme.colorActionEnabled, abstractTheme.colorActionEnabled) - XCTAssertTrue(inheritedTheme.colorActionEnabled == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionEnabled, abstractTheme.colors.colorActionEnabled) + XCTAssertTrue(inheritedTheme.colors.colorActionEnabled == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionFocus() throws { - XCTAssertNotEqual(inheritedTheme.colorActionFocus, abstractTheme.colorActionFocus) - XCTAssertTrue(inheritedTheme.colorActionFocus == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionFocus, abstractTheme.colors.colorActionFocus) + XCTAssertTrue(inheritedTheme.colors.colorActionFocus == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionHighlighted() throws { - XCTAssertNotEqual(inheritedTheme.colorActionHighlighted, abstractTheme.colorActionHighlighted) - XCTAssertTrue(inheritedTheme.colorActionHighlighted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionHighlighted, abstractTheme.colors.colorActionHighlighted) + XCTAssertTrue(inheritedTheme.colors.colorActionHighlighted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionHover() throws { - XCTAssertNotEqual(inheritedTheme.colorActionHover, abstractTheme.colorActionHover) - XCTAssertTrue(inheritedTheme.colorActionHover == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionHover, abstractTheme.colors.colorActionHover) + XCTAssertTrue(inheritedTheme.colors.colorActionHover == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionLoading() throws { - XCTAssertNotEqual(inheritedTheme.colorActionLoading, abstractTheme.colorActionLoading) - XCTAssertTrue(inheritedTheme.colorActionLoading == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionLoading, abstractTheme.colors.colorActionLoading) + XCTAssertTrue(inheritedTheme.colors.colorActionLoading == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeEnabled() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeEnabled, abstractTheme.colorActionNegativeEnabled) - XCTAssertTrue(inheritedTheme.colorActionNegativeEnabled == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeEnabled, abstractTheme.colors.colorActionNegativeEnabled) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeEnabled == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeFocus() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeFocus, abstractTheme.colorActionNegativeFocus) - XCTAssertTrue(inheritedTheme.colorActionNegativeFocus == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeFocus, abstractTheme.colors.colorActionNegativeFocus) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeFocus == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeHover() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeHover, abstractTheme.colorActionNegativeHover) - XCTAssertTrue(inheritedTheme.colorActionNegativeHover == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeHover, abstractTheme.colors.colorActionNegativeHover) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeHover == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeLoading() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeLoading, abstractTheme.colorActionNegativeLoading) - XCTAssertTrue(inheritedTheme.colorActionNegativeLoading == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeLoading, abstractTheme.colors.colorActionNegativeLoading) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeLoading == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativePressed() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativePressed, abstractTheme.colorActionNegativePressed) - XCTAssertTrue(inheritedTheme.colorActionNegativePressed == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativePressed, abstractTheme.colors.colorActionNegativePressed) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativePressed == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionPressed() throws { - XCTAssertNotEqual(inheritedTheme.colorActionPressed, abstractTheme.colorActionPressed) - XCTAssertTrue(inheritedTheme.colorActionPressed == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionPressed, abstractTheme.colors.colorActionPressed) + XCTAssertTrue(inheritedTheme.colors.colorActionPressed == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionSelected() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSelected, abstractTheme.colorActionSelected) - XCTAssertTrue(inheritedTheme.colorActionSelected == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSelected, abstractTheme.colors.colorActionSelected) + XCTAssertTrue(inheritedTheme.colors.colorActionSelected == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportEnabled() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportEnabled, abstractTheme.colorActionSupportEnabled) - XCTAssertTrue(inheritedTheme.colorActionSupportEnabled == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportEnabled, abstractTheme.colors.colorActionSupportEnabled) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportEnabled == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportFocus() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportFocus, abstractTheme.colorActionSupportFocus) - XCTAssertTrue(inheritedTheme.colorActionSupportFocus == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportFocus, abstractTheme.colors.colorActionSupportFocus) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportFocus == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportHover() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportHover, abstractTheme.colorActionSupportHover) - XCTAssertTrue(inheritedTheme.colorActionSupportHover == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportHover, abstractTheme.colors.colorActionSupportHover) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportHover == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportLoading() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportLoading, abstractTheme.colorActionSupportLoading) - XCTAssertTrue(inheritedTheme.colorActionSupportLoading == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportLoading, abstractTheme.colors.colorActionSupportLoading) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportLoading == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportPressed() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportPressed, abstractTheme.colorActionSupportPressed) - XCTAssertTrue(inheritedTheme.colorActionSupportPressed == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportPressed, abstractTheme.colors.colorActionSupportPressed) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportPressed == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorActionVisited() throws { - XCTAssertNotEqual(inheritedTheme.colorActionVisited, abstractTheme.colorActionVisited) - XCTAssertTrue(inheritedTheme.colorActionVisited == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorActionVisited, abstractTheme.colors.colorActionVisited) + XCTAssertTrue(inheritedTheme.colors.colorActionVisited == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } // MARK: - Color - Always func testInheritedThemeCanOverrideSemanticTokenColorAlwaysBlack() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysBlack, abstractTheme.colorAlwaysBlack) - XCTAssertTrue(inheritedTheme.colorAlwaysBlack == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysBlack, abstractTheme.colors.colorAlwaysBlack) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysBlack == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnBlack() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysOnBlack, abstractTheme.colorAlwaysOnBlack) - XCTAssertTrue(inheritedTheme.colorAlwaysOnBlack == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysOnBlack, abstractTheme.colors.colorAlwaysOnBlack) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysOnBlack == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnWhite() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysOnWhite, abstractTheme.colorAlwaysOnWhite) - XCTAssertTrue(inheritedTheme.colorAlwaysOnWhite == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysOnWhite, abstractTheme.colors.colorAlwaysOnWhite) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysOnWhite == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorAlwaysWhite() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysWhite, abstractTheme.colorAlwaysWhite) - XCTAssertTrue(inheritedTheme.colorAlwaysWhite == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysWhite, abstractTheme.colors.colorAlwaysWhite) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysWhite == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } // MARK: - Color - Background func testInheritedThemeCanOverrideSemanticTokenColorBgEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorBgEmphasized, abstractTheme.colorBgEmphasized) - XCTAssertTrue(inheritedTheme.colorBgEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorBgEmphasized, abstractTheme.colors.colorBgEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorBgEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorBgPrimary() throws { - XCTAssertNotEqual(inheritedTheme.colorBgPrimary, abstractTheme.colorBgPrimary) - XCTAssertTrue(inheritedTheme.colorBgPrimary == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorBgPrimary, abstractTheme.colors.colorBgPrimary) + XCTAssertTrue(inheritedTheme.colors.colorBgPrimary == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorBgSecondary() throws { - XCTAssertNotEqual(inheritedTheme.colorBgSecondary, abstractTheme.colorBgSecondary) - XCTAssertTrue(inheritedTheme.colorBgSecondary == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorBgSecondary, abstractTheme.colors.colorBgSecondary) + XCTAssertTrue(inheritedTheme.colors.colorBgSecondary == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorBgTertiary() throws { - XCTAssertNotEqual(inheritedTheme.colorBgTertiary, abstractTheme.colorBgTertiary) - XCTAssertTrue(inheritedTheme.colorBgTertiary == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorBgTertiary, abstractTheme.colors.colorBgTertiary) + XCTAssertTrue(inheritedTheme.colors.colorBgTertiary == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } // MARK: - Color - Border func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandPrimary() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandPrimary, abstractTheme.colorBorderBrandPrimary) - XCTAssertTrue(inheritedTheme.colorBorderBrandPrimary == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderBrandPrimary, abstractTheme.colors.colorBorderBrandPrimary) + XCTAssertTrue(inheritedTheme.colors.colorBorderBrandPrimary == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorBorderDefault() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderDefault, abstractTheme.colorBorderDefault) - XCTAssertTrue(inheritedTheme.colorBorderDefault == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderDefault, abstractTheme.colors.colorBorderDefault) + XCTAssertTrue(inheritedTheme.colors.colorBorderDefault == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorBorderEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderEmphasized, abstractTheme.colorBorderEmphasized) - XCTAssertTrue(inheritedTheme.colorBorderEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderEmphasized, abstractTheme.colors.colorBorderEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorBorderEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorBorderFocus() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderFocus, abstractTheme.colorBorderFocus) - XCTAssertTrue(inheritedTheme.colorBorderFocus == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderFocus, abstractTheme.colors.colorBorderFocus) + XCTAssertTrue(inheritedTheme.colors.colorBorderFocus == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorBorderFocusInset() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderFocusInset, abstractTheme.colorBorderFocusInset) - XCTAssertTrue(inheritedTheme.colorBorderFocusInset == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderFocusInset, abstractTheme.colors.colorBorderFocusInset) + XCTAssertTrue(inheritedTheme.colors.colorBorderFocusInset == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorBorderOnBrandPrimary() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderOnBrandPrimary, abstractTheme.colorBorderOnBrandPrimary) - XCTAssertTrue(inheritedTheme.colorBorderOnBrandPrimary == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderOnBrandPrimary, abstractTheme.colors.colorBorderOnBrandPrimary) + XCTAssertTrue(inheritedTheme.colors.colorBorderOnBrandPrimary == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } // MARK: - Color - Content func testInheritedThemeCanOverrideSemanticTokenColorContentBrandPrimary() throws { - XCTAssertNotEqual(inheritedTheme.colorContentBrandPrimary, abstractTheme.colorContentBrandPrimary) - XCTAssertTrue(inheritedTheme.colorContentBrandPrimary == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentBrandPrimary, abstractTheme.colors.colorContentBrandPrimary) + XCTAssertTrue(inheritedTheme.colors.colorContentBrandPrimary == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentDefault() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDefault, abstractTheme.colorContentDefault) - XCTAssertTrue(inheritedTheme.colorContentDefault == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentDefault, abstractTheme.colors.colorContentDefault) + XCTAssertTrue(inheritedTheme.colors.colorContentDefault == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentDisabled() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDisabled, abstractTheme.colorContentDisabled) - XCTAssertTrue(inheritedTheme.colorContentDisabled == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentDisabled, abstractTheme.colors.colorContentDisabled) + XCTAssertTrue(inheritedTheme.colors.colorContentDisabled == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentMuted() throws { - XCTAssertNotEqual(inheritedTheme.colorContentMuted, abstractTheme.colorContentMuted) - XCTAssertTrue(inheritedTheme.colorContentMuted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentMuted, abstractTheme.colors.colorContentMuted) + XCTAssertTrue(inheritedTheme.colors.colorContentMuted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionDisabled() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionDisabled, abstractTheme.colorContentOnActionDisabled) - XCTAssertTrue(inheritedTheme.colorContentOnActionDisabled == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionDisabled, abstractTheme.colors.colorContentOnActionDisabled) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionDisabled == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionEnabled() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionEnabled, abstractTheme.colorContentOnActionEnabled) - XCTAssertTrue(inheritedTheme.colorContentOnActionEnabled == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionEnabled, abstractTheme.colors.colorContentOnActionEnabled) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionEnabled == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionFocus() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionFocus, abstractTheme.colorContentOnActionFocus) - XCTAssertTrue(inheritedTheme.colorContentOnActionFocus == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionFocus, abstractTheme.colors.colorContentOnActionFocus) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionFocus == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionHighlighted() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionHighlighted, abstractTheme.colorContentOnActionHighlighted) - XCTAssertTrue(inheritedTheme.colorContentOnActionHighlighted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionHighlighted, abstractTheme.colors.colorContentOnActionHighlighted) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionHighlighted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionHover() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionHover, abstractTheme.colorContentOnActionHover) - XCTAssertTrue(inheritedTheme.colorContentOnActionHover == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionHover, abstractTheme.colors.colorContentOnActionHover) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionHover == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionLoading() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionLoading, abstractTheme.colorContentOnActionLoading) - XCTAssertTrue(inheritedTheme.colorContentOnActionLoading == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionLoading, abstractTheme.colors.colorContentOnActionLoading) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionLoading == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionNegative() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionNegative, abstractTheme.colorContentOnActionNegative) - XCTAssertTrue(inheritedTheme.colorContentOnActionNegative == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionNegative, abstractTheme.colors.colorContentOnActionNegative) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionNegative == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionPressed() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionPressed, abstractTheme.colorContentOnActionPressed) - XCTAssertTrue(inheritedTheme.colorContentOnActionPressed == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionPressed, abstractTheme.colors.colorContentOnActionPressed) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionPressed == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnBrandPrimary() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnBrandPrimary, abstractTheme.colorContentOnBrandPrimary) - XCTAssertTrue(inheritedTheme.colorContentOnBrandPrimary == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnBrandPrimary, abstractTheme.colors.colorContentOnBrandPrimary) + XCTAssertTrue(inheritedTheme.colors.colorContentOnBrandPrimary == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnOverlayEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnOverlayEmphasized, abstractTheme.colorContentOnOverlayEmphasized) - XCTAssertTrue(inheritedTheme.colorContentOnOverlayEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnOverlayEmphasized, abstractTheme.colors.colorContentOnOverlayEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorContentOnOverlayEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnStatusEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnStatusEmphasized, abstractTheme.colorContentOnStatusEmphasized) - XCTAssertTrue(inheritedTheme.colorContentOnStatusEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnStatusEmphasized, abstractTheme.colors.colorContentOnStatusEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorContentOnStatusEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnStatusEmphasizedNeutral() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnStatusEmphasizedNeutral, abstractTheme.colorContentOnStatusEmphasizedNeutral) - XCTAssertTrue(inheritedTheme.colorContentOnStatusEmphasizedNeutral == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnStatusEmphasizedNeutral, abstractTheme.colors.colorContentOnStatusEmphasizedNeutral) + XCTAssertTrue(inheritedTheme.colors.colorContentOnStatusEmphasizedNeutral == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnStatusMuted() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnStatusMuted, abstractTheme.colorContentOnStatusMuted) - XCTAssertTrue(inheritedTheme.colorContentOnStatusMuted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnStatusMuted, abstractTheme.colors.colorContentOnStatusMuted) + XCTAssertTrue(inheritedTheme.colors.colorContentOnStatusMuted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusInfo() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusInfo, abstractTheme.colorContentStatusInfo) - XCTAssertTrue(inheritedTheme.colorContentStatusInfo == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusInfo, abstractTheme.colors.colorContentStatusInfo) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusInfo == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusNegative() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusNegative, abstractTheme.colorContentStatusNegative) - XCTAssertTrue(inheritedTheme.colorContentStatusNegative == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusNegative, abstractTheme.colors.colorContentStatusNegative) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusNegative == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusPositive() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusPositive, abstractTheme.colorContentStatusPositive) - XCTAssertTrue(inheritedTheme.colorContentStatusPositive == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusPositive, abstractTheme.colors.colorContentStatusPositive) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusPositive == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusWarning() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusWarning, abstractTheme.colorContentStatusWarning) - XCTAssertTrue(inheritedTheme.colorContentStatusWarning == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusWarning, abstractTheme.colors.colorContentStatusWarning) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusWarning == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } // MARK: - Color - Overlay func testInheritedThemeCanOverrideSemanticTokenColorOverlayDefault() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayDefault, abstractTheme.colorOverlayDefault) - XCTAssertTrue(inheritedTheme.colorOverlayDefault == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayDefault, abstractTheme.colors.colorOverlayDefault) + XCTAssertTrue(inheritedTheme.colors.colorOverlayDefault == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorOverlayDrag() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayDrag, abstractTheme.colorOverlayDrag) - XCTAssertTrue(inheritedTheme.colorOverlayDrag == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayDrag, abstractTheme.colors.colorOverlayDrag) + XCTAssertTrue(inheritedTheme.colors.colorOverlayDrag == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorOverlayEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayEmphasized, abstractTheme.colorOverlayEmphasized) - XCTAssertTrue(inheritedTheme.colorOverlayEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayEmphasized, abstractTheme.colors.colorOverlayEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorOverlayEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorOverlayModal() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayModal, abstractTheme.colorOverlayModal) - XCTAssertTrue(inheritedTheme.colorOverlayModal == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayModal, abstractTheme.colors.colorOverlayModal) + XCTAssertTrue(inheritedTheme.colors.colorOverlayModal == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } // MARK: - Color - Surface func testInheritedThemeCanOverrideSemanticTokenColorSurfaceBrandPrimary() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceBrandPrimary, abstractTheme.colorSurfaceBrandPrimary) - XCTAssertTrue(inheritedTheme.colorSurfaceBrandPrimary == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceBrandPrimary, abstractTheme.colors.colorSurfaceBrandPrimary) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceBrandPrimary == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusAccentEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusAccentEmphasized, abstractTheme.colorSurfaceStatusAccentEmphasized) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusAccentEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusAccentEmphasized, abstractTheme.colors.colorSurfaceStatusAccentEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusAccentEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusAccentMuted() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusAccentMuted, abstractTheme.colorSurfaceStatusAccentMuted) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusAccentMuted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusAccentMuted, abstractTheme.colors.colorSurfaceStatusAccentMuted) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusAccentMuted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusInfoEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusInfoEmphasized, abstractTheme.colorSurfaceStatusInfoEmphasized) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusInfoEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusInfoEmphasized, abstractTheme.colors.colorSurfaceStatusInfoEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusInfoEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusInfoMuted() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusInfoMuted, abstractTheme.colorSurfaceStatusInfoMuted) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusInfoMuted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusInfoMuted, abstractTheme.colors.colorSurfaceStatusInfoMuted) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusInfoMuted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNegativeEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNegativeEmphasized, abstractTheme.colorSurfaceStatusNegativeEmphasized) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNegativeEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNegativeEmphasized, abstractTheme.colors.colorSurfaceStatusNegativeEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNegativeEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNegativeMuted() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNegativeMuted, abstractTheme.colorSurfaceStatusNegativeMuted) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNegativeMuted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNegativeMuted, abstractTheme.colors.colorSurfaceStatusNegativeMuted) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNegativeMuted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNeutralEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNeutralEmphasized, abstractTheme.colorSurfaceStatusNeutralEmphasized) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNeutralEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNeutralEmphasized, abstractTheme.colors.colorSurfaceStatusNeutralEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNeutralEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNeutralMuted() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNeutralMuted, abstractTheme.colorSurfaceStatusNeutralMuted) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNeutralMuted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNeutralMuted, abstractTheme.colors.colorSurfaceStatusNeutralMuted) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNeutralMuted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusPositiveEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusPositiveEmphasized, abstractTheme.colorSurfaceStatusPositiveEmphasized) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusPositiveEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusPositiveEmphasized, abstractTheme.colors.colorSurfaceStatusPositiveEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusPositiveEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusPositiveMuted() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusPositiveMuted, abstractTheme.colorSurfaceStatusPositiveMuted) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusPositiveMuted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusPositiveMuted, abstractTheme.colors.colorSurfaceStatusPositiveMuted) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusPositiveMuted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusWarningEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusWarningEmphasized, abstractTheme.colorSurfaceStatusWarningEmphasized) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusWarningEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusWarningEmphasized, abstractTheme.colors.colorSurfaceStatusWarningEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusWarningEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusWarningMuted() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusWarningMuted, abstractTheme.colorSurfaceStatusWarningMuted) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusWarningMuted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusWarningMuted, abstractTheme.colors.colorSurfaceStatusWarningMuted) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusWarningMuted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } // MARK: - Color - Decorative func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1Default() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1Default, abstractTheme.colorDecorativeAccent1Default) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent1Default == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent1Default, abstractTheme.colors.colorDecorativeAccent1Default) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent1Default == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1Emphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1Emphasized, abstractTheme.colorDecorativeAccent1Emphasized) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent1Emphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent1Emphasized, abstractTheme.colors.colorDecorativeAccent1Emphasized) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent1Emphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1Muted() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1Muted, abstractTheme.colorDecorativeAccent1Muted) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent1Muted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent1Muted, abstractTheme.colors.colorDecorativeAccent1Muted) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent1Muted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2Default() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2Default, abstractTheme.colorDecorativeAccent2Default) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent2Default == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent2Default, abstractTheme.colors.colorDecorativeAccent2Default) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent2Default == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2Emphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2Emphasized, abstractTheme.colorDecorativeAccent2Emphasized) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent2Emphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent2Emphasized, abstractTheme.colors.colorDecorativeAccent2Emphasized) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent2Emphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2Muted() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2Muted, abstractTheme.colorDecorativeAccent2Muted) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent2Muted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent2Muted, abstractTheme.colors.colorDecorativeAccent2Muted) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent2Muted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3Default() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3Default, abstractTheme.colorDecorativeAccent3Default) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent3Default == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent3Default, abstractTheme.colors.colorDecorativeAccent3Default) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent3Default == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3Emphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3Emphasized, abstractTheme.colorDecorativeAccent3Emphasized) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent3Emphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent3Emphasized, abstractTheme.colors.colorDecorativeAccent3Emphasized) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent3Emphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3Muted() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3Muted, abstractTheme.colorDecorativeAccent3Muted) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent3Muted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent3Muted, abstractTheme.colors.colorDecorativeAccent3Muted) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent3Muted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4Default() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4Default, abstractTheme.colorDecorativeAccent4Default) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent4Default == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent4Default, abstractTheme.colors.colorDecorativeAccent4Default) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent4Default == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4Emphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4Emphasized, abstractTheme.colorDecorativeAccent4Emphasized) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent4Emphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent4Emphasized, abstractTheme.colors.colorDecorativeAccent4Emphasized) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent4Emphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4Muted() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4Muted, abstractTheme.colorDecorativeAccent4Muted) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent4Muted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent4Muted, abstractTheme.colors.colorDecorativeAccent4Muted) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent4Muted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5Default() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5Default, abstractTheme.colorDecorativeAccent5Default) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent5Default == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent5Default, abstractTheme.colors.colorDecorativeAccent5Default) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent5Default == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5Emphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5Emphasized, abstractTheme.colorDecorativeAccent5Emphasized) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent5Emphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent5Emphasized, abstractTheme.colors.colorDecorativeAccent5Emphasized) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent5Emphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5Muted() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5Muted, abstractTheme.colorDecorativeAccent5Muted) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent5Muted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent5Muted, abstractTheme.colors.colorDecorativeAccent5Muted) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent5Muted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandPrimary() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandPrimary, abstractTheme.colorDecorativeBrandPrimary) - XCTAssertTrue(inheritedTheme.colorDecorativeBrandPrimary == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeBrandPrimary, abstractTheme.colors.colorDecorativeBrandPrimary) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeBrandPrimary == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandSecondary() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandSecondary, abstractTheme.colorDecorativeBrandSecondary) - XCTAssertTrue(inheritedTheme.colorDecorativeBrandSecondary == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeBrandSecondary, abstractTheme.colors.colorDecorativeBrandSecondary) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeBrandSecondary == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandTertiary() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandTertiary, abstractTheme.colorDecorativeBrandTertiary) - XCTAssertTrue(inheritedTheme.colorDecorativeBrandTertiary == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeBrandTertiary, abstractTheme.colors.colorDecorativeBrandTertiary) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeBrandTertiary == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralDefault() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralDefault, abstractTheme.colorDecorativeNeutralDefault) - XCTAssertTrue(inheritedTheme.colorDecorativeNeutralDefault == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeNeutralDefault, abstractTheme.colors.colorDecorativeNeutralDefault) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeNeutralDefault == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralEmphasized, abstractTheme.colorDecorativeNeutralEmphasized) - XCTAssertTrue(inheritedTheme.colorDecorativeNeutralEmphasized == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeNeutralEmphasized, abstractTheme.colors.colorDecorativeNeutralEmphasized) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeNeutralEmphasized == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralMuted() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralMuted, abstractTheme.colorDecorativeNeutralMuted) - XCTAssertTrue(inheritedTheme.colorDecorativeNeutralMuted == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeNeutralMuted, abstractTheme.colors.colorDecorativeNeutralMuted) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeNeutralMuted == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint100() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint100, abstractTheme.colorDecorativeSkinTint100) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint100 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint100, abstractTheme.colors.colorDecorativeSkinTint100) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint100 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint200() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint200, abstractTheme.colorDecorativeSkinTint200) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint200 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint200, abstractTheme.colors.colorDecorativeSkinTint200) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint200 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint300() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint300, abstractTheme.colorDecorativeSkinTint300) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint300 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint300, abstractTheme.colors.colorDecorativeSkinTint300) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint300 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint400() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint400, abstractTheme.colorDecorativeSkinTint400) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint400 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint400, abstractTheme.colors.colorDecorativeSkinTint400) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint400 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint500() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint500, abstractTheme.colorDecorativeSkinTint500) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint500 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint500, abstractTheme.colors.colorDecorativeSkinTint500) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint500 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint600() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint600, abstractTheme.colorDecorativeSkinTint600) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint600 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint600, abstractTheme.colors.colorDecorativeSkinTint600) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint600 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint700() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint700, abstractTheme.colorDecorativeSkinTint700) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint700 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint700, abstractTheme.colors.colorDecorativeSkinTint700) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint700 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint800() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint800, abstractTheme.colorDecorativeSkinTint800) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint800 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint800, abstractTheme.colors.colorDecorativeSkinTint800) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint800 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint900() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint900, abstractTheme.colorDecorativeSkinTint900) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint900 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint900, abstractTheme.colors.colorDecorativeSkinTint900) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint900 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } // MARK: - Color - Chart func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier1() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier1, abstractTheme.colorChartCategoricalTier1) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier1 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier1, abstractTheme.colors.colorChartCategoricalTier1) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier1 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier2() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier2, abstractTheme.colorChartCategoricalTier2) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier2 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier2, abstractTheme.colors.colorChartCategoricalTier2) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier2 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier3() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier3, abstractTheme.colorChartCategoricalTier3) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier3 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier3, abstractTheme.colors.colorChartCategoricalTier3) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier3 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier4() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier4, abstractTheme.colorChartCategoricalTier4) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier4 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier4, abstractTheme.colors.colorChartCategoricalTier4) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier4 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier5() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier5, abstractTheme.colorChartCategoricalTier5) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier5 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier5, abstractTheme.colors.colorChartCategoricalTier5) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier5 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier6() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier6, abstractTheme.colorChartCategoricalTier6) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier6 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier6, abstractTheme.colors.colorChartCategoricalTier6) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier6 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier7() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier7, abstractTheme.colorChartCategoricalTier7) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier7 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier7, abstractTheme.colors.colorChartCategoricalTier7) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier7 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier8() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier8, abstractTheme.colorChartCategoricalTier8) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier8 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier8, abstractTheme.colors.colorChartCategoricalTier8) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier8 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier9() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier9, abstractTheme.colorChartCategoricalTier9) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier9 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier9, abstractTheme.colors.colorChartCategoricalTier9) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier9 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier10() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier10, abstractTheme.colorChartCategoricalTier10) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier10 == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier10, abstractTheme.colors.colorChartCategoricalTier10) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier10 == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalInformation() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalInformation, abstractTheme.colorChartFunctionalInformation) - XCTAssertTrue(inheritedTheme.colorChartFunctionalInformation == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalInformation, abstractTheme.colors.colorChartFunctionalInformation) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalInformation == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalNegative() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalNegative, abstractTheme.colorChartFunctionalNegative) - XCTAssertTrue(inheritedTheme.colorChartFunctionalNegative == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalNegative, abstractTheme.colors.colorChartFunctionalNegative) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalNegative == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalPositive() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalPositive, abstractTheme.colorChartFunctionalPositive) - XCTAssertTrue(inheritedTheme.colorChartFunctionalPositive == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalPositive, abstractTheme.colors.colorChartFunctionalPositive) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalPositive == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalWarning() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalWarning, abstractTheme.colorChartFunctionalWarning) - XCTAssertTrue(inheritedTheme.colorChartFunctionalWarning == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalWarning, abstractTheme.colors.colorChartFunctionalWarning) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalWarning == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartGridlines() throws { - XCTAssertNotEqual(inheritedTheme.colorChartGridlines, abstractTheme.colorChartGridlines) - XCTAssertTrue(inheritedTheme.colorChartGridlines == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartGridlines, abstractTheme.colors.colorChartGridlines) + XCTAssertTrue(inheritedTheme.colors.colorChartGridlines == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartHighlight() throws { - XCTAssertNotEqual(inheritedTheme.colorChartHighlight, abstractTheme.colorChartHighlight) - XCTAssertTrue(inheritedTheme.colorChartHighlight == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartHighlight, abstractTheme.colors.colorChartHighlight) + XCTAssertTrue(inheritedTheme.colors.colorChartHighlight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorChartNeutral() throws { - XCTAssertNotEqual(inheritedTheme.colorChartNeutral, abstractTheme.colorChartNeutral) - XCTAssertTrue(inheritedTheme.colorChartNeutral == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorChartNeutral, abstractTheme.colors.colorChartNeutral) + XCTAssertTrue(inheritedTheme.colors.colorChartNeutral == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } // MARK: - Color - Repository func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentDefault() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentDefault, abstractTheme.colorRepositoryAccentDefault) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentDefault == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentDefault, abstractTheme.colors.colorRepositoryAccentDefault) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentDefault == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentHighest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentHighest, abstractTheme.colorRepositoryAccentHighest) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentHighest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentHighest, abstractTheme.colors.colorRepositoryAccentHighest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentHighest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentLow() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentLow, abstractTheme.colorRepositoryAccentLow) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentLow == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentLow, abstractTheme.colors.colorRepositoryAccentLow) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentLow == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentLowest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentLowest, abstractTheme.colorRepositoryAccentLowest) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentLowest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentLowest, abstractTheme.colors.colorRepositoryAccentLowest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentLowest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoDefault() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoDefault, abstractTheme.colorRepositoryInfoDefault) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoDefault == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoDefault, abstractTheme.colors.colorRepositoryInfoDefault) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoDefault == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoHighest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoHighest, abstractTheme.colorRepositoryInfoHighest) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoHighest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoHighest, abstractTheme.colors.colorRepositoryInfoHighest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoHighest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoLow() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoLow, abstractTheme.colorRepositoryInfoLow) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoLow == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoLow, abstractTheme.colors.colorRepositoryInfoLow) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoLow == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoLowest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoLowest, abstractTheme.colorRepositoryInfoLowest) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoLowest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoLowest, abstractTheme.colors.colorRepositoryInfoLowest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoLowest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeDefault() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeDefault, abstractTheme.colorRepositoryNegativeDefault) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeDefault == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeDefault, abstractTheme.colors.colorRepositoryNegativeDefault) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeDefault == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeHigh() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeHigh, abstractTheme.colorRepositoryNegativeHigh) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeHigh == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeHigh, abstractTheme.colors.colorRepositoryNegativeHigh) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeHigh == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeHigher() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeHigher, abstractTheme.colorRepositoryNegativeHigher) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeHigher == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeHigher, abstractTheme.colors.colorRepositoryNegativeHigher) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeHigher == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeHighest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeHighest, abstractTheme.colorRepositoryNegativeHighest) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeHighest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeHighest, abstractTheme.colors.colorRepositoryNegativeHighest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeHighest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeLow() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeLow, abstractTheme.colorRepositoryNegativeLow) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeLow == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeLow, abstractTheme.colors.colorRepositoryNegativeLow) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeLow == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeLower() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeLower, abstractTheme.colorRepositoryNegativeLower) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeLower == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeLower, abstractTheme.colors.colorRepositoryNegativeLower) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeLower == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeLowest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeLowest, abstractTheme.colorRepositoryNegativeLowest) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeLowest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeLowest, abstractTheme.colors.colorRepositoryNegativeLowest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeLowest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedBlack() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedBlack, abstractTheme.colorRepositoryNeutralEmphasizedBlack) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedBlack == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedBlack, abstractTheme.colors.colorRepositoryNeutralEmphasizedBlack) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedBlack == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedHigh() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedHigh, abstractTheme.colorRepositoryNeutralEmphasizedHigh) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedHigh == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHigh, abstractTheme.colors.colorRepositoryNeutralEmphasizedHigh) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHigh == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedHigher() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedHigher, abstractTheme.colorRepositoryNeutralEmphasizedHigher) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedHigher == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHigher, abstractTheme.colors.colorRepositoryNeutralEmphasizedHigher) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHigher == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedHighest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedHighest, abstractTheme.colorRepositoryNeutralEmphasizedHighest) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedHighest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHighest, abstractTheme.colors.colorRepositoryNeutralEmphasizedHighest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHighest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedMedium() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedMedium, abstractTheme.colorRepositoryNeutralEmphasizedMedium) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedMedium == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedMedium, abstractTheme.colors.colorRepositoryNeutralEmphasizedMedium) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedMedium == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralMutedLower() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralMutedLower, abstractTheme.colorRepositoryNeutralMutedLower) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralMutedLower == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralMutedLower, abstractTheme.colors.colorRepositoryNeutralMutedLower) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralMutedLower == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralMutedLowest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralMutedLowest, abstractTheme.colorRepositoryNeutralMutedLowest) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralMutedLowest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralMutedLowest, abstractTheme.colors.colorRepositoryNeutralMutedLowest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralMutedLowest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralMutedWhite() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralMutedWhite, abstractTheme.colorRepositoryNeutralMutedWhite) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralMutedWhite == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralMutedWhite, abstractTheme.colors.colorRepositoryNeutralMutedWhite) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralMutedWhite == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackHigher() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackHigher, abstractTheme.colorRepositoryOpacityBlackHigher) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackHigher == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackHigher, abstractTheme.colors.colorRepositoryOpacityBlackHigher) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackHigher == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackHighest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackHighest, abstractTheme.colorRepositoryOpacityBlackHighest) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackHighest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackHighest, abstractTheme.colors.colorRepositoryOpacityBlackHighest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackHighest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackLow() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackLow, abstractTheme.colorRepositoryOpacityBlackLow) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackLow == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackLow, abstractTheme.colors.colorRepositoryOpacityBlackLow) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackLow == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackLower() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackLower, abstractTheme.colorRepositoryOpacityBlackLower) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackLower == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackLower, abstractTheme.colors.colorRepositoryOpacityBlackLower) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackLower == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackLowest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackLowest, abstractTheme.colorRepositoryOpacityBlackLowest) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackLowest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackLowest, abstractTheme.colors.colorRepositoryOpacityBlackLowest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackLowest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackMedium() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackMedium, abstractTheme.colorRepositoryOpacityBlackMedium) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackMedium == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackMedium, abstractTheme.colors.colorRepositoryOpacityBlackMedium) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackMedium == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackTransparent() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackTransparent, abstractTheme.colorRepositoryOpacityBlackTransparent) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackTransparent == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackTransparent, abstractTheme.colors.colorRepositoryOpacityBlackTransparent) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackTransparent == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityInfo() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityInfo, abstractTheme.colorRepositoryOpacityInfo) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityInfo == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityInfo, abstractTheme.colors.colorRepositoryOpacityInfo) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityInfo == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityNegative() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityNegative, abstractTheme.colorRepositoryOpacityNegative) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityNegative == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityNegative, abstractTheme.colors.colorRepositoryOpacityNegative) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityNegative == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityPositive() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityPositive, abstractTheme.colorRepositoryOpacityPositive) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityPositive == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityPositive, abstractTheme.colors.colorRepositoryOpacityPositive) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityPositive == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWarning() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWarning, abstractTheme.colorRepositoryOpacityWarning) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWarning == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWarning, abstractTheme.colors.colorRepositoryOpacityWarning) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWarning == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteHigh() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteHigh, abstractTheme.colorRepositoryOpacityWhiteHigh) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteHigh == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteHigh, abstractTheme.colors.colorRepositoryOpacityWhiteHigh) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteHigh == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteHigher() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteHigher, abstractTheme.colorRepositoryOpacityWhiteHigher) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteHigher == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteHigher, abstractTheme.colors.colorRepositoryOpacityWhiteHigher) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteHigher == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteHighest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteHighest, abstractTheme.colorRepositoryOpacityWhiteHighest) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteHighest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteHighest, abstractTheme.colors.colorRepositoryOpacityWhiteHighest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteHighest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteHighLow() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteLow, abstractTheme.colorRepositoryOpacityWhiteLow) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteLow == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteLow, abstractTheme.colors.colorRepositoryOpacityWhiteLow) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteLow == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteLower() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteLower, abstractTheme.colorRepositoryOpacityWhiteLower) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteLower == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteLower, abstractTheme.colors.colorRepositoryOpacityWhiteLower) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteLower == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteLowest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteLowest, abstractTheme.colorRepositoryOpacityWhiteLowest) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteLowest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteLowest, abstractTheme.colors.colorRepositoryOpacityWhiteLowest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteLowest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteTransparent() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteTransparent, abstractTheme.colorRepositoryOpacityWhiteTransparent) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteTransparent == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteTransparent, abstractTheme.colors.colorRepositoryOpacityWhiteTransparent) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteTransparent == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveDefault() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveDefault, abstractTheme.colorRepositoryPositiveDefault) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveDefault == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveDefault, abstractTheme.colors.colorRepositoryPositiveDefault) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveDefault == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveHighest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveHighest, abstractTheme.colorRepositoryPositiveHighest) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveHighest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveHighest, abstractTheme.colors.colorRepositoryPositiveHighest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveHighest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveLow() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveLow, abstractTheme.colorRepositoryPositiveLow) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveLow == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveLow, abstractTheme.colors.colorRepositoryPositiveLow) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveLow == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveLowest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveLowest, abstractTheme.colorRepositoryPositiveLowest) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveLowest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveLowest, abstractTheme.colors.colorRepositoryPositiveLowest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveLowest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPrimaryDefault() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPrimaryDefault, abstractTheme.colorRepositoryPrimaryDefault) - XCTAssertTrue(inheritedTheme.colorRepositoryPrimaryDefault == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPrimaryDefault, abstractTheme.colors.colorRepositoryPrimaryDefault) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPrimaryDefault == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPrimaryLow() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPrimaryLow, abstractTheme.colorRepositoryPrimaryLow) - XCTAssertTrue(inheritedTheme.colorRepositoryPrimaryLow == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPrimaryLow, abstractTheme.colors.colorRepositoryPrimaryLow) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPrimaryLow == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningDefault() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningDefault, abstractTheme.colorRepositoryWarningDefault) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningDefault == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningDefault, abstractTheme.colors.colorRepositoryWarningDefault) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningDefault == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningHighest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningHighest, abstractTheme.colorRepositoryWarningHighest) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningHighest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningHighest, abstractTheme.colors.colorRepositoryWarningHighest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningHighest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningLow() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningLow, abstractTheme.colorRepositoryWarningLow) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningLow == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningLow, abstractTheme.colors.colorRepositoryWarningLow) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningLow == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningLowest() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningLowest, abstractTheme.colorRepositoryWarningLowest) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningLowest == OtherMockTheme.otherMockThemeMultipleColorSemanticTokens) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningLowest, abstractTheme.colors.colorRepositoryWarningLowest) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningLowest == OtherMockThemeColorSemanticTokensProvider.otherMockThemeMultipleColorSemanticTokens) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorSemanticTokens.swift index 66eca6ae10..ade9090419 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfColorSemanticTokens.swift @@ -41,1686 +41,1686 @@ final class TestThemeOverrideOfColorSemanticTokens: XCTestCase { // MARK: - Color semantic tokens - Light and dark func testInheritedThemeCanOverrideSemanticTokenColorOpacityInvisibleBlackLight() throws { - XCTAssertNotEqual(inheritedTheme.colorOpacityInvisibleBlackLight, abstractTheme.colorOpacityInvisibleBlackLight) - XCTAssertTrue(inheritedTheme.colorOpacityInvisibleBlackLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOpacityInvisibleBlackLight, abstractTheme.colors.colorOpacityInvisibleBlackLight) + XCTAssertTrue(inheritedTheme.colors.colorOpacityInvisibleBlackLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorOpacityInvisibleBlackDark() throws { - XCTAssertNotEqual(inheritedTheme.colorOpacityInvisibleBlackDark, abstractTheme.colorOpacityInvisibleBlackDark) - XCTAssertTrue(inheritedTheme.colorOpacityInvisibleBlackDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOpacityInvisibleBlackDark, abstractTheme.colors.colorOpacityInvisibleBlackDark) + XCTAssertTrue(inheritedTheme.colors.colorOpacityInvisibleBlackDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorOpacityInvisibleWhiteLight() throws { - XCTAssertNotEqual(inheritedTheme.colorOpacityInvisibleWhiteLight, abstractTheme.colorOpacityInvisibleWhiteLight) - XCTAssertTrue(inheritedTheme.colorOpacityInvisibleWhiteLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOpacityInvisibleWhiteLight, abstractTheme.colors.colorOpacityInvisibleWhiteLight) + XCTAssertTrue(inheritedTheme.colors.colorOpacityInvisibleWhiteLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorOpacityInvisibleWhiteDark() throws { - XCTAssertNotEqual(inheritedTheme.colorOpacityInvisibleWhiteDark, abstractTheme.colorOpacityInvisibleWhiteDark) - XCTAssertTrue(inheritedTheme.colorOpacityInvisibleWhiteDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOpacityInvisibleWhiteDark, abstractTheme.colors.colorOpacityInvisibleWhiteDark) + XCTAssertTrue(inheritedTheme.colors.colorOpacityInvisibleWhiteDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionDisabledLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionDisabledLight, abstractTheme.colorActionDisabledLight) - XCTAssertTrue(inheritedTheme.colorActionDisabledLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionDisabledLight, abstractTheme.colors.colorActionDisabledLight) + XCTAssertTrue(inheritedTheme.colors.colorActionDisabledLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionEnabledLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionEnabledLight, abstractTheme.colorActionEnabledLight) - XCTAssertTrue(inheritedTheme.colorActionEnabledLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionEnabledLight, abstractTheme.colors.colorActionEnabledLight) + XCTAssertTrue(inheritedTheme.colors.colorActionEnabledLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionFocusLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionFocusLight, abstractTheme.colorActionFocusLight) - XCTAssertTrue(inheritedTheme.colorActionFocusLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionFocusLight, abstractTheme.colors.colorActionFocusLight) + XCTAssertTrue(inheritedTheme.colors.colorActionFocusLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionHighlightedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionHighlightedLight, abstractTheme.colorActionHighlightedLight) - XCTAssertTrue(inheritedTheme.colorActionHighlightedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionHighlightedLight, abstractTheme.colors.colorActionHighlightedLight) + XCTAssertTrue(inheritedTheme.colors.colorActionHighlightedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionHoverLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionHoverLight, abstractTheme.colorActionHoverLight) - XCTAssertTrue(inheritedTheme.colorActionHoverLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionHoverLight, abstractTheme.colors.colorActionHoverLight) + XCTAssertTrue(inheritedTheme.colors.colorActionHoverLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionLoadingLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionLoadingLight, abstractTheme.colorActionLoadingLight) - XCTAssertTrue(inheritedTheme.colorActionLoadingLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionLoadingLight, abstractTheme.colors.colorActionLoadingLight) + XCTAssertTrue(inheritedTheme.colors.colorActionLoadingLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeEnabledLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeEnabledLight, abstractTheme.colorActionNegativeEnabledLight) - XCTAssertTrue(inheritedTheme.colorActionNegativeEnabledLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeEnabledLight, abstractTheme.colors.colorActionNegativeEnabledLight) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeEnabledLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeFocusLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeFocusLight, abstractTheme.colorActionNegativeFocusLight) - XCTAssertTrue(inheritedTheme.colorActionNegativeFocusLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeFocusLight, abstractTheme.colors.colorActionNegativeFocusLight) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeFocusLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeHoverLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeHoverLight, abstractTheme.colorActionNegativeHoverLight) - XCTAssertTrue(inheritedTheme.colorActionNegativeHoverLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeHoverLight, abstractTheme.colors.colorActionNegativeHoverLight) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeHoverLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeLoadingLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeLoadingLight, abstractTheme.colorActionNegativeLoadingLight) - XCTAssertTrue(inheritedTheme.colorActionNegativeLoadingLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeLoadingLight, abstractTheme.colors.colorActionNegativeLoadingLight) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeLoadingLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativePressedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativePressedLight, abstractTheme.colorActionNegativePressedLight) - XCTAssertTrue(inheritedTheme.colorActionNegativePressedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativePressedLight, abstractTheme.colors.colorActionNegativePressedLight) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativePressedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeEnabledDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeEnabledDark, abstractTheme.colorActionNegativeEnabledDark) - XCTAssertTrue(inheritedTheme.colorActionNegativeEnabledDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeEnabledDark, abstractTheme.colors.colorActionNegativeEnabledDark) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeEnabledDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeFocusDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeFocusDark, abstractTheme.colorActionNegativeFocusDark) - XCTAssertTrue(inheritedTheme.colorActionNegativeFocusDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeFocusDark, abstractTheme.colors.colorActionNegativeFocusDark) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeFocusDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeHoverDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeHoverDark, abstractTheme.colorActionNegativeHoverDark) - XCTAssertTrue(inheritedTheme.colorActionNegativeHoverDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeHoverDark, abstractTheme.colors.colorActionNegativeHoverDark) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeHoverDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativeLoadingDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativeLoadingDark, abstractTheme.colorActionNegativeLoadingDark) - XCTAssertTrue(inheritedTheme.colorActionNegativeLoadingDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativeLoadingDark, abstractTheme.colors.colorActionNegativeLoadingDark) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativeLoadingDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionNegativePressedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionNegativePressedDark, abstractTheme.colorActionNegativePressedDark) - XCTAssertTrue(inheritedTheme.colorActionNegativePressedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionNegativePressedDark, abstractTheme.colors.colorActionNegativePressedDark) + XCTAssertTrue(inheritedTheme.colors.colorActionNegativePressedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionPressedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionPressedLight, abstractTheme.colorActionPressedLight) - XCTAssertTrue(inheritedTheme.colorActionPressedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionPressedLight, abstractTheme.colors.colorActionPressedLight) + XCTAssertTrue(inheritedTheme.colors.colorActionPressedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSelectedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSelectedLight, abstractTheme.colorActionSelectedLight) - XCTAssertTrue(inheritedTheme.colorActionSelectedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSelectedLight, abstractTheme.colors.colorActionSelectedLight) + XCTAssertTrue(inheritedTheme.colors.colorActionSelectedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportEnabledLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportEnabledLight, abstractTheme.colorActionSupportEnabledLight) - XCTAssertTrue(inheritedTheme.colorActionSupportEnabledLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportEnabledLight, abstractTheme.colors.colorActionSupportEnabledLight) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportEnabledLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportFocusLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportFocusLight, abstractTheme.colorActionSupportFocusLight) - XCTAssertTrue(inheritedTheme.colorActionSupportFocusLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportFocusLight, abstractTheme.colors.colorActionSupportFocusLight) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportFocusLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportHoverLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportHoverLight, abstractTheme.colorActionSupportHoverLight) - XCTAssertTrue(inheritedTheme.colorActionSupportHoverLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportHoverLight, abstractTheme.colors.colorActionSupportHoverLight) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportHoverLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportLoadingLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportLoadingLight, abstractTheme.colorActionSupportLoadingLight) - XCTAssertTrue(inheritedTheme.colorActionSupportLoadingLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportLoadingLight, abstractTheme.colors.colorActionSupportLoadingLight) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportLoadingLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportPressedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportPressedLight, abstractTheme.colorActionSupportPressedLight) - XCTAssertTrue(inheritedTheme.colorActionSupportPressedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportPressedLight, abstractTheme.colors.colorActionSupportPressedLight) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportPressedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportEnabledDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportEnabledDark, abstractTheme.colorActionSupportEnabledDark) - XCTAssertTrue(inheritedTheme.colorActionSupportEnabledDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportEnabledDark, abstractTheme.colors.colorActionSupportEnabledDark) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportEnabledDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportFocusDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportFocusDark, abstractTheme.colorActionSupportFocusDark) - XCTAssertTrue(inheritedTheme.colorActionSupportFocusDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportFocusDark, abstractTheme.colors.colorActionSupportFocusDark) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportFocusDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportHoverDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportHoverDark, abstractTheme.colorActionSupportHoverDark) - XCTAssertTrue(inheritedTheme.colorActionSupportHoverDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportHoverDark, abstractTheme.colors.colorActionSupportHoverDark) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportHoverDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportLoadingDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportLoadingDark, abstractTheme.colorActionSupportLoadingDark) - XCTAssertTrue(inheritedTheme.colorActionSupportLoadingDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportLoadingDark, abstractTheme.colors.colorActionSupportLoadingDark) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportLoadingDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSupportPressedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSupportPressedDark, abstractTheme.colorActionSupportPressedDark) - XCTAssertTrue(inheritedTheme.colorActionSupportPressedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSupportPressedDark, abstractTheme.colors.colorActionSupportPressedDark) + XCTAssertTrue(inheritedTheme.colors.colorActionSupportPressedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionVisitedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorActionVisitedLight, abstractTheme.colorActionVisitedLight) - XCTAssertTrue(inheritedTheme.colorActionVisitedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionVisitedLight, abstractTheme.colors.colorActionVisitedLight) + XCTAssertTrue(inheritedTheme.colors.colorActionVisitedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionDisabledDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionDisabledDark, abstractTheme.colorActionDisabledDark) - XCTAssertTrue(inheritedTheme.colorActionDisabledDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionDisabledDark, abstractTheme.colors.colorActionDisabledDark) + XCTAssertTrue(inheritedTheme.colors.colorActionDisabledDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionEnabledDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionEnabledDark, abstractTheme.colorActionEnabledDark) - XCTAssertTrue(inheritedTheme.colorActionEnabledDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionEnabledDark, abstractTheme.colors.colorActionEnabledDark) + XCTAssertTrue(inheritedTheme.colors.colorActionEnabledDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionFocusDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionFocusDark, abstractTheme.colorActionFocusDark) - XCTAssertTrue(inheritedTheme.colorActionFocusDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionFocusDark, abstractTheme.colors.colorActionFocusDark) + XCTAssertTrue(inheritedTheme.colors.colorActionFocusDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionHighlightedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionHighlightedDark, abstractTheme.colorActionHighlightedDark) - XCTAssertTrue(inheritedTheme.colorActionHighlightedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionHighlightedDark, abstractTheme.colors.colorActionHighlightedDark) + XCTAssertTrue(inheritedTheme.colors.colorActionHighlightedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionHoverDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionHoverDark, abstractTheme.colorActionHoverDark) - XCTAssertTrue(inheritedTheme.colorActionHoverDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionHoverDark, abstractTheme.colors.colorActionHoverDark) + XCTAssertTrue(inheritedTheme.colors.colorActionHoverDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionLoadingDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionLoadingDark, abstractTheme.colorActionLoadingDark) - XCTAssertTrue(inheritedTheme.colorActionLoadingDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionLoadingDark, abstractTheme.colors.colorActionLoadingDark) + XCTAssertTrue(inheritedTheme.colors.colorActionLoadingDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionPressedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionPressedDark, abstractTheme.colorActionPressedDark) - XCTAssertTrue(inheritedTheme.colorActionPressedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionPressedDark, abstractTheme.colors.colorActionPressedDark) + XCTAssertTrue(inheritedTheme.colors.colorActionPressedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionSelectedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionSelectedDark, abstractTheme.colorActionSelectedDark) - XCTAssertTrue(inheritedTheme.colorActionSelectedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionSelectedDark, abstractTheme.colors.colorActionSelectedDark) + XCTAssertTrue(inheritedTheme.colors.colorActionSelectedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorActionVisitedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorActionVisitedDark, abstractTheme.colorActionVisitedDark) - XCTAssertTrue(inheritedTheme.colorActionVisitedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorActionVisitedDark, abstractTheme.colors.colorActionVisitedDark) + XCTAssertTrue(inheritedTheme.colors.colorActionVisitedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorAlwaysBlackLight() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysBlackLight, abstractTheme.colorAlwaysBlackLight) - XCTAssertTrue(inheritedTheme.colorAlwaysBlackLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysBlackLight, abstractTheme.colors.colorAlwaysBlackLight) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysBlackLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnBlackLight() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysOnBlackLight, abstractTheme.colorAlwaysOnBlackLight) - XCTAssertTrue(inheritedTheme.colorAlwaysOnBlackLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysOnBlackLight, abstractTheme.colors.colorAlwaysOnBlackLight) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysOnBlackLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnWhiteLight() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysOnWhiteLight, abstractTheme.colorAlwaysOnWhiteLight) - XCTAssertTrue(inheritedTheme.colorAlwaysOnWhiteLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysOnWhiteLight, abstractTheme.colors.colorAlwaysOnWhiteLight) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysOnWhiteLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorAlwaysWhiteLight() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysWhiteLight, abstractTheme.colorAlwaysWhiteLight) - XCTAssertTrue(inheritedTheme.colorAlwaysWhiteLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysWhiteLight, abstractTheme.colors.colorAlwaysWhiteLight) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysWhiteLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorAlwaysBlackDark() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysBlackDark, abstractTheme.colorAlwaysBlackDark) - XCTAssertTrue(inheritedTheme.colorAlwaysBlackDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysBlackDark, abstractTheme.colors.colorAlwaysBlackDark) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysBlackDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnBlackDark() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysOnBlackDark, abstractTheme.colorAlwaysOnBlackDark) - XCTAssertTrue(inheritedTheme.colorAlwaysOnBlackDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysOnBlackDark, abstractTheme.colors.colorAlwaysOnBlackDark) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysOnBlackDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorAlwaysOnWhiteDark() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysOnWhiteDark, abstractTheme.colorAlwaysOnWhiteDark) - XCTAssertTrue(inheritedTheme.colorAlwaysOnWhiteDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysOnWhiteDark, abstractTheme.colors.colorAlwaysOnWhiteDark) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysOnWhiteDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorAlwaysWhiteDark() throws { - XCTAssertNotEqual(inheritedTheme.colorAlwaysWhiteDark, abstractTheme.colorAlwaysWhiteDark) - XCTAssertTrue(inheritedTheme.colorAlwaysWhiteDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorAlwaysWhiteDark, abstractTheme.colors.colorAlwaysWhiteDark) + XCTAssertTrue(inheritedTheme.colors.colorAlwaysWhiteDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBgEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBgEmphasizedLight, abstractTheme.colorBgEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorBgEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBgEmphasizedLight, abstractTheme.colors.colorBgEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorBgEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBgPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBgPrimaryLight, abstractTheme.colorBgPrimaryLight) - XCTAssertTrue(inheritedTheme.colorBgPrimaryLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBgPrimaryLight, abstractTheme.colors.colorBgPrimaryLight) + XCTAssertTrue(inheritedTheme.colors.colorBgPrimaryLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBgSecondaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBgSecondaryLight, abstractTheme.colorBgSecondaryLight) - XCTAssertTrue(inheritedTheme.colorBgSecondaryLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBgSecondaryLight, abstractTheme.colors.colorBgSecondaryLight) + XCTAssertTrue(inheritedTheme.colors.colorBgSecondaryLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBgTertiaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBgTertiaryLight, abstractTheme.colorBgTertiaryLight) - XCTAssertTrue(inheritedTheme.colorBgTertiaryLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBgTertiaryLight, abstractTheme.colors.colorBgTertiaryLight) + XCTAssertTrue(inheritedTheme.colors.colorBgTertiaryLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBgEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBgEmphasizedDark, abstractTheme.colorBgEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorBgEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBgEmphasizedDark, abstractTheme.colors.colorBgEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorBgEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBgPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBgPrimaryDark, abstractTheme.colorBgPrimaryDark) - XCTAssertTrue(inheritedTheme.colorBgPrimaryDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBgPrimaryDark, abstractTheme.colors.colorBgPrimaryDark) + XCTAssertTrue(inheritedTheme.colors.colorBgPrimaryDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBgSecondaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBgSecondaryDark, abstractTheme.colorBgSecondaryDark) - XCTAssertTrue(inheritedTheme.colorBgSecondaryDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBgSecondaryDark, abstractTheme.colors.colorBgSecondaryDark) + XCTAssertTrue(inheritedTheme.colors.colorBgSecondaryDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBgTertiaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBgTertiaryDark, abstractTheme.colorBgTertiaryDark) - XCTAssertTrue(inheritedTheme.colorBgTertiaryDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBgTertiaryDark, abstractTheme.colors.colorBgTertiaryDark) + XCTAssertTrue(inheritedTheme.colors.colorBgTertiaryDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandPrimaryLight, abstractTheme.colorBorderBrandPrimaryLight) - XCTAssertTrue(inheritedTheme.colorBorderBrandPrimaryLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderBrandPrimaryLight, abstractTheme.colors.colorBorderBrandPrimaryLight) + XCTAssertTrue(inheritedTheme.colors.colorBorderBrandPrimaryLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderDefaultLight, abstractTheme.colorBorderDefaultLight) - XCTAssertTrue(inheritedTheme.colorBorderDefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderDefaultLight, abstractTheme.colors.colorBorderDefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorBorderDefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderEmphasizedLight, abstractTheme.colorBorderEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorBorderEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderEmphasizedLight, abstractTheme.colors.colorBorderEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorBorderEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderFocusLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderFocusLight, abstractTheme.colorBorderFocusLight) - XCTAssertTrue(inheritedTheme.colorBorderFocusLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderFocusLight, abstractTheme.colors.colorBorderFocusLight) + XCTAssertTrue(inheritedTheme.colors.colorBorderFocusLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderFocusInsetLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderFocusInsetLight, abstractTheme.colorBorderFocusInsetLight) - XCTAssertTrue(inheritedTheme.colorBorderFocusInsetLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderFocusInsetLight, abstractTheme.colors.colorBorderFocusInsetLight) + XCTAssertTrue(inheritedTheme.colors.colorBorderFocusInsetLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderOnBrandPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderOnBrandPrimaryLight, abstractTheme.colorBorderOnBrandPrimaryLight) - XCTAssertTrue(inheritedTheme.colorBorderOnBrandPrimaryLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderOnBrandPrimaryLight, abstractTheme.colors.colorBorderOnBrandPrimaryLight) + XCTAssertTrue(inheritedTheme.colors.colorBorderOnBrandPrimaryLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderOnBrandPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderOnBrandPrimaryDark, abstractTheme.colorBorderOnBrandPrimaryDark) - XCTAssertTrue(inheritedTheme.colorBorderOnBrandPrimaryDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderOnBrandPrimaryDark, abstractTheme.colors.colorBorderOnBrandPrimaryDark) + XCTAssertTrue(inheritedTheme.colors.colorBorderOnBrandPrimaryDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderBrandPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderBrandPrimaryDark, abstractTheme.colorBorderBrandPrimaryDark) - XCTAssertTrue(inheritedTheme.colorBorderBrandPrimaryDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderBrandPrimaryDark, abstractTheme.colors.colorBorderBrandPrimaryDark) + XCTAssertTrue(inheritedTheme.colors.colorBorderBrandPrimaryDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderDefaultDark, abstractTheme.colorBorderDefaultDark) - XCTAssertTrue(inheritedTheme.colorBorderDefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderDefaultDark, abstractTheme.colors.colorBorderDefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorBorderDefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderEmphasizedDark, abstractTheme.colorBorderEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorBorderEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderEmphasizedDark, abstractTheme.colors.colorBorderEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorBorderEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderFocusDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderFocusDark, abstractTheme.colorBorderFocusDark) - XCTAssertTrue(inheritedTheme.colorBorderFocusDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderFocusDark, abstractTheme.colors.colorBorderFocusDark) + XCTAssertTrue(inheritedTheme.colors.colorBorderFocusDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorBorderFocusInsetDark() throws { - XCTAssertNotEqual(inheritedTheme.colorBorderFocusInsetDark, abstractTheme.colorBorderFocusInsetDark) - XCTAssertTrue(inheritedTheme.colorBorderFocusInsetDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorBorderFocusInsetDark, abstractTheme.colors.colorBorderFocusInsetDark) + XCTAssertTrue(inheritedTheme.colors.colorBorderFocusInsetDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentBrandPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentBrandPrimaryLight, abstractTheme.colorContentBrandPrimaryLight) - XCTAssertTrue(inheritedTheme.colorContentBrandPrimaryLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentBrandPrimaryLight, abstractTheme.colors.colorContentBrandPrimaryLight) + XCTAssertTrue(inheritedTheme.colors.colorContentBrandPrimaryLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDefaultLight, abstractTheme.colorContentDefaultLight) - XCTAssertTrue(inheritedTheme.colorContentDefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentDefaultLight, abstractTheme.colors.colorContentDefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorContentDefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentDisabledLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentDisabledLight, abstractTheme.colorContentDisabledLight) - XCTAssertTrue(inheritedTheme.colorContentDisabledLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentDisabledLight, abstractTheme.colors.colorContentDisabledLight) + XCTAssertTrue(inheritedTheme.colors.colorContentDisabledLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentMutedLight, abstractTheme.colorContentMutedLight) - XCTAssertTrue(inheritedTheme.colorContentMutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentMutedLight, abstractTheme.colors.colorContentMutedLight) + XCTAssertTrue(inheritedTheme.colors.colorContentMutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionDisabledLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionDisabledLight, abstractTheme.colorContentOnActionDisabledLight) - XCTAssertTrue(inheritedTheme.colorContentOnActionDisabledLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionDisabledLight, abstractTheme.colors.colorContentOnActionDisabledLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionDisabledLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionEnabledLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionEnabledLight, abstractTheme.colorContentOnActionEnabledLight) - XCTAssertTrue(inheritedTheme.colorContentOnActionEnabledLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionEnabledLight, abstractTheme.colors.colorContentOnActionEnabledLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionEnabledLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionFocusLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionFocusLight, abstractTheme.colorContentOnActionFocusLight) - XCTAssertTrue(inheritedTheme.colorContentOnActionFocusLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionFocusLight, abstractTheme.colors.colorContentOnActionFocusLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionFocusLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionHighlightedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionHighlightedLight, abstractTheme.colorContentOnActionHighlightedLight) - XCTAssertTrue(inheritedTheme.colorContentOnActionHighlightedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionHighlightedLight, abstractTheme.colors.colorContentOnActionHighlightedLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionHighlightedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionHoverLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionHoverLight, abstractTheme.colorContentOnActionHoverLight) - XCTAssertTrue(inheritedTheme.colorContentOnActionHoverLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionHoverLight, abstractTheme.colors.colorContentOnActionHoverLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionHoverLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionLoadingLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionLoadingLight, abstractTheme.colorContentOnActionLoadingLight) - XCTAssertTrue(inheritedTheme.colorContentOnActionLoadingLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionLoadingLight, abstractTheme.colors.colorContentOnActionLoadingLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionLoadingLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionNegativeLight, abstractTheme.colorContentOnActionNegativeLight) - XCTAssertTrue(inheritedTheme.colorContentOnActionNegativeLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionNegativeLight, abstractTheme.colors.colorContentOnActionNegativeLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionNegativeLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionPressedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionPressedLight, abstractTheme.colorContentOnActionPressedLight) - XCTAssertTrue(inheritedTheme.colorContentOnActionPressedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionPressedLight, abstractTheme.colors.colorContentOnActionPressedLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionPressedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionDisabledDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionDisabledDark, abstractTheme.colorContentOnActionDisabledDark) - XCTAssertTrue(inheritedTheme.colorContentOnActionDisabledDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionDisabledDark, abstractTheme.colors.colorContentOnActionDisabledDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionDisabledDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionEnabledDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionEnabledDark, abstractTheme.colorContentOnActionEnabledDark) - XCTAssertTrue(inheritedTheme.colorContentOnActionEnabledDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionEnabledDark, abstractTheme.colors.colorContentOnActionEnabledDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionEnabledDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionFocusDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionFocusDark, abstractTheme.colorContentOnActionFocusDark) - XCTAssertTrue(inheritedTheme.colorContentOnActionFocusDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionFocusDark, abstractTheme.colors.colorContentOnActionFocusDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionFocusDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionHighlightedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionHighlightedDark, abstractTheme.colorContentOnActionHighlightedDark) - XCTAssertTrue(inheritedTheme.colorContentOnActionHighlightedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionHighlightedDark, abstractTheme.colors.colorContentOnActionHighlightedDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionHighlightedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionHoverDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionHoverDark, abstractTheme.colorContentOnActionHoverDark) - XCTAssertTrue(inheritedTheme.colorContentOnActionHoverDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionHoverDark, abstractTheme.colors.colorContentOnActionHoverDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionHoverDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionLoadingDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionLoadingDark, abstractTheme.colorContentOnActionLoadingDark) - XCTAssertTrue(inheritedTheme.colorContentOnActionLoadingDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionLoadingDark, abstractTheme.colors.colorContentOnActionLoadingDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionLoadingDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionNegativeDark, abstractTheme.colorContentOnActionNegativeDark) - XCTAssertTrue(inheritedTheme.colorContentOnActionNegativeDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionNegativeDark, abstractTheme.colors.colorContentOnActionNegativeDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionNegativeDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnActionPressedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnActionPressedDark, abstractTheme.colorContentOnActionPressedDark) - XCTAssertTrue(inheritedTheme.colorContentOnActionPressedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnActionPressedDark, abstractTheme.colors.colorContentOnActionPressedDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnActionPressedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnBrandPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnBrandPrimaryLight, abstractTheme.colorContentOnBrandPrimaryLight) - XCTAssertTrue(inheritedTheme.colorContentOnBrandPrimaryLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnBrandPrimaryLight, abstractTheme.colors.colorContentOnBrandPrimaryLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnBrandPrimaryLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnBrandPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnBrandPrimaryDark, abstractTheme.colorContentOnBrandPrimaryDark) - XCTAssertTrue(inheritedTheme.colorContentOnBrandPrimaryDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnBrandPrimaryDark, abstractTheme.colors.colorContentOnBrandPrimaryDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnBrandPrimaryDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnOverlayEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnOverlayEmphasizedLight, abstractTheme.colorContentOnOverlayEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorContentOnOverlayEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnOverlayEmphasizedLight, abstractTheme.colors.colorContentOnOverlayEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnOverlayEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnOverlayEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnOverlayEmphasizedDark, abstractTheme.colorContentOnOverlayEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorContentOnOverlayEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnOverlayEmphasizedDark, abstractTheme.colors.colorContentOnOverlayEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnOverlayEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnStatusEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnStatusEmphasizedLight, abstractTheme.colorContentOnStatusEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorContentOnStatusEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnStatusEmphasizedLight, abstractTheme.colors.colorContentOnStatusEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnStatusEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnStatusEmphasizedNeutralLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnStatusEmphasizedNeutralLight, abstractTheme.colorContentOnStatusEmphasizedNeutralLight) - XCTAssertTrue(inheritedTheme.colorContentOnStatusEmphasizedNeutralLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnStatusEmphasizedNeutralLight, abstractTheme.colors.colorContentOnStatusEmphasizedNeutralLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnStatusEmphasizedNeutralLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnStatusMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnStatusMutedLight, abstractTheme.colorContentOnStatusMutedLight) - XCTAssertTrue(inheritedTheme.colorContentOnStatusMutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnStatusMutedLight, abstractTheme.colors.colorContentOnStatusMutedLight) + XCTAssertTrue(inheritedTheme.colors.colorContentOnStatusMutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnStatusEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnStatusEmphasizedDark, abstractTheme.colorContentOnStatusEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorContentOnStatusEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnStatusEmphasizedDark, abstractTheme.colors.colorContentOnStatusEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnStatusEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnStatusEmphasizedNeutralDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnStatusEmphasizedNeutralDark, abstractTheme.colorContentOnStatusEmphasizedNeutralDark) - XCTAssertTrue(inheritedTheme.colorContentOnStatusEmphasizedNeutralDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnStatusEmphasizedNeutralDark, abstractTheme.colors.colorContentOnStatusEmphasizedNeutralDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnStatusEmphasizedNeutralDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentOnStatusMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentOnStatusMutedDark, abstractTheme.colorContentOnStatusMutedDark) - XCTAssertTrue(inheritedTheme.colorContentOnStatusMutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentOnStatusMutedDark, abstractTheme.colors.colorContentOnStatusMutedDark) + XCTAssertTrue(inheritedTheme.colors.colorContentOnStatusMutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusInfoLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusInfoLight, abstractTheme.colorContentStatusInfoLight) - XCTAssertTrue(inheritedTheme.colorContentStatusInfoLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusInfoLight, abstractTheme.colors.colorContentStatusInfoLight) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusInfoLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusNegativeLight, abstractTheme.colorContentStatusNegativeLight) - XCTAssertTrue(inheritedTheme.colorContentStatusNegativeLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusNegativeLight, abstractTheme.colors.colorContentStatusNegativeLight) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusNegativeLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusPositiveLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusPositiveLight, abstractTheme.colorContentStatusPositiveLight) - XCTAssertTrue(inheritedTheme.colorContentStatusPositiveLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusPositiveLight, abstractTheme.colors.colorContentStatusPositiveLight) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusPositiveLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusWarningLight() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusWarningLight, abstractTheme.colorContentStatusWarningLight) - XCTAssertTrue(inheritedTheme.colorContentStatusWarningLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusWarningLight, abstractTheme.colors.colorContentStatusWarningLight) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusWarningLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusInfoDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusInfoDark, abstractTheme.colorContentStatusInfoDark) - XCTAssertTrue(inheritedTheme.colorContentStatusInfoDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusInfoDark, abstractTheme.colors.colorContentStatusInfoDark) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusInfoDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusNegativeDark, abstractTheme.colorContentStatusNegativeDark) - XCTAssertTrue(inheritedTheme.colorContentStatusNegativeDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusNegativeDark, abstractTheme.colors.colorContentStatusNegativeDark) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusNegativeDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusPositiveDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusPositiveDark, abstractTheme.colorContentStatusPositiveDark) - XCTAssertTrue(inheritedTheme.colorContentStatusPositiveDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusPositiveDark, abstractTheme.colors.colorContentStatusPositiveDark) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusPositiveDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorContentStatusWarningDark() throws { - XCTAssertNotEqual(inheritedTheme.colorContentStatusWarningDark, abstractTheme.colorContentStatusWarningDark) - XCTAssertTrue(inheritedTheme.colorContentStatusWarningDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorContentStatusWarningDark, abstractTheme.colors.colorContentStatusWarningDark) + XCTAssertTrue(inheritedTheme.colors.colorContentStatusWarningDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorOverlayDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayDefaultLight, abstractTheme.colorOverlayDefaultLight) - XCTAssertTrue(inheritedTheme.colorOverlayDefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayDefaultLight, abstractTheme.colors.colorOverlayDefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorOverlayDefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorOverlayDragLight() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayDragLight, abstractTheme.colorOverlayDragLight) - XCTAssertTrue(inheritedTheme.colorOverlayDragLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayDragLight, abstractTheme.colors.colorOverlayDragLight) + XCTAssertTrue(inheritedTheme.colors.colorOverlayDragLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorOverlayEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayEmphasizedLight, abstractTheme.colorOverlayEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorOverlayEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayEmphasizedLight, abstractTheme.colors.colorOverlayEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorOverlayEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorOverlayModalLight() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayModalLight, abstractTheme.colorOverlayModalLight) - XCTAssertTrue(inheritedTheme.colorOverlayModalLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayModalLight, abstractTheme.colors.colorOverlayModalLight) + XCTAssertTrue(inheritedTheme.colors.colorOverlayModalLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorOverlayDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayDefaultDark, abstractTheme.colorOverlayDefaultDark) - XCTAssertTrue(inheritedTheme.colorOverlayDefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayDefaultDark, abstractTheme.colors.colorOverlayDefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorOverlayDefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorOverlayDragDark() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayDragDark, abstractTheme.colorOverlayDragDark) - XCTAssertTrue(inheritedTheme.colorOverlayDragDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayDragDark, abstractTheme.colors.colorOverlayDragDark) + XCTAssertTrue(inheritedTheme.colors.colorOverlayDragDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorOverlayEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayEmphasizedDark, abstractTheme.colorOverlayEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorOverlayEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayEmphasizedDark, abstractTheme.colors.colorOverlayEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorOverlayEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorOverlayModalDark() throws { - XCTAssertNotEqual(inheritedTheme.colorOverlayModalDark, abstractTheme.colorOverlayModalDark) - XCTAssertTrue(inheritedTheme.colorOverlayModalDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorOverlayModalDark, abstractTheme.colors.colorOverlayModalDark) + XCTAssertTrue(inheritedTheme.colors.colorOverlayModalDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } // MARK: - Color - Surface func testInheritedThemeCanOverrideSemanticTokenColorSurfaceBrandPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceBrandPrimaryLight, abstractTheme.colorSurfaceBrandPrimaryLight) - XCTAssertTrue(inheritedTheme.colorSurfaceBrandPrimaryLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceBrandPrimaryLight, abstractTheme.colors.colorSurfaceBrandPrimaryLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceBrandPrimaryLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceBrandPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceBrandPrimaryDark, abstractTheme.colorSurfaceBrandPrimaryDark) - XCTAssertTrue(inheritedTheme.colorSurfaceBrandPrimaryDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceBrandPrimaryDark, abstractTheme.colors.colorSurfaceBrandPrimaryDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceBrandPrimaryDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusAccentEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusAccentEmphasizedLight, abstractTheme.colorSurfaceStatusAccentEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusAccentEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusAccentEmphasizedLight, abstractTheme.colors.colorSurfaceStatusAccentEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusAccentEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusAccentMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusAccentMutedLight, abstractTheme.colorSurfaceStatusAccentMutedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusAccentMutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusAccentMutedLight, abstractTheme.colors.colorSurfaceStatusAccentMutedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusAccentMutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusAccentEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusAccentEmphasizedDark, abstractTheme.colorSurfaceStatusAccentEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusAccentEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusAccentEmphasizedDark, abstractTheme.colors.colorSurfaceStatusAccentEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusAccentEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusAccentMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusAccentMutedDark, abstractTheme.colorSurfaceStatusAccentMutedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusAccentMutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusAccentMutedDark, abstractTheme.colors.colorSurfaceStatusAccentMutedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusAccentMutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusInfoEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusInfoEmphasizedLight, abstractTheme.colorSurfaceStatusInfoEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusInfoEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusInfoEmphasizedLight, abstractTheme.colors.colorSurfaceStatusInfoEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusInfoEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusInfoMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusInfoMutedLight, abstractTheme.colorSurfaceStatusInfoMutedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusInfoMutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusInfoMutedLight, abstractTheme.colors.colorSurfaceStatusInfoMutedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusInfoMutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusInfoEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusInfoEmphasizedDark, abstractTheme.colorSurfaceStatusInfoEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusInfoEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusInfoEmphasizedDark, abstractTheme.colors.colorSurfaceStatusInfoEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusInfoEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusInfoMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusInfoMutedDark, abstractTheme.colorSurfaceStatusInfoMutedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusInfoMutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusInfoMutedDark, abstractTheme.colors.colorSurfaceStatusInfoMutedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusInfoMutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNegativeEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNegativeEmphasizedLight, abstractTheme.colorSurfaceStatusNegativeEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNegativeEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNegativeEmphasizedLight, abstractTheme.colors.colorSurfaceStatusNegativeEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNegativeEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNegativeMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNegativeMutedLight, abstractTheme.colorSurfaceStatusNegativeMutedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNegativeMutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNegativeMutedLight, abstractTheme.colors.colorSurfaceStatusNegativeMutedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNegativeMutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNegativeEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNegativeEmphasizedDark, abstractTheme.colorSurfaceStatusNegativeEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNegativeEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNegativeEmphasizedDark, abstractTheme.colors.colorSurfaceStatusNegativeEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNegativeEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNegativeMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNegativeMutedDark, abstractTheme.colorSurfaceStatusNegativeMutedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNegativeMutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNegativeMutedDark, abstractTheme.colors.colorSurfaceStatusNegativeMutedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNegativeMutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNeutralEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNeutralEmphasizedLight, abstractTheme.colorSurfaceStatusNeutralEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNeutralEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNeutralEmphasizedLight, abstractTheme.colors.colorSurfaceStatusNeutralEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNeutralEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNeutralMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNeutralMutedLight, abstractTheme.colorSurfaceStatusNeutralMutedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNeutralMutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNeutralMutedLight, abstractTheme.colors.colorSurfaceStatusNeutralMutedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNeutralMutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNeutralEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNeutralEmphasizedDark, abstractTheme.colorSurfaceStatusNeutralEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNeutralEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNeutralEmphasizedDark, abstractTheme.colors.colorSurfaceStatusNeutralEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNeutralEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusNeutralMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusNeutralMutedDark, abstractTheme.colorSurfaceStatusNeutralMutedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusNeutralMutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusNeutralMutedDark, abstractTheme.colors.colorSurfaceStatusNeutralMutedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusNeutralMutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusPositiveEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusPositiveEmphasizedLight, abstractTheme.colorSurfaceStatusPositiveEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusPositiveEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusPositiveEmphasizedLight, abstractTheme.colors.colorSurfaceStatusPositiveEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusPositiveEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusPositiveMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusPositiveMutedLight, abstractTheme.colorSurfaceStatusPositiveMutedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusPositiveMutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusPositiveMutedLight, abstractTheme.colors.colorSurfaceStatusPositiveMutedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusPositiveMutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusPositiveEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusPositiveEmphasizedDark, abstractTheme.colorSurfaceStatusPositiveEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusPositiveEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusPositiveEmphasizedDark, abstractTheme.colors.colorSurfaceStatusPositiveEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusPositiveEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusPositiveMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusPositiveMutedDark, abstractTheme.colorSurfaceStatusPositiveMutedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusPositiveMutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusPositiveMutedDark, abstractTheme.colors.colorSurfaceStatusPositiveMutedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusPositiveMutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusWarningEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusWarningEmphasizedLight, abstractTheme.colorSurfaceStatusWarningEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusWarningEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusWarningEmphasizedLight, abstractTheme.colors.colorSurfaceStatusWarningEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusWarningEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusWarningMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusWarningMutedLight, abstractTheme.colorSurfaceStatusWarningMutedLight) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusWarningMutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusWarningMutedLight, abstractTheme.colors.colorSurfaceStatusWarningMutedLight) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusWarningMutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusWarningEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusWarningEmphasizedDark, abstractTheme.colorSurfaceStatusWarningEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusWarningEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusWarningEmphasizedDark, abstractTheme.colors.colorSurfaceStatusWarningEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusWarningEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorSurfaceStatusWarningMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorSurfaceStatusWarningMutedDark, abstractTheme.colorSurfaceStatusWarningMutedDark) - XCTAssertTrue(inheritedTheme.colorSurfaceStatusWarningMutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorSurfaceStatusWarningMutedDark, abstractTheme.colors.colorSurfaceStatusWarningMutedDark) + XCTAssertTrue(inheritedTheme.colors.colorSurfaceStatusWarningMutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } // MARK: - Color - Decorative func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1DefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1DefaultLight, abstractTheme.colorDecorativeAccent1DefaultLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent1DefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent1DefaultLight, abstractTheme.colors.colorDecorativeAccent1DefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent1DefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1EmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1EmphasizedLight, abstractTheme.colorDecorativeAccent1EmphasizedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent1EmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent1EmphasizedLight, abstractTheme.colors.colorDecorativeAccent1EmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent1EmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1MutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1MutedLight, abstractTheme.colorDecorativeAccent1MutedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent1MutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent1MutedLight, abstractTheme.colors.colorDecorativeAccent1MutedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent1MutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1DefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1DefaultDark, abstractTheme.colorDecorativeAccent1DefaultDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent1DefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent1DefaultDark, abstractTheme.colors.colorDecorativeAccent1DefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent1DefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1EmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1EmphasizedDark, abstractTheme.colorDecorativeAccent1EmphasizedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent1EmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent1EmphasizedDark, abstractTheme.colors.colorDecorativeAccent1EmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent1EmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent1MutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent1MutedDark, abstractTheme.colorDecorativeAccent1MutedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent1MutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent1MutedDark, abstractTheme.colors.colorDecorativeAccent1MutedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent1MutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2DefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2DefaultLight, abstractTheme.colorDecorativeAccent2DefaultLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent2DefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent2DefaultLight, abstractTheme.colors.colorDecorativeAccent2DefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent2DefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2EmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2EmphasizedLight, abstractTheme.colorDecorativeAccent2EmphasizedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent2EmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent2EmphasizedLight, abstractTheme.colors.colorDecorativeAccent2EmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent2EmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2MutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2MutedLight, abstractTheme.colorDecorativeAccent2MutedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent2MutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent2MutedLight, abstractTheme.colors.colorDecorativeAccent2MutedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent2MutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2DefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2DefaultDark, abstractTheme.colorDecorativeAccent2DefaultDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent2DefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent2DefaultDark, abstractTheme.colors.colorDecorativeAccent2DefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent2DefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2EmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2EmphasizedDark, abstractTheme.colorDecorativeAccent2EmphasizedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent2EmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent2EmphasizedDark, abstractTheme.colors.colorDecorativeAccent2EmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent2EmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent2MutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent2MutedDark, abstractTheme.colorDecorativeAccent2MutedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent2MutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent2MutedDark, abstractTheme.colors.colorDecorativeAccent2MutedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent2MutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3DefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3DefaultLight, abstractTheme.colorDecorativeAccent3DefaultLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent3DefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent3DefaultLight, abstractTheme.colors.colorDecorativeAccent3DefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent3DefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3EmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3EmphasizedLight, abstractTheme.colorDecorativeAccent3EmphasizedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent3EmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent3EmphasizedLight, abstractTheme.colors.colorDecorativeAccent3EmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent3EmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3MutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3MutedLight, abstractTheme.colorDecorativeAccent3MutedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent3MutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent3MutedLight, abstractTheme.colors.colorDecorativeAccent3MutedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent3MutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3DefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3DefaultDark, abstractTheme.colorDecorativeAccent3DefaultDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent3DefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent3DefaultDark, abstractTheme.colors.colorDecorativeAccent3DefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent3DefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3EmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3EmphasizedDark, abstractTheme.colorDecorativeAccent3EmphasizedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent3EmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent3EmphasizedDark, abstractTheme.colors.colorDecorativeAccent3EmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent3EmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent3MutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent3MutedDark, abstractTheme.colorDecorativeAccent3MutedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent3MutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent3MutedDark, abstractTheme.colors.colorDecorativeAccent3MutedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent3MutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4DefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4DefaultLight, abstractTheme.colorDecorativeAccent4DefaultLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent4DefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent4DefaultLight, abstractTheme.colors.colorDecorativeAccent4DefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent4DefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4EmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4EmphasizedLight, abstractTheme.colorDecorativeAccent4EmphasizedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent4EmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent4EmphasizedLight, abstractTheme.colors.colorDecorativeAccent4EmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent4EmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4MutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4MutedLight, abstractTheme.colorDecorativeAccent4MutedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent4MutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent4MutedLight, abstractTheme.colors.colorDecorativeAccent4MutedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent4MutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4DefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4DefaultDark, abstractTheme.colorDecorativeAccent4DefaultDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent4DefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent4DefaultDark, abstractTheme.colors.colorDecorativeAccent4DefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent4DefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4EmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4EmphasizedDark, abstractTheme.colorDecorativeAccent4EmphasizedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent4EmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent4EmphasizedDark, abstractTheme.colors.colorDecorativeAccent4EmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent4EmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent4MutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent4MutedDark, abstractTheme.colorDecorativeAccent4MutedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent4MutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent4MutedDark, abstractTheme.colors.colorDecorativeAccent4MutedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent4MutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5DefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5DefaultLight, abstractTheme.colorDecorativeAccent5DefaultLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent5DefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent5DefaultLight, abstractTheme.colors.colorDecorativeAccent5DefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent5DefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5EmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5EmphasizedLight, abstractTheme.colorDecorativeAccent5EmphasizedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent5EmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent5EmphasizedLight, abstractTheme.colors.colorDecorativeAccent5EmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent5EmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5MutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5MutedLight, abstractTheme.colorDecorativeAccent5MutedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent5MutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent5MutedLight, abstractTheme.colors.colorDecorativeAccent5MutedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent5MutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5DefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5DefaultDark, abstractTheme.colorDecorativeAccent5DefaultDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent5DefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent5DefaultDark, abstractTheme.colors.colorDecorativeAccent5DefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent5DefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5EmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5EmphasizedDark, abstractTheme.colorDecorativeAccent5EmphasizedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent5EmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent5EmphasizedDark, abstractTheme.colors.colorDecorativeAccent5EmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent5EmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeAccent5MutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeAccent5MutedDark, abstractTheme.colorDecorativeAccent5MutedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeAccent5MutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeAccent5MutedDark, abstractTheme.colors.colorDecorativeAccent5MutedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeAccent5MutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandPrimaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandPrimaryLight, abstractTheme.colorDecorativeBrandPrimaryLight) - XCTAssertTrue(inheritedTheme.colorDecorativeBrandPrimaryLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeBrandPrimaryLight, abstractTheme.colors.colorDecorativeBrandPrimaryLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeBrandPrimaryLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandSecondaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandSecondaryLight, abstractTheme.colorDecorativeBrandSecondaryLight) - XCTAssertTrue(inheritedTheme.colorDecorativeBrandSecondaryLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeBrandSecondaryLight, abstractTheme.colors.colorDecorativeBrandSecondaryLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeBrandSecondaryLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandTertiaryLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandTertiaryLight, abstractTheme.colorDecorativeBrandTertiaryLight) - XCTAssertTrue(inheritedTheme.colorDecorativeBrandTertiaryLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeBrandTertiaryLight, abstractTheme.colors.colorDecorativeBrandTertiaryLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeBrandTertiaryLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandPrimaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandPrimaryDark, abstractTheme.colorDecorativeBrandPrimaryDark) - XCTAssertTrue(inheritedTheme.colorDecorativeBrandPrimaryDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeBrandPrimaryDark, abstractTheme.colors.colorDecorativeBrandPrimaryDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeBrandPrimaryDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandSecondaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandSecondaryDark, abstractTheme.colorDecorativeBrandSecondaryDark) - XCTAssertTrue(inheritedTheme.colorDecorativeBrandSecondaryDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeBrandSecondaryDark, abstractTheme.colors.colorDecorativeBrandSecondaryDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeBrandSecondaryDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeBrandTertiaryDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeBrandTertiaryDark, abstractTheme.colorDecorativeBrandTertiaryDark) - XCTAssertTrue(inheritedTheme.colorDecorativeBrandTertiaryDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeBrandTertiaryDark, abstractTheme.colors.colorDecorativeBrandTertiaryDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeBrandTertiaryDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralDefaultLight, abstractTheme.colorDecorativeNeutralDefaultLight) - XCTAssertTrue(inheritedTheme.colorDecorativeNeutralDefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeNeutralDefaultLight, abstractTheme.colors.colorDecorativeNeutralDefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeNeutralDefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralEmphasizedLight, abstractTheme.colorDecorativeNeutralEmphasizedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeNeutralEmphasizedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeNeutralEmphasizedLight, abstractTheme.colors.colorDecorativeNeutralEmphasizedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeNeutralEmphasizedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralMutedLight() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralMutedLight, abstractTheme.colorDecorativeNeutralMutedLight) - XCTAssertTrue(inheritedTheme.colorDecorativeNeutralMutedLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeNeutralMutedLight, abstractTheme.colors.colorDecorativeNeutralMutedLight) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeNeutralMutedLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralDefaultDark, abstractTheme.colorDecorativeNeutralDefaultDark) - XCTAssertTrue(inheritedTheme.colorDecorativeNeutralDefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeNeutralDefaultDark, abstractTheme.colors.colorDecorativeNeutralDefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeNeutralDefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralEmphasizedDark, abstractTheme.colorDecorativeNeutralEmphasizedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeNeutralEmphasizedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeNeutralEmphasizedDark, abstractTheme.colors.colorDecorativeNeutralEmphasizedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeNeutralEmphasizedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeNeutralMutedDark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeNeutralMutedDark, abstractTheme.colorDecorativeNeutralMutedDark) - XCTAssertTrue(inheritedTheme.colorDecorativeNeutralMutedDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeNeutralMutedDark, abstractTheme.colors.colorDecorativeNeutralMutedDark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeNeutralMutedDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint100Light() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint100Light, abstractTheme.colorDecorativeSkinTint100Light) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint100Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint100Light, abstractTheme.colors.colorDecorativeSkinTint100Light) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint100Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint200Light() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint200Light, abstractTheme.colorDecorativeSkinTint200Light) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint200Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint200Light, abstractTheme.colors.colorDecorativeSkinTint200Light) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint200Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint300Light() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint300Light, abstractTheme.colorDecorativeSkinTint300Light) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint300Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint300Light, abstractTheme.colors.colorDecorativeSkinTint300Light) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint300Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint400Light() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint400Light, abstractTheme.colorDecorativeSkinTint400Light) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint400Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint400Light, abstractTheme.colors.colorDecorativeSkinTint400Light) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint400Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint500Light() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint500Light, abstractTheme.colorDecorativeSkinTint500Light) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint500Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint500Light, abstractTheme.colors.colorDecorativeSkinTint500Light) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint500Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint600Light() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint600Light, abstractTheme.colorDecorativeSkinTint600Light) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint600Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint600Light, abstractTheme.colors.colorDecorativeSkinTint600Light) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint600Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint700Light() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint700Light, abstractTheme.colorDecorativeSkinTint700Light) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint700Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint700Light, abstractTheme.colors.colorDecorativeSkinTint700Light) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint700Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint800Light() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint800Light, abstractTheme.colorDecorativeSkinTint800Light) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint800Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint800Light, abstractTheme.colors.colorDecorativeSkinTint800Light) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint800Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint900Light() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint900Light, abstractTheme.colorDecorativeSkinTint900Light) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint900Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint900Light, abstractTheme.colors.colorDecorativeSkinTint900Light) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint900Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint100Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint100Dark, abstractTheme.colorDecorativeSkinTint100Dark) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint100Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint100Dark, abstractTheme.colors.colorDecorativeSkinTint100Dark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint100Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint200Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint200Dark, abstractTheme.colorDecorativeSkinTint200Dark) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint200Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint200Dark, abstractTheme.colors.colorDecorativeSkinTint200Dark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint200Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint300Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint300Dark, abstractTheme.colorDecorativeSkinTint300Dark) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint300Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint300Dark, abstractTheme.colors.colorDecorativeSkinTint300Dark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint300Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint400Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint400Dark, abstractTheme.colorDecorativeSkinTint400Dark) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint400Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint400Dark, abstractTheme.colors.colorDecorativeSkinTint400Dark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint400Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint500Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint500Dark, abstractTheme.colorDecorativeSkinTint500Dark) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint500Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint500Dark, abstractTheme.colors.colorDecorativeSkinTint500Dark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint500Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint600Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint600Dark, abstractTheme.colorDecorativeSkinTint600Dark) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint600Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint600Dark, abstractTheme.colors.colorDecorativeSkinTint600Dark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint600Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint700Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint700Dark, abstractTheme.colorDecorativeSkinTint700Dark) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint700Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint700Dark, abstractTheme.colors.colorDecorativeSkinTint700Dark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint700Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint800Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint800Dark, abstractTheme.colorDecorativeSkinTint800Dark) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint800Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint800Dark, abstractTheme.colors.colorDecorativeSkinTint800Dark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint800Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorDecorativeSkinTint900Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorDecorativeSkinTint900Dark, abstractTheme.colorDecorativeSkinTint900Dark) - XCTAssertTrue(inheritedTheme.colorDecorativeSkinTint900Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorDecorativeSkinTint900Dark, abstractTheme.colors.colorDecorativeSkinTint900Dark) + XCTAssertTrue(inheritedTheme.colors.colorDecorativeSkinTint900Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } // MARK: - Color - Chart func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier1Light() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier1Light, abstractTheme.colorChartCategoricalTier1Light) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier1Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier1Light, abstractTheme.colors.colorChartCategoricalTier1Light) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier1Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier2Light() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier2Light, abstractTheme.colorChartCategoricalTier2Light) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier2Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier2Light, abstractTheme.colors.colorChartCategoricalTier2Light) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier2Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier3Light() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier3Light, abstractTheme.colorChartCategoricalTier3Light) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier3Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier3Light, abstractTheme.colors.colorChartCategoricalTier3Light) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier3Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier4Light() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier4Light, abstractTheme.colorChartCategoricalTier4Light) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier4Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier4Light, abstractTheme.colors.colorChartCategoricalTier4Light) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier4Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier5Light() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier5Light, abstractTheme.colorChartCategoricalTier5Light) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier5Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier5Light, abstractTheme.colors.colorChartCategoricalTier5Light) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier5Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier6Light() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier6Light, abstractTheme.colorChartCategoricalTier6Light) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier6Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier6Light, abstractTheme.colors.colorChartCategoricalTier6Light) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier6Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier7Light() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier7Light, abstractTheme.colorChartCategoricalTier7Light) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier7Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier7Light, abstractTheme.colors.colorChartCategoricalTier7Light) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier7Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier8Light() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier8Light, abstractTheme.colorChartCategoricalTier8Light) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier8Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier8Light, abstractTheme.colors.colorChartCategoricalTier8Light) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier8Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier9Light() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier9Light, abstractTheme.colorChartCategoricalTier9Light) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier9Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier9Light, abstractTheme.colors.colorChartCategoricalTier9Light) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier9Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier10Light() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier10Light, abstractTheme.colorChartCategoricalTier10Light) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier10Light == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier10Light, abstractTheme.colors.colorChartCategoricalTier10Light) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier10Light == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier1Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier1Dark, abstractTheme.colorChartCategoricalTier1Dark) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier1Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier1Dark, abstractTheme.colors.colorChartCategoricalTier1Dark) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier1Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier2Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier2Dark, abstractTheme.colorChartCategoricalTier2Dark) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier2Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier2Dark, abstractTheme.colors.colorChartCategoricalTier2Dark) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier2Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier3Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier3Dark, abstractTheme.colorChartCategoricalTier3Dark) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier3Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier3Dark, abstractTheme.colors.colorChartCategoricalTier3Dark) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier3Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier4Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier4Dark, abstractTheme.colorChartCategoricalTier4Dark) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier4Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier4Dark, abstractTheme.colors.colorChartCategoricalTier4Dark) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier4Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier5Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier5Dark, abstractTheme.colorChartCategoricalTier5Dark) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier5Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier5Dark, abstractTheme.colors.colorChartCategoricalTier5Dark) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier5Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier6Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier6Dark, abstractTheme.colorChartCategoricalTier6Dark) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier6Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier6Dark, abstractTheme.colors.colorChartCategoricalTier6Dark) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier6Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier7Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier7Dark, abstractTheme.colorChartCategoricalTier7Dark) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier7Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier7Dark, abstractTheme.colors.colorChartCategoricalTier7Dark) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier7Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier8Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier8Dark, abstractTheme.colorChartCategoricalTier8Dark) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier8Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier8Dark, abstractTheme.colors.colorChartCategoricalTier8Dark) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier8Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier9Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier9Dark, abstractTheme.colorChartCategoricalTier9Dark) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier9Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier9Dark, abstractTheme.colors.colorChartCategoricalTier9Dark) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier9Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartCategoricalTier10Dark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartCategoricalTier10Dark, abstractTheme.colorChartCategoricalTier10Dark) - XCTAssertTrue(inheritedTheme.colorChartCategoricalTier10Dark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartCategoricalTier10Dark, abstractTheme.colors.colorChartCategoricalTier10Dark) + XCTAssertTrue(inheritedTheme.colors.colorChartCategoricalTier10Dark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalInformationLight() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalInformationLight, abstractTheme.colorChartFunctionalInformationLight) - XCTAssertTrue(inheritedTheme.colorChartFunctionalInformationLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalInformationLight, abstractTheme.colors.colorChartFunctionalInformationLight) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalInformationLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalNegativeLight, abstractTheme.colorChartFunctionalNegativeLight) - XCTAssertTrue(inheritedTheme.colorChartFunctionalNegativeLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalNegativeLight, abstractTheme.colors.colorChartFunctionalNegativeLight) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalNegativeLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalPositiveLight() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalPositiveLight, abstractTheme.colorChartFunctionalPositiveLight) - XCTAssertTrue(inheritedTheme.colorChartFunctionalPositiveLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalPositiveLight, abstractTheme.colors.colorChartFunctionalPositiveLight) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalPositiveLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalWarningLight() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalWarningLight, abstractTheme.colorChartFunctionalWarningLight) - XCTAssertTrue(inheritedTheme.colorChartFunctionalWarningLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalWarningLight, abstractTheme.colors.colorChartFunctionalWarningLight) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalWarningLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalInformationDark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalInformationDark, abstractTheme.colorChartFunctionalInformationDark) - XCTAssertTrue(inheritedTheme.colorChartFunctionalInformationDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalInformationDark, abstractTheme.colors.colorChartFunctionalInformationDark) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalInformationDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalNegativeDark, abstractTheme.colorChartFunctionalNegativeDark) - XCTAssertTrue(inheritedTheme.colorChartFunctionalNegativeDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalNegativeDark, abstractTheme.colors.colorChartFunctionalNegativeDark) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalNegativeDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalPositiveDark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalPositiveDark, abstractTheme.colorChartFunctionalPositiveDark) - XCTAssertTrue(inheritedTheme.colorChartFunctionalPositiveDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalPositiveDark, abstractTheme.colors.colorChartFunctionalPositiveDark) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalPositiveDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartFunctionalWarningDark() throws { - XCTAssertNotEqual(inheritedTheme.colorChartFunctionalWarningDark, abstractTheme.colorChartFunctionalWarningDark) - XCTAssertTrue(inheritedTheme.colorChartFunctionalWarningDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartFunctionalWarningDark, abstractTheme.colors.colorChartFunctionalWarningDark) + XCTAssertTrue(inheritedTheme.colors.colorChartFunctionalWarningDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartGridlinesLight() throws { - XCTAssertNotEqual(inheritedTheme.colorChartGridlinesLight, abstractTheme.colorChartGridlinesLight) - XCTAssertTrue(inheritedTheme.colorChartGridlinesLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartGridlinesLight, abstractTheme.colors.colorChartGridlinesLight) + XCTAssertTrue(inheritedTheme.colors.colorChartGridlinesLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartHighlightLight() throws { - XCTAssertNotEqual(inheritedTheme.colorChartHighlightLight, abstractTheme.colorChartHighlightLight) - XCTAssertTrue(inheritedTheme.colorChartHighlightLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartHighlightLight, abstractTheme.colors.colorChartHighlightLight) + XCTAssertTrue(inheritedTheme.colors.colorChartHighlightLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorChartNeutralLight() throws { - XCTAssertNotEqual(inheritedTheme.colorChartNeutralLight, abstractTheme.colorChartNeutralLight) - XCTAssertTrue(inheritedTheme.colorChartNeutralLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorChartNeutralLight, abstractTheme.colors.colorChartNeutralLight) + XCTAssertTrue(inheritedTheme.colors.colorChartNeutralLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } // MARK: - Color - Repository func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentDefaultLight, abstractTheme.colorRepositoryAccentDefaultLight) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentDefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentDefaultLight, abstractTheme.colors.colorRepositoryAccentDefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentDefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentHighestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentHighestLight, abstractTheme.colorRepositoryAccentHighestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentHighestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentHighestLight, abstractTheme.colors.colorRepositoryAccentHighestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentHighestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentLowLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentLowLight, abstractTheme.colorRepositoryAccentLowLight) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentLowLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentLowLight, abstractTheme.colors.colorRepositoryAccentLowLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentLowLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentLowestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentLowestLight, abstractTheme.colorRepositoryAccentLowestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentLowestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentLowestLight, abstractTheme.colors.colorRepositoryAccentLowestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentLowestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentDefaultDark, abstractTheme.colorRepositoryAccentDefaultDark) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentDefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentDefaultDark, abstractTheme.colors.colorRepositoryAccentDefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentDefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentHighestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentHighestDark, abstractTheme.colorRepositoryAccentHighestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentHighestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentHighestDark, abstractTheme.colors.colorRepositoryAccentHighestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentHighestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentLowDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentLowDark, abstractTheme.colorRepositoryAccentLowDark) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentLowDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentLowDark, abstractTheme.colors.colorRepositoryAccentLowDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentLowDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryAccentLowestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryAccentLowestDark, abstractTheme.colorRepositoryAccentLowestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryAccentLowestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryAccentLowestDark, abstractTheme.colors.colorRepositoryAccentLowestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryAccentLowestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoDefaultLight, abstractTheme.colorRepositoryInfoDefaultLight) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoDefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoDefaultLight, abstractTheme.colors.colorRepositoryInfoDefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoDefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoHighestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoHighestLight, abstractTheme.colorRepositoryInfoHighestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoHighestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoHighestLight, abstractTheme.colors.colorRepositoryInfoHighestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoHighestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoLowLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoLowLight, abstractTheme.colorRepositoryInfoLowLight) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoLowLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoLowLight, abstractTheme.colors.colorRepositoryInfoLowLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoLowLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoLowestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoLowestLight, abstractTheme.colorRepositoryInfoLowestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoLowestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoLowestLight, abstractTheme.colors.colorRepositoryInfoLowestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoLowestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoDefaultDark, abstractTheme.colorRepositoryInfoDefaultDark) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoDefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoDefaultDark, abstractTheme.colors.colorRepositoryInfoDefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoDefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoHighestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoHighestDark, abstractTheme.colorRepositoryInfoHighestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoHighestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoHighestDark, abstractTheme.colors.colorRepositoryInfoHighestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoHighestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoLowDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoLowDark, abstractTheme.colorRepositoryInfoLowDark) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoLowDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoLowDark, abstractTheme.colors.colorRepositoryInfoLowDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoLowDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryInfoLowestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryInfoLowestDark, abstractTheme.colorRepositoryInfoLowestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryInfoLowestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryInfoLowestDark, abstractTheme.colors.colorRepositoryInfoLowestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryInfoLowestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeDefaultLight, abstractTheme.colorRepositoryNegativeDefaultLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeDefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeDefaultLight, abstractTheme.colors.colorRepositoryNegativeDefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeDefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeHighLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeHighLight, abstractTheme.colorRepositoryNegativeHighLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeHighLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeHighLight, abstractTheme.colors.colorRepositoryNegativeHighLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeHighLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeHigherLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeHigherLight, abstractTheme.colorRepositoryNegativeHigherLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeHigherLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeHigherLight, abstractTheme.colors.colorRepositoryNegativeHigherLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeHigherLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeHighestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeHighestLight, abstractTheme.colorRepositoryNegativeHighestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeHighestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeHighestLight, abstractTheme.colors.colorRepositoryNegativeHighestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeHighestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeLowLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeLowLight, abstractTheme.colorRepositoryNegativeLowLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeLowLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeLowLight, abstractTheme.colors.colorRepositoryNegativeLowLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeLowLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeLowerLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeLowerLight, abstractTheme.colorRepositoryNegativeLowerLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeLowerLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeLowerLight, abstractTheme.colors.colorRepositoryNegativeLowerLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeLowerLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeLowestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeLowestLight, abstractTheme.colorRepositoryNegativeLowestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeLowestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeLowestLight, abstractTheme.colors.colorRepositoryNegativeLowestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeLowestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeDefaultDark, abstractTheme.colorRepositoryNegativeDefaultDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeDefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeDefaultDark, abstractTheme.colors.colorRepositoryNegativeDefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeDefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeHighDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeHighDark, abstractTheme.colorRepositoryNegativeHighDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeHighDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeHighDark, abstractTheme.colors.colorRepositoryNegativeHighDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeHighDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeHigherDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeHigherDark, abstractTheme.colorRepositoryNegativeHigherDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeHigherDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeHigherDark, abstractTheme.colors.colorRepositoryNegativeHigherDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeHigherDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeHighestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeHighestDark, abstractTheme.colorRepositoryNegativeHighestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeHighestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeHighestDark, abstractTheme.colors.colorRepositoryNegativeHighestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeHighestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeLowDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeLowDark, abstractTheme.colorRepositoryNegativeLowDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeLowDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeLowDark, abstractTheme.colors.colorRepositoryNegativeLowDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeLowDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeLowerDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeLowerDark, abstractTheme.colorRepositoryNegativeLowerDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeLowerDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeLowerDark, abstractTheme.colors.colorRepositoryNegativeLowerDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeLowerDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNegativeLowestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNegativeLowestDark, abstractTheme.colorRepositoryNegativeLowestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNegativeLowestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNegativeLowestDark, abstractTheme.colors.colorRepositoryNegativeLowestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNegativeLowestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedBlackLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedBlackLight, abstractTheme.colorRepositoryNeutralEmphasizedBlackLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedBlackLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedBlackLight, abstractTheme.colors.colorRepositoryNeutralEmphasizedBlackLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedBlackLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedHighLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedHighLight, abstractTheme.colorRepositoryNeutralEmphasizedHighLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedHighLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHighLight, abstractTheme.colors.colorRepositoryNeutralEmphasizedHighLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHighLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedHigherLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedHigherLight, abstractTheme.colorRepositoryNeutralEmphasizedHigherLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedHigherLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHigherLight, abstractTheme.colors.colorRepositoryNeutralEmphasizedHigherLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHigherLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedHighestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedHighestLight, abstractTheme.colorRepositoryNeutralEmphasizedHighestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedHighestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHighestLight, abstractTheme.colors.colorRepositoryNeutralEmphasizedHighestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHighestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedMediumLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedMediumLight, abstractTheme.colorRepositoryNeutralEmphasizedMediumLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedMediumLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedMediumLight, abstractTheme.colors.colorRepositoryNeutralEmphasizedMediumLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedMediumLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedBlackDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedBlackDark, abstractTheme.colorRepositoryNeutralEmphasizedBlackDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedBlackDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedBlackDark, abstractTheme.colors.colorRepositoryNeutralEmphasizedBlackDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedBlackDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedHighDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedHighDark, abstractTheme.colorRepositoryNeutralEmphasizedHighDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedHighDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHighDark, abstractTheme.colors.colorRepositoryNeutralEmphasizedHighDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHighDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedHigherDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedHigherDark, abstractTheme.colorRepositoryNeutralEmphasizedHigherDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedHigherDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHigherDark, abstractTheme.colors.colorRepositoryNeutralEmphasizedHigherDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHigherDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedHighestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedHighestDark, abstractTheme.colorRepositoryNeutralEmphasizedHighestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedHighestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHighestDark, abstractTheme.colors.colorRepositoryNeutralEmphasizedHighestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedHighestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralEmphasizedMediumDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralEmphasizedMediumDark, abstractTheme.colorRepositoryNeutralEmphasizedMediumDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralEmphasizedMediumDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralEmphasizedMediumDark, abstractTheme.colors.colorRepositoryNeutralEmphasizedMediumDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralEmphasizedMediumDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralMutedLowerLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralMutedLowerLight, abstractTheme.colorRepositoryNeutralMutedLowerLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralMutedLowerLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralMutedLowerLight, abstractTheme.colors.colorRepositoryNeutralMutedLowerLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralMutedLowerLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralMutedLowestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralMutedLowestLight, abstractTheme.colorRepositoryNeutralMutedLowestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralMutedLowestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralMutedLowestLight, abstractTheme.colors.colorRepositoryNeutralMutedLowestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralMutedLowestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralMutedWhiteLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralMutedWhiteLight, abstractTheme.colorRepositoryNeutralMutedWhiteLight) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralMutedWhiteLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralMutedWhiteLight, abstractTheme.colors.colorRepositoryNeutralMutedWhiteLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralMutedWhiteLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralMutedLowerDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralMutedLowerDark, abstractTheme.colorRepositoryNeutralMutedLowerDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralMutedLowerDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralMutedLowerDark, abstractTheme.colors.colorRepositoryNeutralMutedLowerDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralMutedLowerDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralMutedLowestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralMutedLowestDark, abstractTheme.colorRepositoryNeutralMutedLowestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralMutedLowestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralMutedLowestDark, abstractTheme.colors.colorRepositoryNeutralMutedLowestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralMutedLowestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryNeutralMutedWhiteDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryNeutralMutedWhiteDark, abstractTheme.colorRepositoryNeutralMutedWhiteDark) - XCTAssertTrue(inheritedTheme.colorRepositoryNeutralMutedWhiteDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryNeutralMutedWhiteDark, abstractTheme.colors.colorRepositoryNeutralMutedWhiteDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryNeutralMutedWhiteDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackHigherLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackHigherLight, abstractTheme.colorRepositoryOpacityBlackHigherLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackHigherLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackHigherLight, abstractTheme.colors.colorRepositoryOpacityBlackHigherLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackHigherLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackHighestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackHighestLight, abstractTheme.colorRepositoryOpacityBlackHighestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackHighestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackHighestLight, abstractTheme.colors.colorRepositoryOpacityBlackHighestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackHighestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackLowLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackLowLight, abstractTheme.colorRepositoryOpacityBlackLowLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackLowLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackLowLight, abstractTheme.colors.colorRepositoryOpacityBlackLowLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackLowLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackLowerLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackLowerLight, abstractTheme.colorRepositoryOpacityBlackLowerLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackLowerLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackLowerLight, abstractTheme.colors.colorRepositoryOpacityBlackLowerLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackLowerLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackLowestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackLowestLight, abstractTheme.colorRepositoryOpacityBlackLowestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackLowestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackLowestLight, abstractTheme.colors.colorRepositoryOpacityBlackLowestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackLowestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackMediumLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackMediumLight, abstractTheme.colorRepositoryOpacityBlackMediumLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackMediumLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackMediumLight, abstractTheme.colors.colorRepositoryOpacityBlackMediumLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackMediumLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackTransparentLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackTransparentLight, abstractTheme.colorRepositoryOpacityBlackTransparentLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackTransparentLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackTransparentLight, abstractTheme.colors.colorRepositoryOpacityBlackTransparentLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackTransparentLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackHigherDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackHigherDark, abstractTheme.colorRepositoryOpacityBlackHigherDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackHigherDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackHigherDark, abstractTheme.colors.colorRepositoryOpacityBlackHigherDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackHigherDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackHighestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackHighestDark, abstractTheme.colorRepositoryOpacityBlackHighestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackHighestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackHighestDark, abstractTheme.colors.colorRepositoryOpacityBlackHighestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackHighestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackLowDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackLowDark, abstractTheme.colorRepositoryOpacityBlackLowDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackLowDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackLowDark, abstractTheme.colors.colorRepositoryOpacityBlackLowDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackLowDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackLowerDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackLowerDark, abstractTheme.colorRepositoryOpacityBlackLowerDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackLowerDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackLowerDark, abstractTheme.colors.colorRepositoryOpacityBlackLowerDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackLowerDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackLowestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackLowestDark, abstractTheme.colorRepositoryOpacityBlackLowestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackLowestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackLowestDark, abstractTheme.colors.colorRepositoryOpacityBlackLowestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackLowestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackMediumDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackMediumDark, abstractTheme.colorRepositoryOpacityBlackMediumDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackMediumDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackMediumDark, abstractTheme.colors.colorRepositoryOpacityBlackMediumDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackMediumDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityBlackTransparentDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityBlackTransparentDark, abstractTheme.colorRepositoryOpacityBlackTransparentDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityBlackTransparentDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityBlackTransparentDark, abstractTheme.colors.colorRepositoryOpacityBlackTransparentDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityBlackTransparentDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityInfoLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityInfoLight, abstractTheme.colorRepositoryOpacityInfoLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityInfoLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityInfoLight, abstractTheme.colors.colorRepositoryOpacityInfoLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityInfoLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityNegativeLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityNegativeLight, abstractTheme.colorRepositoryOpacityNegativeLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityNegativeLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityNegativeLight, abstractTheme.colors.colorRepositoryOpacityNegativeLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityNegativeLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityPositiveLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityPositiveLight, abstractTheme.colorRepositoryOpacityPositiveLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityPositiveLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityPositiveLight, abstractTheme.colors.colorRepositoryOpacityPositiveLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityPositiveLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWarningLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWarningLight, abstractTheme.colorRepositoryOpacityWarningLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWarningLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWarningLight, abstractTheme.colors.colorRepositoryOpacityWarningLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWarningLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteHighLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteHighLight, abstractTheme.colorRepositoryOpacityWhiteHighLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteHighLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteHighLight, abstractTheme.colors.colorRepositoryOpacityWhiteHighLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteHighLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteHigherLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteHigherLight, abstractTheme.colorRepositoryOpacityWhiteHigherLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteHigherLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteHigherLight, abstractTheme.colors.colorRepositoryOpacityWhiteHigherLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteHigherLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteHighestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteHighestLight, abstractTheme.colorRepositoryOpacityWhiteHighestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteHighestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteHighestLight, abstractTheme.colors.colorRepositoryOpacityWhiteHighestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteHighestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteLowLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteLowLight, abstractTheme.colorRepositoryOpacityWhiteLowLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteLowLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteLowLight, abstractTheme.colors.colorRepositoryOpacityWhiteLowLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteLowLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteLowerLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteLowerLight, abstractTheme.colorRepositoryOpacityWhiteLowerLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteLowerLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteLowerLight, abstractTheme.colors.colorRepositoryOpacityWhiteLowerLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteLowerLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteLowestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteLowestLight, abstractTheme.colorRepositoryOpacityWhiteLowestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteLowestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteLowestLight, abstractTheme.colors.colorRepositoryOpacityWhiteLowestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteLowestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteTransparentLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteTransparentLight, abstractTheme.colorRepositoryOpacityWhiteTransparentLight) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteTransparentLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteTransparentLight, abstractTheme.colors.colorRepositoryOpacityWhiteTransparentLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteTransparentLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteHighDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteHighDark, abstractTheme.colorRepositoryOpacityWhiteHighDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteHighDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteHighDark, abstractTheme.colors.colorRepositoryOpacityWhiteHighDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteHighDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteHigherDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteHigherDark, abstractTheme.colorRepositoryOpacityWhiteHigherDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteHigherDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteHigherDark, abstractTheme.colors.colorRepositoryOpacityWhiteHigherDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteHigherDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteHighestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteHighestDark, abstractTheme.colorRepositoryOpacityWhiteHighestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteHighestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteHighestDark, abstractTheme.colors.colorRepositoryOpacityWhiteHighestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteHighestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteLowDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteLowDark, abstractTheme.colorRepositoryOpacityWhiteLowDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteLowDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteLowDark, abstractTheme.colors.colorRepositoryOpacityWhiteLowDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteLowDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteLowerDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteLowerDark, abstractTheme.colorRepositoryOpacityWhiteLowerDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteLowerDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteLowerDark, abstractTheme.colors.colorRepositoryOpacityWhiteLowerDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteLowerDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteLowestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteLowestDark, abstractTheme.colorRepositoryOpacityWhiteLowestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteLowestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteLowestDark, abstractTheme.colors.colorRepositoryOpacityWhiteLowestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteLowestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWhiteTransparentDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWhiteTransparentDark, abstractTheme.colorRepositoryOpacityWhiteTransparentDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWhiteTransparentDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWhiteTransparentDark, abstractTheme.colors.colorRepositoryOpacityWhiteTransparentDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWhiteTransparentDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityInfoDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityInfoDark, abstractTheme.colorRepositoryOpacityInfoDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityInfoDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityInfoDark, abstractTheme.colors.colorRepositoryOpacityInfoDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityInfoDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityNegativeDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityNegativeDark, abstractTheme.colorRepositoryOpacityNegativeDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityNegativeDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityNegativeDark, abstractTheme.colors.colorRepositoryOpacityNegativeDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityNegativeDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityPositiveDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityPositiveDark, abstractTheme.colorRepositoryOpacityPositiveDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityPositiveDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityPositiveDark, abstractTheme.colors.colorRepositoryOpacityPositiveDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityPositiveDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryOpacityWarningDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryOpacityWarningDark, abstractTheme.colorRepositoryOpacityWarningDark) - XCTAssertTrue(inheritedTheme.colorRepositoryOpacityWarningDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryOpacityWarningDark, abstractTheme.colors.colorRepositoryOpacityWarningDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryOpacityWarningDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveDefaultLight, abstractTheme.colorRepositoryPositiveDefaultLight) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveDefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveDefaultLight, abstractTheme.colors.colorRepositoryPositiveDefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveDefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveHighestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveHighestLight, abstractTheme.colorRepositoryPositiveHighestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveHighestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveHighestLight, abstractTheme.colors.colorRepositoryPositiveHighestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveHighestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveLowLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveLowLight, abstractTheme.colorRepositoryPositiveLowLight) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveLowLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveLowLight, abstractTheme.colors.colorRepositoryPositiveLowLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveLowLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveLowestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveLowestLight, abstractTheme.colorRepositoryPositiveLowestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveLowestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveLowestLight, abstractTheme.colors.colorRepositoryPositiveLowestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveLowestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveDefaultDark, abstractTheme.colorRepositoryPositiveDefaultDark) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveDefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveDefaultDark, abstractTheme.colors.colorRepositoryPositiveDefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveDefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveHighestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveHighestDark, abstractTheme.colorRepositoryPositiveHighestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveHighestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveHighestDark, abstractTheme.colors.colorRepositoryPositiveHighestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveHighestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveLowDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveLowDark, abstractTheme.colorRepositoryPositiveLowDark) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveLowDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveLowDark, abstractTheme.colors.colorRepositoryPositiveLowDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveLowDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPositiveLowestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPositiveLowestDark, abstractTheme.colorRepositoryPositiveLowestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryPositiveLowestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPositiveLowestDark, abstractTheme.colors.colorRepositoryPositiveLowestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPositiveLowestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPrimaryDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPrimaryDefaultLight, abstractTheme.colorRepositoryPrimaryDefaultLight) - XCTAssertTrue(inheritedTheme.colorRepositoryPrimaryDefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPrimaryDefaultLight, abstractTheme.colors.colorRepositoryPrimaryDefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPrimaryDefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPrimaryLowLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPrimaryLowLight, abstractTheme.colorRepositoryPrimaryLowLight) - XCTAssertTrue(inheritedTheme.colorRepositoryPrimaryLowLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPrimaryLowLight, abstractTheme.colors.colorRepositoryPrimaryLowLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPrimaryLowLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPrimaryDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPrimaryDefaultDark, abstractTheme.colorRepositoryPrimaryDefaultDark) - XCTAssertTrue(inheritedTheme.colorRepositoryPrimaryDefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPrimaryDefaultDark, abstractTheme.colors.colorRepositoryPrimaryDefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPrimaryDefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryPrimaryLowDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryPrimaryLowDark, abstractTheme.colorRepositoryPrimaryLowDark) - XCTAssertTrue(inheritedTheme.colorRepositoryPrimaryLowDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryPrimaryLowDark, abstractTheme.colors.colorRepositoryPrimaryLowDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryPrimaryLowDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningDefaultLight, abstractTheme.colorRepositoryWarningDefaultLight) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningDefaultLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningDefaultLight, abstractTheme.colors.colorRepositoryWarningDefaultLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningDefaultLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningHighestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningHighestLight, abstractTheme.colorRepositoryWarningHighestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningHighestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningHighestLight, abstractTheme.colors.colorRepositoryWarningHighestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningHighestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningLowLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningLowLight, abstractTheme.colorRepositoryWarningLowLight) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningLowLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningLowLight, abstractTheme.colors.colorRepositoryWarningLowLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningLowLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningLowestLight() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningLowestLight, abstractTheme.colorRepositoryWarningLowestLight) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningLowestLight == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningLowestLight, abstractTheme.colors.colorRepositoryWarningLowestLight) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningLowestLight == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningDefaultDark, abstractTheme.colorRepositoryWarningDefaultDark) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningDefaultDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningDefaultDark, abstractTheme.colors.colorRepositoryWarningDefaultDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningDefaultDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningHighestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningHighestDark, abstractTheme.colorRepositoryWarningHighestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningHighestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningHighestDark, abstractTheme.colors.colorRepositoryWarningHighestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningHighestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningLowDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningLowDark, abstractTheme.colorRepositoryWarningLowDark) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningLowDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningLowDark, abstractTheme.colors.colorRepositoryWarningLowDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningLowDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } func testInheritedThemeCanOverrideSemanticTokenColorRepositoryWarningLowestDark() throws { - XCTAssertNotEqual(inheritedTheme.colorRepositoryWarningLowestDark, abstractTheme.colorRepositoryWarningLowestDark) - XCTAssertTrue(inheritedTheme.colorRepositoryWarningLowestDark == OtherMockTheme.otherMockThemeSemanticColorToken) + XCTAssertNotEqual(inheritedTheme.colors.colorRepositoryWarningLowestDark, abstractTheme.colors.colorRepositoryWarningLowestDark) + XCTAssertTrue(inheritedTheme.colors.colorRepositoryWarningLowestDark == OtherMockThemeColorSemanticTokensProvider.otherMockThemeSemanticColorToken) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfCompositeElevationSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfCompositeElevationSemanticTokens.swift index b4f6921779..113720c6fa 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfCompositeElevationSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfCompositeElevationSemanticTokens.swift @@ -35,43 +35,43 @@ final class TestThemeOverrideOfElevationCompositeSemanticTokens: XCTestCase { } func testInheritedThemeCanOverrideSemanticTokenElevationCompositeNone() throws { - XCTAssertNotEqual(inheritedTheme.elevationNone, abstractTheme.elevationNone) - XCTAssertTrue(inheritedTheme.elevationNone == MockTheme.mockThemeElevationCompositeSemanticToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationNone, abstractTheme.elevations.elevationNone) + XCTAssertTrue(inheritedTheme.elevations.elevationNone == MockThemeElevationSemanticTokensProvider.mockThemeElevationCompositeSemanticToken) } func testInheritedThemeCanOverrideSemanticTokenElevationCompositeRaised() throws { - XCTAssertNotEqual(inheritedTheme.elevationRaised, abstractTheme.elevationRaised) - XCTAssertTrue(inheritedTheme.elevationRaised == MockTheme.mockThemeElevationCompositeSemanticToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationRaised, abstractTheme.elevations.elevationRaised) + XCTAssertTrue(inheritedTheme.elevations.elevationRaised == MockThemeElevationSemanticTokensProvider.mockThemeElevationCompositeSemanticToken) } func testInheritedThemeCanOverrideSemanticTokenElevationCompositeDrag() throws { - XCTAssertNotEqual(inheritedTheme.elevationDrag, abstractTheme.elevationDrag) - XCTAssertTrue(inheritedTheme.elevationDrag == MockTheme.mockThemeElevationCompositeSemanticToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationDrag, abstractTheme.elevations.elevationDrag) + XCTAssertTrue(inheritedTheme.elevations.elevationDrag == MockThemeElevationSemanticTokensProvider.mockThemeElevationCompositeSemanticToken) } func testInheritedThemeCanOverrideSemanticTokenElevationCompositeOverlayDefault() throws { - XCTAssertNotEqual(inheritedTheme.elevationOverlayDefault, abstractTheme.elevationOverlayDefault) - XCTAssertTrue(inheritedTheme.elevationOverlayDefault == MockTheme.mockThemeElevationCompositeSemanticToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationOverlayDefault, abstractTheme.elevations.elevationOverlayDefault) + XCTAssertTrue(inheritedTheme.elevations.elevationOverlayDefault == MockThemeElevationSemanticTokensProvider.mockThemeElevationCompositeSemanticToken) } func testInheritedThemeCanOverrideSemanticTokenElevationCompositeOverlayEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.elevationOverlayEmphasized, abstractTheme.elevationOverlayEmphasized) - XCTAssertTrue(inheritedTheme.elevationOverlayEmphasized == MockTheme.mockThemeElevationCompositeSemanticToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationOverlayEmphasized, abstractTheme.elevations.elevationOverlayEmphasized) + XCTAssertTrue(inheritedTheme.elevations.elevationOverlayEmphasized == MockThemeElevationSemanticTokensProvider.mockThemeElevationCompositeSemanticToken) } func testInheritedThemeCanOverrideSemanticTokenElevationCompositeStickyDefault() throws { - XCTAssertNotEqual(inheritedTheme.elevationStickyDefault, abstractTheme.elevationStickyDefault) - XCTAssertTrue(inheritedTheme.elevationStickyDefault == MockTheme.mockThemeElevationCompositeSemanticToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationStickyDefault, abstractTheme.elevations.elevationStickyDefault) + XCTAssertTrue(inheritedTheme.elevations.elevationStickyDefault == MockThemeElevationSemanticTokensProvider.mockThemeElevationCompositeSemanticToken) } func testInheritedThemeCanOverrideSemanticTokenElevationCompositeStickyEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.elevationStickyEmphasized, abstractTheme.elevationStickyEmphasized) - XCTAssertTrue(inheritedTheme.elevationStickyEmphasized == MockTheme.mockThemeElevationCompositeSemanticToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationStickyEmphasized, abstractTheme.elevations.elevationStickyEmphasized) + XCTAssertTrue(inheritedTheme.elevations.elevationStickyEmphasized == MockThemeElevationSemanticTokensProvider.mockThemeElevationCompositeSemanticToken) } func testInheritedThemeCanOverrideSemanticTokenElevationCompositeStickyNavigationScrolled() throws { - XCTAssertNotEqual(inheritedTheme.elevationStickyNavigationScrolled, abstractTheme.elevationStickyNavigationScrolled) - XCTAssertTrue(inheritedTheme.elevationStickyNavigationScrolled == MockTheme.mockThemeElevationCompositeSemanticToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationStickyNavigationScrolled, abstractTheme.elevations.elevationStickyNavigationScrolled) + XCTAssertTrue(inheritedTheme.elevations.elevationStickyNavigationScrolled == MockThemeElevationSemanticTokensProvider.mockThemeElevationCompositeSemanticToken) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationMultipleSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationMultipleSemanticTokens.swift index 63aadd3452..c586a2265e 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationMultipleSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationMultipleSemanticTokens.swift @@ -17,6 +17,7 @@ import XCTest // swiftlint:disable required_deinit // swiftlint:disable implicitly_unwrapped_optional // swiftlint:disable type_name +// swiftlint:disable line_length /// 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_. @@ -37,46 +38,47 @@ final class TestThemeOverrideOfElevationMultipleSemanticTokens: XCTestCase { // MARK: - Semantic token - Elevation - Colors func testInheritedThemeCanOverrideSemanticTokenElevationColorDefault() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorDefault, abstractTheme.elevationColorDefault) - XCTAssertTrue(inheritedTheme.elevationColorDefault.isEqual(MockTheme.mockThemeElevationMultipleColorSemanticToken)) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorDefault, abstractTheme.elevations.elevationColorDefault) + XCTAssertTrue(inheritedTheme.elevations.elevationColorDefault.isEqual(MockThemeElevationSemanticTokensProvider.mockThemeElevationMultipleColorSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenElevationColorNone() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorNone, abstractTheme.elevationColorNone) - XCTAssertTrue(inheritedTheme.elevationColorNone.isEqual(MockTheme.mockThemeElevationMultipleColorSemanticToken)) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorNone, abstractTheme.elevations.elevationColorNone) + XCTAssertTrue(inheritedTheme.elevations.elevationColorNone.isEqual(MockThemeElevationSemanticTokensProvider.mockThemeElevationMultipleColorSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenElevationColorRaised() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorRaised, abstractTheme.elevationColorRaised) - XCTAssertTrue(inheritedTheme.elevationColorRaised.isEqual(MockTheme.mockThemeElevationMultipleColorSemanticToken)) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorRaised, abstractTheme.elevations.elevationColorRaised) + XCTAssertTrue(inheritedTheme.elevations.elevationColorRaised.isEqual(MockThemeElevationSemanticTokensProvider.mockThemeElevationMultipleColorSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenElevationColorDrag() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorDrag, abstractTheme.elevationColorDrag) - XCTAssertTrue(inheritedTheme.elevationColorDrag.isEqual(MockTheme.mockThemeElevationMultipleColorSemanticToken)) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorDrag, abstractTheme.elevations.elevationColorDrag) + XCTAssertTrue(inheritedTheme.elevations.elevationColorDrag.isEqual(MockThemeElevationSemanticTokensProvider.mockThemeElevationMultipleColorSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenElevationColorEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorEmphasized, abstractTheme.elevationColorEmphasized) - XCTAssertTrue(inheritedTheme.elevationColorEmphasized.isEqual(MockTheme.mockThemeElevationMultipleColorSemanticToken)) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorEmphasized, abstractTheme.elevations.elevationColorEmphasized) + XCTAssertTrue(inheritedTheme.elevations.elevationColorEmphasized.isEqual(MockThemeElevationSemanticTokensProvider.mockThemeElevationMultipleColorSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenElevationColorStickyDefault() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorStickyDefault, abstractTheme.elevationColorStickyDefault) - XCTAssertTrue(inheritedTheme.elevationColorStickyDefault.isEqual(MockTheme.mockThemeElevationMultipleColorSemanticToken)) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorStickyDefault, abstractTheme.elevations.elevationColorStickyDefault) + XCTAssertTrue(inheritedTheme.elevations.elevationColorStickyDefault.isEqual(MockThemeElevationSemanticTokensProvider.mockThemeElevationMultipleColorSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenElevationColorStickyEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorStickyEmphasized, abstractTheme.elevationColorStickyEmphasized) - XCTAssertTrue(inheritedTheme.elevationColorStickyEmphasized.isEqual(MockTheme.mockThemeElevationMultipleColorSemanticToken)) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorStickyEmphasized, abstractTheme.elevations.elevationColorStickyEmphasized) + XCTAssertTrue(inheritedTheme.elevations.elevationColorStickyEmphasized.isEqual(MockThemeElevationSemanticTokensProvider.mockThemeElevationMultipleColorSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenElevationColorStickyNavigationScrolled() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorStickyNavigationScrolled, abstractTheme.elevationColorStickyNavigationScrolled) - XCTAssertTrue(inheritedTheme.elevationColorStickyNavigationScrolled.isEqual(MockTheme.mockThemeElevationMultipleColorSemanticToken)) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorStickyNavigationScrolled, abstractTheme.elevations.elevationColorStickyNavigationScrolled) + XCTAssertTrue(inheritedTheme.elevations.elevationColorStickyNavigationScrolled.isEqual(MockThemeElevationSemanticTokensProvider.mockThemeElevationMultipleColorSemanticToken)) } } // swiftlint:enable required_deinit // swiftlint:enable implicitly_unwrapped_optional // swiftlint:enable type_name +// swiftlint:enable line_length diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationSemanticTokens.swift index 54c265cd90..b08b0d4ecc 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfElevationSemanticTokens.swift @@ -37,179 +37,179 @@ final class TestThemeOverrideOfElevationSemanticTokens: XCTestCase { // MARK: - Semantic token - Elevation - X func testInheritedThemeCanOverrideSemanticTokenElevationXNone() throws { - XCTAssertNotEqual(inheritedTheme.elevationXNone, abstractTheme.elevationXNone) - XCTAssertTrue(inheritedTheme.elevationXNone == MockTheme.mockThemeElevationXRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationXNone, abstractTheme.elevations.elevationXNone) + XCTAssertTrue(inheritedTheme.elevations.elevationXNone == MockThemeElevationSemanticTokensProvider.mockThemeElevationXRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationXRaised() throws { - XCTAssertNotEqual(inheritedTheme.elevationXRaised, abstractTheme.elevationXRaised) - XCTAssertTrue(inheritedTheme.elevationXRaised == MockTheme.mockThemeElevationXRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationXRaised, abstractTheme.elevations.elevationXRaised) + XCTAssertTrue(inheritedTheme.elevations.elevationXRaised == MockThemeElevationSemanticTokensProvider.mockThemeElevationXRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationXDrag() throws { - XCTAssertNotEqual(inheritedTheme.elevationXDrag, abstractTheme.elevationXDrag) - XCTAssertTrue(inheritedTheme.elevationXDrag == MockTheme.mockThemeElevationXRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationXDrag, abstractTheme.elevations.elevationXDrag) + XCTAssertTrue(inheritedTheme.elevations.elevationXDrag == MockThemeElevationSemanticTokensProvider.mockThemeElevationXRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationXStickyDefault() throws { - XCTAssertNotEqual(inheritedTheme.elevationXStickyDefault, abstractTheme.elevationXStickyDefault) - XCTAssertTrue(inheritedTheme.elevationXStickyDefault == MockTheme.mockThemeElevationXRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationXStickyDefault, abstractTheme.elevations.elevationXStickyDefault) + XCTAssertTrue(inheritedTheme.elevations.elevationXStickyDefault == MockThemeElevationSemanticTokensProvider.mockThemeElevationXRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationXStickyEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.elevationXStickyEmphasized, abstractTheme.elevationXStickyEmphasized) - XCTAssertTrue(inheritedTheme.elevationXStickyEmphasized == MockTheme.mockThemeElevationXRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationXStickyEmphasized, abstractTheme.elevations.elevationXStickyEmphasized) + XCTAssertTrue(inheritedTheme.elevations.elevationXStickyEmphasized == MockThemeElevationSemanticTokensProvider.mockThemeElevationXRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationXStickyNavigationScrolled() throws { - XCTAssertNotEqual(inheritedTheme.elevationXStickyNavigationScrolled, abstractTheme.elevationXStickyNavigationScrolled) - XCTAssertTrue(inheritedTheme.elevationXStickyNavigationScrolled == MockTheme.mockThemeElevationXRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationXStickyNavigationScrolled, abstractTheme.elevations.elevationXStickyNavigationScrolled) + XCTAssertTrue(inheritedTheme.elevations.elevationXStickyNavigationScrolled == MockThemeElevationSemanticTokensProvider.mockThemeElevationXRawToken) } // MARK: - Semantic token - Elevation - Y func testInheritedThemeCanOverrideSemanticTokenElevationYNone() throws { - XCTAssertNotEqual(inheritedTheme.elevationYNone, abstractTheme.elevationYNone) - XCTAssertTrue(inheritedTheme.elevationYNone == MockTheme.mockThemeElevationYRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationYNone, abstractTheme.elevations.elevationYNone) + XCTAssertTrue(inheritedTheme.elevations.elevationYNone == MockThemeElevationSemanticTokensProvider.mockThemeElevationYRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationYRaised() throws { - XCTAssertNotEqual(inheritedTheme.elevationYRaised, abstractTheme.elevationYRaised) - XCTAssertTrue(inheritedTheme.elevationYRaised == MockTheme.mockThemeElevationYRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationYRaised, abstractTheme.elevations.elevationYRaised) + XCTAssertTrue(inheritedTheme.elevations.elevationYRaised == MockThemeElevationSemanticTokensProvider.mockThemeElevationYRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationYDrag() throws { - XCTAssertNotEqual(inheritedTheme.elevationYDrag, abstractTheme.elevationYDrag) - XCTAssertTrue(inheritedTheme.elevationYDrag == MockTheme.mockThemeElevationYRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationYDrag, abstractTheme.elevations.elevationYDrag) + XCTAssertTrue(inheritedTheme.elevations.elevationYDrag == MockThemeElevationSemanticTokensProvider.mockThemeElevationYRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationYStickyDefault() throws { - XCTAssertNotEqual(inheritedTheme.elevationYStickyDefault, abstractTheme.elevationYStickyDefault) - XCTAssertTrue(inheritedTheme.elevationYStickyDefault == MockTheme.mockThemeElevationYRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationYStickyDefault, abstractTheme.elevations.elevationYStickyDefault) + XCTAssertTrue(inheritedTheme.elevations.elevationYStickyDefault == MockThemeElevationSemanticTokensProvider.mockThemeElevationYRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationYStickyEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.elevationYStickyEmphasized, abstractTheme.elevationYStickyEmphasized) - XCTAssertTrue(inheritedTheme.elevationYStickyEmphasized == MockTheme.mockThemeElevationYRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationYStickyEmphasized, abstractTheme.elevations.elevationYStickyEmphasized) + XCTAssertTrue(inheritedTheme.elevations.elevationYStickyEmphasized == MockThemeElevationSemanticTokensProvider.mockThemeElevationYRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationYStickyNavigationScrolled() throws { - XCTAssertNotEqual(inheritedTheme.elevationYStickyNavigationScrolled, abstractTheme.elevationYStickyNavigationScrolled) - XCTAssertTrue(inheritedTheme.elevationYStickyNavigationScrolled == MockTheme.mockThemeElevationYRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationYStickyNavigationScrolled, abstractTheme.elevations.elevationYStickyNavigationScrolled) + XCTAssertTrue(inheritedTheme.elevations.elevationYStickyNavigationScrolled == MockThemeElevationSemanticTokensProvider.mockThemeElevationYRawToken) } // MARK: - Semantic token - Elevation - Blur func testInheritedThemeCanOverrideSemanticTokenElevationBlurNone() throws { - XCTAssertNotEqual(inheritedTheme.elevationBlurNone, abstractTheme.elevationBlurNone) - XCTAssertTrue(inheritedTheme.elevationBlurNone == MockTheme.mockThemeElevationBlurRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationBlurNone, abstractTheme.elevations.elevationBlurNone) + XCTAssertTrue(inheritedTheme.elevations.elevationBlurNone == MockThemeElevationSemanticTokensProvider.mockThemeElevationBlurRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationBlurRaised() throws { - XCTAssertNotEqual(inheritedTheme.elevationBlurRaised, abstractTheme.elevationBlurRaised) - XCTAssertTrue(inheritedTheme.elevationBlurRaised == MockTheme.mockThemeElevationBlurRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationBlurRaised, abstractTheme.elevations.elevationBlurRaised) + XCTAssertTrue(inheritedTheme.elevations.elevationBlurRaised == MockThemeElevationSemanticTokensProvider.mockThemeElevationBlurRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationBlurDrag() throws { - XCTAssertNotEqual(inheritedTheme.elevationBlurDrag, abstractTheme.elevationBlurDrag) - XCTAssertTrue(inheritedTheme.elevationBlurDrag == MockTheme.mockThemeElevationBlurRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationBlurDrag, abstractTheme.elevations.elevationBlurDrag) + XCTAssertTrue(inheritedTheme.elevations.elevationBlurDrag == MockThemeElevationSemanticTokensProvider.mockThemeElevationBlurRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationBlurStickyDefault() throws { - XCTAssertNotEqual(inheritedTheme.elevationBlurStickyDefault, abstractTheme.elevationBlurStickyDefault) - XCTAssertTrue(inheritedTheme.elevationBlurStickyDefault == MockTheme.mockThemeElevationBlurRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationBlurStickyDefault, abstractTheme.elevations.elevationBlurStickyDefault) + XCTAssertTrue(inheritedTheme.elevations.elevationBlurStickyDefault == MockThemeElevationSemanticTokensProvider.mockThemeElevationBlurRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationBlurStickyEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.elevationBlurStickyEmphasized, abstractTheme.elevationBlurStickyEmphasized) - XCTAssertTrue(inheritedTheme.elevationBlurStickyEmphasized == MockTheme.mockThemeElevationBlurRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationBlurStickyEmphasized, abstractTheme.elevations.elevationBlurStickyEmphasized) + XCTAssertTrue(inheritedTheme.elevations.elevationBlurStickyEmphasized == MockThemeElevationSemanticTokensProvider.mockThemeElevationBlurRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationBlurStickyNavigationScrolled() throws { - XCTAssertNotEqual(inheritedTheme.elevationBlurStickyNavigationScrolled, abstractTheme.elevationBlurStickyNavigationScrolled) - XCTAssertTrue(inheritedTheme.elevationBlurStickyNavigationScrolled == MockTheme.mockThemeElevationBlurRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationBlurStickyNavigationScrolled, abstractTheme.elevations.elevationBlurStickyNavigationScrolled) + XCTAssertTrue(inheritedTheme.elevations.elevationBlurStickyNavigationScrolled == MockThemeElevationSemanticTokensProvider.mockThemeElevationBlurRawToken) } // MARK: - Semantic token - Elevation - Colors func testInheritedThemeCanOverrideSemanticTokenElevationColorDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorDefaultLight, abstractTheme.elevationColorDefaultLight) - XCTAssertTrue(inheritedTheme.elevationColorDefaultLight == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorDefaultLight, abstractTheme.elevations.elevationColorDefaultLight) + XCTAssertTrue(inheritedTheme.elevations.elevationColorDefaultLight == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorDefaultDark, abstractTheme.elevationColorDefaultDark) - XCTAssertTrue(inheritedTheme.elevationColorDefaultDark == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorDefaultDark, abstractTheme.elevations.elevationColorDefaultDark) + XCTAssertTrue(inheritedTheme.elevations.elevationColorDefaultDark == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorNoneLight() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorNoneLight, abstractTheme.elevationColorNoneLight) - XCTAssertTrue(inheritedTheme.elevationColorNoneLight == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorNoneLight, abstractTheme.elevations.elevationColorNoneLight) + XCTAssertTrue(inheritedTheme.elevations.elevationColorNoneLight == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorNoneDark() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorNoneDark, abstractTheme.elevationColorNoneDark) - XCTAssertTrue(inheritedTheme.elevationColorNoneDark == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorNoneDark, abstractTheme.elevations.elevationColorNoneDark) + XCTAssertTrue(inheritedTheme.elevations.elevationColorNoneDark == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorRaisedLight() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorRaisedLight, abstractTheme.elevationColorRaisedLight) - XCTAssertTrue(inheritedTheme.elevationColorRaisedLight == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorRaisedLight, abstractTheme.elevations.elevationColorRaisedLight) + XCTAssertTrue(inheritedTheme.elevations.elevationColorRaisedLight == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorRaisedDark() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorRaisedDark, abstractTheme.elevationColorRaisedDark) - XCTAssertTrue(inheritedTheme.elevationColorRaisedDark == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorRaisedDark, abstractTheme.elevations.elevationColorRaisedDark) + XCTAssertTrue(inheritedTheme.elevations.elevationColorRaisedDark == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorDragLight() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorDragLight, abstractTheme.elevationColorDragLight) - XCTAssertTrue(inheritedTheme.elevationColorDragLight == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorDragLight, abstractTheme.elevations.elevationColorDragLight) + XCTAssertTrue(inheritedTheme.elevations.elevationColorDragLight == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorDragDark() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorDragDark, abstractTheme.elevationColorDragDark) - XCTAssertTrue(inheritedTheme.elevationColorDragDark == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorDragDark, abstractTheme.elevations.elevationColorDragDark) + XCTAssertTrue(inheritedTheme.elevations.elevationColorDragDark == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorEmphasizedLight, abstractTheme.elevationColorEmphasizedLight) - XCTAssertTrue(inheritedTheme.elevationColorEmphasizedLight == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorEmphasizedLight, abstractTheme.elevations.elevationColorEmphasizedLight) + XCTAssertTrue(inheritedTheme.elevations.elevationColorEmphasizedLight == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorEmphasizedDark, abstractTheme.elevationColorEmphasizedDark) - XCTAssertTrue(inheritedTheme.elevationColorEmphasizedDark == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorEmphasizedDark, abstractTheme.elevations.elevationColorEmphasizedDark) + XCTAssertTrue(inheritedTheme.elevations.elevationColorEmphasizedDark == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorStickyDefaultLight() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorStickyDefaultLight, abstractTheme.elevationColorStickyDefaultLight) - XCTAssertTrue(inheritedTheme.elevationColorStickyDefaultLight == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorStickyDefaultLight, abstractTheme.elevations.elevationColorStickyDefaultLight) + XCTAssertTrue(inheritedTheme.elevations.elevationColorStickyDefaultLight == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorStickyDefaultDark() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorStickyDefaultDark, abstractTheme.elevationColorStickyDefaultDark) - XCTAssertTrue(inheritedTheme.elevationColorStickyDefaultDark == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorStickyDefaultDark, abstractTheme.elevations.elevationColorStickyDefaultDark) + XCTAssertTrue(inheritedTheme.elevations.elevationColorStickyDefaultDark == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorStickyEmphasizedLight() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorStickyEmphasizedLight, abstractTheme.elevationColorStickyEmphasizedLight) - XCTAssertTrue(inheritedTheme.elevationColorStickyEmphasizedLight == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorStickyEmphasizedLight, abstractTheme.elevations.elevationColorStickyEmphasizedLight) + XCTAssertTrue(inheritedTheme.elevations.elevationColorStickyEmphasizedLight == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorStickyEmphasizedDark() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorStickyEmphasizedDark, abstractTheme.elevationColorStickyEmphasizedDark) - XCTAssertTrue(inheritedTheme.elevationColorStickyEmphasizedDark == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorStickyEmphasizedDark, abstractTheme.elevations.elevationColorStickyEmphasizedDark) + XCTAssertTrue(inheritedTheme.elevations.elevationColorStickyEmphasizedDark == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorStickyNavigationScrolledLight() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorStickyNavigationScrolledLight, abstractTheme.elevationColorStickyNavigationScrolledLight) - XCTAssertTrue(inheritedTheme.elevationColorStickyNavigationScrolledLight == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorStickyNavigationScrolledLight, abstractTheme.elevations.elevationColorStickyNavigationScrolledLight) + XCTAssertTrue(inheritedTheme.elevations.elevationColorStickyNavigationScrolledLight == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } func testInheritedThemeCanOverrideSemanticTokenElevationColorStickyNavigationScrolledDark() throws { - XCTAssertNotEqual(inheritedTheme.elevationColorStickyNavigationScrolledDark, abstractTheme.elevationColorStickyNavigationScrolledDark) - XCTAssertTrue(inheritedTheme.elevationColorStickyNavigationScrolledDark == MockTheme.mockThemeElevationColorRawToken) + XCTAssertNotEqual(inheritedTheme.elevations.elevationColorStickyNavigationScrolledDark, abstractTheme.elevations.elevationColorStickyNavigationScrolledDark) + XCTAssertTrue(inheritedTheme.elevations.elevationColorStickyNavigationScrolledDark == MockThemeElevationSemanticTokensProvider.mockThemeElevationColorRawToken) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontCompositeSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontCompositeSemanticTokens.swift index aa62dab82e..9fcdffab5b 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontCompositeSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontCompositeSemanticTokens.swift @@ -37,126 +37,126 @@ final class TestThemeOverrideOfFontCompositeSemanticTokens: XCTestCase { // MARK: - Semantic tokens - Typography - Composites - Display func testInheritedThemeCanOverrideSemanticTokenTypeDisplayLarge() throws { - XCTAssertNotEqual(inheritedTheme.typeDisplayLarge, abstractTheme.typeDisplayLarge) - XCTAssertTrue(inheritedTheme.typeDisplayLarge == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeDisplayLarge, abstractTheme.fonts.typeDisplayLarge) + XCTAssertTrue(inheritedTheme.fonts.typeDisplayLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeDisplayMedium() throws { - XCTAssertNotEqual(inheritedTheme.typeDisplayMedium, abstractTheme.typeDisplayMedium) - XCTAssertTrue(inheritedTheme.typeDisplayMedium == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeDisplayMedium, abstractTheme.fonts.typeDisplayMedium) + XCTAssertTrue(inheritedTheme.fonts.typeDisplayMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeDisplaySmal() throws { - XCTAssertNotEqual(inheritedTheme.typeDisplaySmall, abstractTheme.typeDisplaySmall) - XCTAssertTrue(inheritedTheme.typeDisplaySmall == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeDisplaySmall, abstractTheme.fonts.typeDisplaySmall) + XCTAssertTrue(inheritedTheme.fonts.typeDisplaySmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } // MARK: - Semantic tokens - Typography - Composites - Heading func testInheritedThemeCanOverrideSemanticTokenTypeHeadingXLarge() throws { - XCTAssertNotEqual(inheritedTheme.typeHeadingXLarge, abstractTheme.typeHeadingXLarge) - XCTAssertTrue(inheritedTheme.typeHeadingXLarge == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeHeadingXLarge, abstractTheme.fonts.typeHeadingXLarge) + XCTAssertTrue(inheritedTheme.fonts.typeHeadingXLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeHeadingLarge() throws { - XCTAssertNotEqual(inheritedTheme.typeHeadingLarge, abstractTheme.typeHeadingLarge) - XCTAssertTrue(inheritedTheme.typeHeadingLarge == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeHeadingLarge, abstractTheme.fonts.typeHeadingLarge) + XCTAssertTrue(inheritedTheme.fonts.typeHeadingLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeHeadingMedium() throws { - XCTAssertNotEqual(inheritedTheme.typeHeadingMedium, abstractTheme.typeHeadingMedium) - XCTAssertTrue(inheritedTheme.typeHeadingMedium == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeHeadingMedium, abstractTheme.fonts.typeHeadingMedium) + XCTAssertTrue(inheritedTheme.fonts.typeHeadingMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeHeadingSmall() throws { - XCTAssertNotEqual(inheritedTheme.typeHeadingSmall, abstractTheme.typeHeadingSmall) - XCTAssertTrue(inheritedTheme.typeHeadingSmall == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeHeadingSmall, abstractTheme.fonts.typeHeadingSmall) + XCTAssertTrue(inheritedTheme.fonts.typeHeadingSmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } // MARK: - Semantic tokens - Typography - Composites - Body func testInheritedThemeCanOverrideSemanticTokenTypeDefaultLarge() throws { - XCTAssertNotEqual(inheritedTheme.typeBodyDefaultLarge, abstractTheme.typeBodyDefaultLarge) - XCTAssertTrue(inheritedTheme.typeBodyDefaultLarge == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeBodyDefaultLarge, abstractTheme.fonts.typeBodyDefaultLarge) + XCTAssertTrue(inheritedTheme.fonts.typeBodyDefaultLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeDefaultMedium() throws { - XCTAssertNotEqual(inheritedTheme.typeBodyDefaultMedium, abstractTheme.typeBodyDefaultMedium) - XCTAssertTrue(inheritedTheme.typeBodyDefaultMedium == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeBodyDefaultMedium, abstractTheme.fonts.typeBodyDefaultMedium) + XCTAssertTrue(inheritedTheme.fonts.typeBodyDefaultMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeDefaultSmall() throws { - XCTAssertNotEqual(inheritedTheme.typeBodyDefaultSmall, abstractTheme.typeBodyDefaultSmall) - XCTAssertTrue(inheritedTheme.typeBodyDefaultSmall == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeBodyDefaultSmall, abstractTheme.fonts.typeBodyDefaultSmall) + XCTAssertTrue(inheritedTheme.fonts.typeBodyDefaultSmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeStrongLarge() throws { - XCTAssertNotEqual(inheritedTheme.typeBodyStrongLarge, abstractTheme.typeBodyStrongLarge) - XCTAssertTrue(inheritedTheme.typeBodyStrongLarge == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeBodyStrongLarge, abstractTheme.fonts.typeBodyStrongLarge) + XCTAssertTrue(inheritedTheme.fonts.typeBodyStrongLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeStrongMedium() throws { - XCTAssertNotEqual(inheritedTheme.typeBodyStrongMedium, abstractTheme.typeBodyStrongMedium) - XCTAssertTrue(inheritedTheme.typeBodyStrongMedium == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeBodyStrongMedium, abstractTheme.fonts.typeBodyStrongMedium) + XCTAssertTrue(inheritedTheme.fonts.typeBodyStrongMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeStrongSmall() throws { - XCTAssertNotEqual(inheritedTheme.typeBodyStrongSmall, abstractTheme.typeBodyStrongSmall) - XCTAssertTrue(inheritedTheme.typeBodyStrongSmall == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeBodyStrongSmall, abstractTheme.fonts.typeBodyStrongSmall) + XCTAssertTrue(inheritedTheme.fonts.typeBodyStrongSmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } // MARK: - Semantic tokens - Typography - Composites - Label func testInheritedThemeCanOverrideSemanticTokenTypeLabelDefaultXLarge() throws { - XCTAssertNotEqual(inheritedTheme.typeLabelDefaultXLarge, abstractTheme.typeLabelDefaultXLarge) - XCTAssertTrue(inheritedTheme.typeLabelDefaultXLarge == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeLabelDefaultXLarge, abstractTheme.fonts.typeLabelDefaultXLarge) + XCTAssertTrue(inheritedTheme.fonts.typeLabelDefaultXLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeLabelDefaultLarge() throws { - XCTAssertNotEqual(inheritedTheme.typeLabelDefaultLarge, abstractTheme.typeLabelDefaultLarge) - XCTAssertTrue(inheritedTheme.typeLabelDefaultLarge == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeLabelDefaultLarge, abstractTheme.fonts.typeLabelDefaultLarge) + XCTAssertTrue(inheritedTheme.fonts.typeLabelDefaultLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeLabelDefaultMedium() throws { - XCTAssertNotEqual(inheritedTheme.typeLabelDefaultMedium, abstractTheme.typeLabelDefaultMedium) - XCTAssertTrue(inheritedTheme.typeLabelDefaultMedium == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeLabelDefaultMedium, abstractTheme.fonts.typeLabelDefaultMedium) + XCTAssertTrue(inheritedTheme.fonts.typeLabelDefaultMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeLabelDefaultSmall() throws { - XCTAssertNotEqual(inheritedTheme.typeLabelDefaultSmall, abstractTheme.typeLabelDefaultSmall) - XCTAssertTrue(inheritedTheme.typeLabelDefaultSmall == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeLabelDefaultSmall, abstractTheme.fonts.typeLabelDefaultSmall) + XCTAssertTrue(inheritedTheme.fonts.typeLabelDefaultSmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeLabelStrongXLarge() throws { - XCTAssertNotEqual(inheritedTheme.typeLabelStrongXLarge, abstractTheme.typeLabelStrongXLarge) - XCTAssertTrue(inheritedTheme.typeLabelStrongXLarge == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeLabelStrongXLarge, abstractTheme.fonts.typeLabelStrongXLarge) + XCTAssertTrue(inheritedTheme.fonts.typeLabelStrongXLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeLabelStrongLarge() throws { - XCTAssertNotEqual(inheritedTheme.typeLabelStrongLarge, abstractTheme.typeLabelStrongLarge) - XCTAssertTrue(inheritedTheme.typeLabelStrongLarge == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeLabelStrongLarge, abstractTheme.fonts.typeLabelStrongLarge) + XCTAssertTrue(inheritedTheme.fonts.typeLabelStrongLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeLabelStrongMedium() throws { - XCTAssertNotEqual(inheritedTheme.typeLabelStrongMedium, abstractTheme.typeLabelStrongMedium) - XCTAssertTrue(inheritedTheme.typeLabelStrongMedium == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeLabelStrongMedium, abstractTheme.fonts.typeLabelStrongMedium) + XCTAssertTrue(inheritedTheme.fonts.typeLabelStrongMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeLabelStrongSmall() throws { - XCTAssertNotEqual(inheritedTheme.typeLabelStrongSmall, abstractTheme.typeLabelStrongSmall) - XCTAssertTrue(inheritedTheme.typeLabelStrongSmall == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeLabelStrongSmall, abstractTheme.fonts.typeLabelStrongSmall) + XCTAssertTrue(inheritedTheme.fonts.typeLabelStrongSmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } // MARK: - Semantic tokens - Typography - Composites - Code func testInheritedThemeCanOverrideSemanticTokenTypeCodeMedium() throws { - XCTAssertNotEqual(inheritedTheme.typeCodeMedium, abstractTheme.typeCodeMedium) - XCTAssertTrue(inheritedTheme.typeCodeMedium == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeCodeMedium, abstractTheme.fonts.typeCodeMedium) + XCTAssertTrue(inheritedTheme.fonts.typeCodeMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } func testInheritedThemeCanOverrideSemanticTokenTypeCodeSmall() throws { - XCTAssertNotEqual(inheritedTheme.typeCodeSmall, abstractTheme.typeCodeSmall) - XCTAssertTrue(inheritedTheme.typeCodeSmall == MockTheme.mockThemeMultipleFontCompositeRawTokens) + XCTAssertNotEqual(inheritedTheme.fonts.typeCodeSmall, abstractTheme.fonts.typeCodeSmall) + XCTAssertTrue(inheritedTheme.fonts.typeCodeSmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontCompositeRawTokens) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontMultipleSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontMultipleSemanticTokens.swift index f937ff3482..30cf21ade2 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontMultipleSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontMultipleSemanticTokens.swift @@ -37,157 +37,157 @@ final class TestThemeOverrideOfFontMultipleSemanticTokens: XCTestCase { // MARK: - Semantic token - Typography - Font - Size func testInheritedThemeCanOverrideSemanticTokenFontSizeDisplayLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeDisplayLarge, abstractTheme.fontSizeDisplayLarge) - XCTAssertTrue(inheritedTheme.fontSizeDisplayLarge == MockTheme.mockThemeMultipleFontSizeTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeDisplayLarge, abstractTheme.fonts.fontSizeDisplayLarge) + XCTAssertTrue(inheritedTheme.fonts.fontSizeDisplayLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontSizeTokens) } func testInheritedThemeCanOverrideSemanticTokenFontSizeDisplayMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeDisplayMedium, abstractTheme.fontSizeDisplayMedium) - XCTAssertTrue(inheritedTheme.fontSizeDisplayMedium == MockTheme.mockThemeMultipleFontSizeTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeDisplayMedium, abstractTheme.fonts.fontSizeDisplayMedium) + XCTAssertTrue(inheritedTheme.fonts.fontSizeDisplayMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontSizeTokens) } func testInheritedThemeCanOverrideSemanticTokenFontSizeDisplaySmall() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeDisplaySmall, abstractTheme.fontSizeDisplaySmall) - XCTAssertTrue(inheritedTheme.fontSizeDisplaySmall == MockTheme.mockThemeMultipleFontSizeTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeDisplaySmall, abstractTheme.fonts.fontSizeDisplaySmall) + XCTAssertTrue(inheritedTheme.fonts.fontSizeDisplaySmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontSizeTokens) } func testInheritedThemeCanOverrideSemanticTokenFontSizeHeadingXlarge() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeHeadingXlarge, abstractTheme.fontSizeHeadingXlarge) - XCTAssertTrue(inheritedTheme.fontSizeHeadingXlarge == MockTheme.mockThemeMultipleFontSizeTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeHeadingXlarge, abstractTheme.fonts.fontSizeHeadingXlarge) + XCTAssertTrue(inheritedTheme.fonts.fontSizeHeadingXlarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontSizeTokens) } func testInheritedThemeCanOverrideSemanticTokenFontSizeHeadingLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeHeadingLarge, abstractTheme.fontSizeHeadingLarge) - XCTAssertTrue(inheritedTheme.fontSizeHeadingLarge == MockTheme.mockThemeMultipleFontSizeTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeHeadingLarge, abstractTheme.fonts.fontSizeHeadingLarge) + XCTAssertTrue(inheritedTheme.fonts.fontSizeHeadingLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontSizeTokens) } func testInheritedThemeCanOverrideSemanticTokenFontSizeHeadingMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeHeadingMedium, abstractTheme.fontSizeHeadingMedium) - XCTAssertTrue(inheritedTheme.fontSizeHeadingMedium == MockTheme.mockThemeMultipleFontSizeTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeHeadingMedium, abstractTheme.fonts.fontSizeHeadingMedium) + XCTAssertTrue(inheritedTheme.fonts.fontSizeHeadingMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontSizeTokens) } func testInheritedThemeCanOverrideSemanticTokenFontSizeHeadingSmall() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeHeadingSmall, abstractTheme.fontSizeHeadingSmall) - XCTAssertTrue(inheritedTheme.fontSizeHeadingSmall == MockTheme.mockThemeMultipleFontSizeTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeHeadingSmall, abstractTheme.fonts.fontSizeHeadingSmall) + XCTAssertTrue(inheritedTheme.fonts.fontSizeHeadingSmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontSizeTokens) } func testInheritedThemeCanOverrideSemanticTokenFontSizeBodyLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeBodyLarge, abstractTheme.fontSizeBodyLarge) - XCTAssertTrue(inheritedTheme.fontSizeBodyLarge == MockTheme.mockThemeMultipleFontSizeTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeBodyLarge, abstractTheme.fonts.fontSizeBodyLarge) + XCTAssertTrue(inheritedTheme.fonts.fontSizeBodyLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontSizeTokens) } func testInheritedThemeCanOverrideSemanticTokenFontSizeBodyMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeBodyMedium, abstractTheme.fontSizeBodyMedium) - XCTAssertTrue(inheritedTheme.fontSizeBodyMedium == MockTheme.mockThemeMultipleFontSizeTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeBodyMedium, abstractTheme.fonts.fontSizeBodyMedium) + XCTAssertTrue(inheritedTheme.fonts.fontSizeBodyMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontSizeTokens) } func testInheritedThemeCanOverrideSemanticTokenFontSizeBodySmall() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeBodySmall, abstractTheme.fontSizeBodySmall) - XCTAssertTrue(inheritedTheme.fontSizeBodySmall == MockTheme.mockThemeMultipleFontSizeTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeBodySmall, abstractTheme.fonts.fontSizeBodySmall) + XCTAssertTrue(inheritedTheme.fonts.fontSizeBodySmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontSizeTokens) } // MARK: - Semantic token - Typography - Font - Letter spacing func testInheritedThemeCanOverrideSemanticTokenfontLetterSpacingDisplayLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingDisplayLarge, abstractTheme.fontLetterSpacingDisplayLarge) - XCTAssertTrue(inheritedTheme.fontLetterSpacingDisplayLarge == MockTheme.mockThemeMultipleFontLetterSpacingTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingDisplayLarge, abstractTheme.fonts.fontLetterSpacingDisplayLarge) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingDisplayLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLetterSpacingTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingDisplayMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingDisplayMedium, abstractTheme.fontLetterSpacingDisplayMedium) - XCTAssertTrue(inheritedTheme.fontLetterSpacingDisplayMedium == MockTheme.mockThemeMultipleFontLetterSpacingTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingDisplayMedium, abstractTheme.fonts.fontLetterSpacingDisplayMedium) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingDisplayMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLetterSpacingTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingDisplaySmall() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingDisplaySmall, abstractTheme.fontLetterSpacingDisplaySmall) - XCTAssertTrue(inheritedTheme.fontLetterSpacingDisplaySmall == MockTheme.mockThemeMultipleFontLetterSpacingTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingDisplaySmall, abstractTheme.fonts.fontLetterSpacingDisplaySmall) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingDisplaySmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLetterSpacingTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingHeadingXlarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingHeadingXlarge, abstractTheme.fontLetterSpacingHeadingXlarge) - XCTAssertTrue(inheritedTheme.fontLetterSpacingHeadingXlarge == MockTheme.mockThemeMultipleFontLetterSpacingTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingHeadingXlarge, abstractTheme.fonts.fontLetterSpacingHeadingXlarge) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingHeadingXlarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLetterSpacingTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingHeadingLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingHeadingLarge, abstractTheme.fontLetterSpacingHeadingLarge) - XCTAssertTrue(inheritedTheme.fontLetterSpacingHeadingLarge == MockTheme.mockThemeMultipleFontLetterSpacingTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingHeadingLarge, abstractTheme.fonts.fontLetterSpacingHeadingLarge) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingHeadingLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLetterSpacingTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingHeadingMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingHeadingMedium, abstractTheme.fontLetterSpacingHeadingMedium) - XCTAssertTrue(inheritedTheme.fontLetterSpacingHeadingMedium == MockTheme.mockThemeMultipleFontLetterSpacingTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingHeadingMedium, abstractTheme.fonts.fontLetterSpacingHeadingMedium) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingHeadingMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLetterSpacingTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingHeadingSmall() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingHeadingSmall, abstractTheme.fontLetterSpacingHeadingSmall) - XCTAssertTrue(inheritedTheme.fontLetterSpacingHeadingSmall == MockTheme.mockThemeMultipleFontLetterSpacingTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingHeadingSmall, abstractTheme.fonts.fontLetterSpacingHeadingSmall) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingHeadingSmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLetterSpacingTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingBodyLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingBodyLarge, abstractTheme.fontLetterSpacingBodyLarge) - XCTAssertTrue(inheritedTheme.fontLetterSpacingBodyLarge == MockTheme.mockThemeMultipleFontLetterSpacingTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingBodyLarge, abstractTheme.fonts.fontLetterSpacingBodyLarge) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingBodyLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLetterSpacingTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingBodyMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingBodyMedium, abstractTheme.fontLetterSpacingBodyMedium) - XCTAssertTrue(inheritedTheme.fontLetterSpacingBodyMedium == MockTheme.mockThemeMultipleFontLetterSpacingTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingBodyMedium, abstractTheme.fonts.fontLetterSpacingBodyMedium) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingBodyMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLetterSpacingTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingBodySmall() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingBodySmall, abstractTheme.fontLetterSpacingBodySmall) - XCTAssertTrue(inheritedTheme.fontLetterSpacingBodySmall == MockTheme.mockThemeMultipleFontLetterSpacingTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingBodySmall, abstractTheme.fonts.fontLetterSpacingBodySmall) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingBodySmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLetterSpacingTokens) } // MARK: - Semantic token - Typography - Font - Line height func testInheritedThemeCanOverrideSemanticTokenFontLineHeightDisplayLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightDisplayLarge, abstractTheme.fontLineHeightDisplayLarge) - XCTAssertTrue(inheritedTheme.fontLineHeightDisplayLarge == MockTheme.mockThemeMultipleFontLineHeightTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightDisplayLarge, abstractTheme.fonts.fontLineHeightDisplayLarge) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightDisplayLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLineHeightTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightDisplayMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightDisplayMedium, abstractTheme.fontLineHeightDisplayMedium) - XCTAssertTrue(inheritedTheme.fontLineHeightDisplayMedium == MockTheme.mockThemeMultipleFontLineHeightTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightDisplayMedium, abstractTheme.fonts.fontLineHeightDisplayMedium) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightDisplayMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLineHeightTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightDisplaySmall() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightDisplaySmall, abstractTheme.fontLineHeightDisplaySmall) - XCTAssertTrue(inheritedTheme.fontLineHeightDisplaySmall == MockTheme.mockThemeMultipleFontLineHeightTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightDisplaySmall, abstractTheme.fonts.fontLineHeightDisplaySmall) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightDisplaySmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLineHeightTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightHeadingXlarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightHeadingXlarge, abstractTheme.fontLineHeightHeadingXlarge) - XCTAssertTrue(inheritedTheme.fontLineHeightHeadingXlarge == MockTheme.mockThemeMultipleFontLineHeightTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightHeadingXlarge, abstractTheme.fonts.fontLineHeightHeadingXlarge) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightHeadingXlarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLineHeightTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightHeadingLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightHeadingLarge, abstractTheme.fontLineHeightHeadingLarge) - XCTAssertTrue(inheritedTheme.fontLineHeightHeadingLarge == MockTheme.mockThemeMultipleFontLineHeightTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightHeadingLarge, abstractTheme.fonts.fontLineHeightHeadingLarge) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightHeadingLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLineHeightTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightHeadingMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightHeadingMedium, abstractTheme.fontLineHeightHeadingMedium) - XCTAssertTrue(inheritedTheme.fontLineHeightHeadingMedium == MockTheme.mockThemeMultipleFontLineHeightTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightHeadingMedium, abstractTheme.fonts.fontLineHeightHeadingMedium) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightHeadingMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLineHeightTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightHeadingSmall() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightHeadingSmall, abstractTheme.fontLineHeightHeadingSmall) - XCTAssertTrue(inheritedTheme.fontLineHeightHeadingSmall == MockTheme.mockThemeMultipleFontLineHeightTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightHeadingSmall, abstractTheme.fonts.fontLineHeightHeadingSmall) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightHeadingSmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLineHeightTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightBodyLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightBodyLarge, abstractTheme.fontLineHeightBodyLarge) - XCTAssertTrue(inheritedTheme.fontLineHeightBodyLarge == MockTheme.mockThemeMultipleFontLineHeightTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightBodyLarge, abstractTheme.fonts.fontLineHeightBodyLarge) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightBodyLarge == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLineHeightTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightBodyMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightBodyMedium, abstractTheme.fontLineHeightBodyMedium) - XCTAssertTrue(inheritedTheme.fontLineHeightBodyMedium == MockTheme.mockThemeMultipleFontLineHeightTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightBodyMedium, abstractTheme.fonts.fontLineHeightBodyMedium) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightBodyMedium == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLineHeightTokens) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightBodySmall() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightBodySmall, abstractTheme.fontLineHeightBodySmall) - XCTAssertTrue(inheritedTheme.fontLineHeightBodySmall == MockTheme.mockThemeMultipleFontLineHeightTokens) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightBodySmall, abstractTheme.fonts.fontLineHeightBodySmall) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightBodySmall == MockThemeFontSemanticTokensProvider.mockThemeMultipleFontLineHeightTokens) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontSemanticTokens.swift index c46ddf5d30..6a539b4d12 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfFontSemanticTokens.swift @@ -37,406 +37,406 @@ final class TestThemeOverrideOfFontSemanticTokens: XCTestCase { // MARK: - Semantic token - Typography - Font - Family func testInheritedThemeCanOverrideSemanticTokenFontFamily() throws { - XCTAssertNotEqual(inheritedTheme.fontFamily, abstractTheme.fontFamily) - XCTAssertTrue(inheritedTheme.fontFamily == MockTheme.mockThemeFontFamilyRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontFamily, abstractTheme.fonts.fontFamily) + XCTAssertTrue(inheritedTheme.fonts.fontFamily == MockThemeFontSemanticTokensProvider.mockThemeFontFamilyRawToken) } // MARK: - Semantic token - Typography - Font - Weight func testInheritedThemeCanOverrideSemanticTokenFontWeightDefault() throws { - XCTAssertNotEqual(inheritedTheme.fontWeightDefault, abstractTheme.fontWeightDefault) - XCTAssertTrue(inheritedTheme.fontWeightDefault == MockTheme.mockThemeFontWeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontWeightDefault, abstractTheme.fonts.fontWeightDefault) + XCTAssertTrue(inheritedTheme.fonts.fontWeightDefault == MockThemeFontSemanticTokensProvider.mockThemeFontWeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontWeightCode() throws { - XCTAssertNotEqual(inheritedTheme.fontWeightCode, abstractTheme.fontWeightCode) - XCTAssertTrue(inheritedTheme.fontWeightCode == MockTheme.mockThemeFontWeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontWeightCode, abstractTheme.fonts.fontWeightCode) + XCTAssertTrue(inheritedTheme.fonts.fontWeightCode == MockThemeFontSemanticTokensProvider.mockThemeFontWeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontWeightStrong() throws { - XCTAssertNotEqual(inheritedTheme.fontWeightStrong, abstractTheme.fontWeightStrong) - XCTAssertTrue(inheritedTheme.fontWeightStrong == MockTheme.mockThemeFontWeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontWeightStrong, abstractTheme.fonts.fontWeightStrong) + XCTAssertTrue(inheritedTheme.fonts.fontWeightStrong == MockThemeFontSemanticTokensProvider.mockThemeFontWeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontWeightDisplay() throws { - XCTAssertNotEqual(inheritedTheme.fontWeightDisplay, abstractTheme.fontWeightDisplay) - XCTAssertTrue(inheritedTheme.fontWeightDisplay == MockTheme.mockThemeFontWeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontWeightDisplay, abstractTheme.fonts.fontWeightDisplay) + XCTAssertTrue(inheritedTheme.fonts.fontWeightDisplay == MockThemeFontSemanticTokensProvider.mockThemeFontWeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontWeightHeading() throws { - XCTAssertNotEqual(inheritedTheme.fontWeightHeading, abstractTheme.fontWeightHeading) - XCTAssertTrue(inheritedTheme.fontWeightHeading == MockTheme.mockThemeFontWeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontWeightHeading, abstractTheme.fonts.fontWeightHeading) + XCTAssertTrue(inheritedTheme.fonts.fontWeightHeading == MockThemeFontSemanticTokensProvider.mockThemeFontWeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontWeightBodyDefault() throws { - XCTAssertNotEqual(inheritedTheme.fontWeightBodyDefault, abstractTheme.fontWeightBodyDefault) - XCTAssertTrue(inheritedTheme.fontWeightBodyDefault == MockTheme.mockThemeFontWeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontWeightBodyDefault, abstractTheme.fonts.fontWeightBodyDefault) + XCTAssertTrue(inheritedTheme.fonts.fontWeightBodyDefault == MockThemeFontSemanticTokensProvider.mockThemeFontWeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontWeightBodyStrong() throws { - XCTAssertNotEqual(inheritedTheme.fontWeightBodyStrong, abstractTheme.fontWeightBodyStrong) - XCTAssertTrue(inheritedTheme.fontWeightBodyStrong == MockTheme.mockThemeFontWeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontWeightBodyStrong, abstractTheme.fonts.fontWeightBodyStrong) + XCTAssertTrue(inheritedTheme.fonts.fontWeightBodyStrong == MockThemeFontSemanticTokensProvider.mockThemeFontWeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontWeightLabelDefault() throws { - XCTAssertNotEqual(inheritedTheme.fontWeightLabelDefault, abstractTheme.fontWeightLabelDefault) - XCTAssertTrue(inheritedTheme.fontWeightLabelDefault == MockTheme.mockThemeFontWeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontWeightLabelDefault, abstractTheme.fonts.fontWeightLabelDefault) + XCTAssertTrue(inheritedTheme.fonts.fontWeightLabelDefault == MockThemeFontSemanticTokensProvider.mockThemeFontWeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontWeightLabelStrong() throws { - XCTAssertNotEqual(inheritedTheme.fontWeightLabelStrong, abstractTheme.fontWeightLabelStrong) - XCTAssertTrue(inheritedTheme.fontWeightLabelStrong == MockTheme.mockThemeFontWeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontWeightLabelStrong, abstractTheme.fonts.fontWeightLabelStrong) + XCTAssertTrue(inheritedTheme.fonts.fontWeightLabelStrong == MockThemeFontSemanticTokensProvider.mockThemeFontWeightRawToken) } // MARK: - Semantic token - Typography - Font - Size func testInheritedThemeCanOverrideSemanticTokenFontSizeLabelXlarge() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeLabelXlarge, abstractTheme.fontSizeLabelXlarge) - XCTAssertTrue(inheritedTheme.fontSizeLabelXlarge == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeLabelXlarge, abstractTheme.fonts.fontSizeLabelXlarge) + XCTAssertTrue(inheritedTheme.fonts.fontSizeLabelXlarge == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeLabelLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeLabelLarge, abstractTheme.fontSizeLabelLarge) - XCTAssertTrue(inheritedTheme.fontSizeLabelLarge == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeLabelLarge, abstractTheme.fonts.fontSizeLabelLarge) + XCTAssertTrue(inheritedTheme.fonts.fontSizeLabelLarge == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeLabelMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeLabelMedium, abstractTheme.fontSizeLabelMedium) - XCTAssertTrue(inheritedTheme.fontSizeLabelMedium == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeLabelMedium, abstractTheme.fonts.fontSizeLabelMedium) + XCTAssertTrue(inheritedTheme.fonts.fontSizeLabelMedium == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeLabelSmall() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeLabelSmall, abstractTheme.fontSizeLabelSmall) - XCTAssertTrue(inheritedTheme.fontSizeLabelSmall == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeLabelSmall, abstractTheme.fonts.fontSizeLabelSmall) + XCTAssertTrue(inheritedTheme.fonts.fontSizeLabelSmall == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeCodeMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeCodeMedium, abstractTheme.fontSizeCodeMedium) - XCTAssertTrue(inheritedTheme.fontSizeCodeMedium == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeCodeMedium, abstractTheme.fonts.fontSizeCodeMedium) + XCTAssertTrue(inheritedTheme.fonts.fontSizeCodeMedium == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeDisplayLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeDisplayLargeMobile, abstractTheme.fontSizeDisplayLargeMobile) - XCTAssertTrue(inheritedTheme.fontSizeDisplayLargeMobile == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeDisplayLargeMobile, abstractTheme.fonts.fontSizeDisplayLargeMobile) + XCTAssertTrue(inheritedTheme.fonts.fontSizeDisplayLargeMobile == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeDisplayLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeDisplayLargeTablet, abstractTheme.fontSizeDisplayLargeTablet) - XCTAssertTrue(inheritedTheme.fontSizeDisplayLargeTablet == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeDisplayLargeTablet, abstractTheme.fonts.fontSizeDisplayLargeTablet) + XCTAssertTrue(inheritedTheme.fonts.fontSizeDisplayLargeTablet == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeDisplayMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeDisplayMediumMobile, abstractTheme.fontSizeDisplayMediumMobile) - XCTAssertTrue(inheritedTheme.fontSizeDisplayMediumMobile == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeDisplayMediumMobile, abstractTheme.fonts.fontSizeDisplayMediumMobile) + XCTAssertTrue(inheritedTheme.fonts.fontSizeDisplayMediumMobile == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeDisplayMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeDisplayMediumTablet, abstractTheme.fontSizeDisplayMediumTablet) - XCTAssertTrue(inheritedTheme.fontSizeDisplayMediumTablet == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeDisplayMediumTablet, abstractTheme.fonts.fontSizeDisplayMediumTablet) + XCTAssertTrue(inheritedTheme.fonts.fontSizeDisplayMediumTablet == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeDisplaySmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeDisplaySmallMobile, abstractTheme.fontSizeDisplaySmallMobile) - XCTAssertTrue(inheritedTheme.fontSizeDisplaySmallMobile == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeDisplaySmallMobile, abstractTheme.fonts.fontSizeDisplaySmallMobile) + XCTAssertTrue(inheritedTheme.fonts.fontSizeDisplaySmallMobile == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeDisplaySmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeDisplaySmallTablet, abstractTheme.fontSizeDisplaySmallTablet) - XCTAssertTrue(inheritedTheme.fontSizeDisplaySmallTablet == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeDisplaySmallTablet, abstractTheme.fonts.fontSizeDisplaySmallTablet) + XCTAssertTrue(inheritedTheme.fonts.fontSizeDisplaySmallTablet == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeHeadingLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeHeadingLargeMobile, abstractTheme.fontSizeHeadingLargeMobile) - XCTAssertTrue(inheritedTheme.fontSizeHeadingLargeMobile == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeHeadingLargeMobile, abstractTheme.fonts.fontSizeHeadingLargeMobile) + XCTAssertTrue(inheritedTheme.fonts.fontSizeHeadingLargeMobile == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeHeadingLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeHeadingLargeTablet, abstractTheme.fontSizeHeadingLargeTablet) - XCTAssertTrue(inheritedTheme.fontSizeHeadingLargeTablet == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeHeadingLargeTablet, abstractTheme.fonts.fontSizeHeadingLargeTablet) + XCTAssertTrue(inheritedTheme.fonts.fontSizeHeadingLargeTablet == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeHeadingMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeHeadingMediumMobile, abstractTheme.fontSizeHeadingMediumMobile) - XCTAssertTrue(inheritedTheme.fontSizeHeadingMediumMobile == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeHeadingMediumMobile, abstractTheme.fonts.fontSizeHeadingMediumMobile) + XCTAssertTrue(inheritedTheme.fonts.fontSizeHeadingMediumMobile == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeHeadingMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeHeadingMediumTablet, abstractTheme.fontSizeHeadingMediumTablet) - XCTAssertTrue(inheritedTheme.fontSizeHeadingMediumTablet == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeHeadingMediumTablet, abstractTheme.fonts.fontSizeHeadingMediumTablet) + XCTAssertTrue(inheritedTheme.fonts.fontSizeHeadingMediumTablet == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeHeadingSmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeHeadingSmallMobile, abstractTheme.fontSizeHeadingSmallMobile) - XCTAssertTrue(inheritedTheme.fontSizeHeadingSmallMobile == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeHeadingSmallMobile, abstractTheme.fonts.fontSizeHeadingSmallMobile) + XCTAssertTrue(inheritedTheme.fonts.fontSizeHeadingSmallMobile == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeHeadingSmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeHeadingSmallTablet, abstractTheme.fontSizeHeadingSmallTablet) - XCTAssertTrue(inheritedTheme.fontSizeHeadingSmallTablet == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeHeadingSmallTablet, abstractTheme.fonts.fontSizeHeadingSmallTablet) + XCTAssertTrue(inheritedTheme.fonts.fontSizeHeadingSmallTablet == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeBodyLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeBodyLargeMobile, abstractTheme.fontSizeBodyLargeMobile) - XCTAssertTrue(inheritedTheme.fontSizeBodyLargeMobile == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeBodyLargeMobile, abstractTheme.fonts.fontSizeBodyLargeMobile) + XCTAssertTrue(inheritedTheme.fonts.fontSizeBodyLargeMobile == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeBodyLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeBodyLargeTablet, abstractTheme.fontSizeBodyLargeTablet) - XCTAssertTrue(inheritedTheme.fontSizeBodyLargeTablet == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeBodyLargeTablet, abstractTheme.fonts.fontSizeBodyLargeTablet) + XCTAssertTrue(inheritedTheme.fonts.fontSizeBodyLargeTablet == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeBodyMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeBodyMediumMobile, abstractTheme.fontSizeBodyMediumMobile) - XCTAssertTrue(inheritedTheme.fontSizeBodyMediumMobile == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeBodyMediumMobile, abstractTheme.fonts.fontSizeBodyMediumMobile) + XCTAssertTrue(inheritedTheme.fonts.fontSizeBodyMediumMobile == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeBodyMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeBodyMediumTablet, abstractTheme.fontSizeBodyMediumTablet) - XCTAssertTrue(inheritedTheme.fontSizeBodyMediumTablet == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeBodyMediumTablet, abstractTheme.fonts.fontSizeBodyMediumTablet) + XCTAssertTrue(inheritedTheme.fonts.fontSizeBodyMediumTablet == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeBodySmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeBodySmallMobile, abstractTheme.fontSizeBodySmallMobile) - XCTAssertTrue(inheritedTheme.fontSizeBodySmallMobile == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeBodySmallMobile, abstractTheme.fonts.fontSizeBodySmallMobile) + XCTAssertTrue(inheritedTheme.fonts.fontSizeBodySmallMobile == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontSizeBodySmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontSizeBodySmallTablet, abstractTheme.fontSizeBodySmallTablet) - XCTAssertTrue(inheritedTheme.fontSizeBodySmallTablet == MockTheme.mockThemeFontSizeRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontSizeBodySmallTablet, abstractTheme.fonts.fontSizeBodySmallTablet) + XCTAssertTrue(inheritedTheme.fonts.fontSizeBodySmallTablet == MockThemeFontSemanticTokensProvider.mockThemeFontSizeRawToken) } // MARK: - Semantic token - Typography - Font - Letter spacing func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingLabelLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingLabelLarge, abstractTheme.fontLetterSpacingLabelLarge) - XCTAssertTrue(inheritedTheme.fontLetterSpacingLabelLarge == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingLabelLarge, abstractTheme.fonts.fontLetterSpacingLabelLarge) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingLabelLarge == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingLabelXlarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingLabelXlarge, abstractTheme.fontLetterSpacingLabelXlarge) - XCTAssertTrue(inheritedTheme.fontLetterSpacingLabelXlarge == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingLabelXlarge, abstractTheme.fonts.fontLetterSpacingLabelXlarge) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingLabelXlarge == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingLabelMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingLabelMedium, abstractTheme.fontLetterSpacingLabelMedium) - XCTAssertTrue(inheritedTheme.fontLetterSpacingLabelMedium == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingLabelMedium, abstractTheme.fonts.fontLetterSpacingLabelMedium) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingLabelMedium == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingLabelSmall() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingLabelSmall, abstractTheme.fontLetterSpacingLabelSmall) - XCTAssertTrue(inheritedTheme.fontLetterSpacingLabelSmall == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingLabelSmall, abstractTheme.fonts.fontLetterSpacingLabelSmall) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingLabelSmall == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingCodeMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingCodeMedium, abstractTheme.fontLetterSpacingCodeMedium) - XCTAssertTrue(inheritedTheme.fontLetterSpacingCodeMedium == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingCodeMedium, abstractTheme.fonts.fontLetterSpacingCodeMedium) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingCodeMedium == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingDisplayLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingDisplayLargeMobile, abstractTheme.fontLetterSpacingDisplayLargeMobile) - XCTAssertTrue(inheritedTheme.fontLetterSpacingDisplayLargeMobile == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingDisplayLargeMobile, abstractTheme.fonts.fontLetterSpacingDisplayLargeMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingDisplayLargeMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingDisplayLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingDisplayLargeTablet, abstractTheme.fontLetterSpacingDisplayLargeTablet) - XCTAssertTrue(inheritedTheme.fontLetterSpacingDisplayLargeTablet == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingDisplayLargeTablet, abstractTheme.fonts.fontLetterSpacingDisplayLargeTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingDisplayLargeTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingDisplayMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingDisplayMediumMobile, abstractTheme.fontLetterSpacingDisplayMediumMobile) - XCTAssertTrue(inheritedTheme.fontLetterSpacingDisplayMediumMobile == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingDisplayMediumMobile, abstractTheme.fonts.fontLetterSpacingDisplayMediumMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingDisplayMediumMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingDisplayMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingDisplayMediumTablet, abstractTheme.fontLetterSpacingDisplayMediumTablet) - XCTAssertTrue(inheritedTheme.fontLetterSpacingDisplayMediumTablet == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingDisplayMediumTablet, abstractTheme.fonts.fontLetterSpacingDisplayMediumTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingDisplayMediumTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingDisplaySmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingDisplaySmallMobile, abstractTheme.fontLetterSpacingDisplaySmallMobile) - XCTAssertTrue(inheritedTheme.fontLetterSpacingDisplaySmallMobile == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingDisplaySmallMobile, abstractTheme.fonts.fontLetterSpacingDisplaySmallMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingDisplaySmallMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingDisplaySmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingDisplaySmallTablet, abstractTheme.fontLetterSpacingDisplaySmallTablet) - XCTAssertTrue(inheritedTheme.fontLetterSpacingDisplaySmallTablet == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingDisplaySmallTablet, abstractTheme.fonts.fontLetterSpacingDisplaySmallTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingDisplaySmallTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingHeadingLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingHeadingLargeMobile, abstractTheme.fontLetterSpacingHeadingLargeMobile) - XCTAssertTrue(inheritedTheme.fontLetterSpacingHeadingLargeMobile == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingHeadingLargeMobile, abstractTheme.fonts.fontLetterSpacingHeadingLargeMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingHeadingLargeMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingHeadingLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingHeadingLargeTablet, abstractTheme.fontLetterSpacingHeadingLargeTablet) - XCTAssertTrue(inheritedTheme.fontLetterSpacingHeadingLargeTablet == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingHeadingLargeTablet, abstractTheme.fonts.fontLetterSpacingHeadingLargeTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingHeadingLargeTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingHeadingMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingHeadingMediumMobile, abstractTheme.fontLetterSpacingHeadingMediumMobile) - XCTAssertTrue(inheritedTheme.fontLetterSpacingHeadingMediumMobile == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingHeadingMediumMobile, abstractTheme.fonts.fontLetterSpacingHeadingMediumMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingHeadingMediumMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingHeadingMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingHeadingMediumTablet, abstractTheme.fontLetterSpacingHeadingMediumTablet) - XCTAssertTrue(inheritedTheme.fontLetterSpacingHeadingMediumTablet == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingHeadingMediumTablet, abstractTheme.fonts.fontLetterSpacingHeadingMediumTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingHeadingMediumTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingHeadingSmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingHeadingSmallMobile, abstractTheme.fontLetterSpacingHeadingSmallMobile) - XCTAssertTrue(inheritedTheme.fontLetterSpacingHeadingSmallMobile == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingHeadingSmallMobile, abstractTheme.fonts.fontLetterSpacingHeadingSmallMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingHeadingSmallMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingHeadingSmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingHeadingSmallTablet, abstractTheme.fontLetterSpacingHeadingSmallTablet) - XCTAssertTrue(inheritedTheme.fontLetterSpacingHeadingSmallTablet == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingHeadingSmallTablet, abstractTheme.fonts.fontLetterSpacingHeadingSmallTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingHeadingSmallTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingBodyLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingBodyLargeMobile, abstractTheme.fontLetterSpacingBodyLargeMobile) - XCTAssertTrue(inheritedTheme.fontLetterSpacingBodyLargeMobile == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingBodyLargeMobile, abstractTheme.fonts.fontLetterSpacingBodyLargeMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingBodyLargeMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingBodyLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingBodyLargeTablet, abstractTheme.fontLetterSpacingBodyLargeTablet) - XCTAssertTrue(inheritedTheme.fontLetterSpacingBodyLargeTablet == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingBodyLargeTablet, abstractTheme.fonts.fontLetterSpacingBodyLargeTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingBodyLargeTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingBodyMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingBodyMediumMobile, abstractTheme.fontLetterSpacingBodyMediumMobile) - XCTAssertTrue(inheritedTheme.fontLetterSpacingBodyMediumMobile == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingBodyMediumMobile, abstractTheme.fonts.fontLetterSpacingBodyMediumMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingBodyMediumMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingBodyMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingBodyMediumTablet, abstractTheme.fontLetterSpacingBodyMediumTablet) - XCTAssertTrue(inheritedTheme.fontLetterSpacingBodyMediumTablet == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingBodyMediumTablet, abstractTheme.fonts.fontLetterSpacingBodyMediumTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingBodyMediumTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingBodySmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingBodySmallMobile, abstractTheme.fontLetterSpacingBodySmallMobile) - XCTAssertTrue(inheritedTheme.fontLetterSpacingBodySmallMobile == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingBodySmallMobile, abstractTheme.fonts.fontLetterSpacingBodySmallMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingBodySmallMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLetterSpacingBodySmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLetterSpacingBodySmallTablet, abstractTheme.fontLetterSpacingBodySmallTablet) - XCTAssertTrue(inheritedTheme.fontLetterSpacingBodySmallTablet == MockTheme.mockThemeFontLetterSpacingRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLetterSpacingBodySmallTablet, abstractTheme.fonts.fontLetterSpacingBodySmallTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLetterSpacingBodySmallTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLetterSpacingRawToken) } // MARK: - Semantic token - Typography - Font - Line height func testInheritedThemeCanOverrideSemanticTokenFontLineHeightLabelXlarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightLabelXlarge, abstractTheme.fontLineHeightLabelXlarge) - XCTAssertTrue(inheritedTheme.fontLineHeightLabelXlarge == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightLabelXlarge, abstractTheme.fonts.fontLineHeightLabelXlarge) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightLabelXlarge == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightLabelLarge() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightLabelLarge, abstractTheme.fontLineHeightLabelLarge) - XCTAssertTrue(inheritedTheme.fontLineHeightLabelLarge == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightLabelLarge, abstractTheme.fonts.fontLineHeightLabelLarge) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightLabelLarge == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightLabelMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightLabelMedium, abstractTheme.fontLineHeightLabelMedium) - XCTAssertTrue(inheritedTheme.fontLineHeightLabelMedium == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightLabelMedium, abstractTheme.fonts.fontLineHeightLabelMedium) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightLabelMedium == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightLabelSmall() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightLabelSmall, abstractTheme.fontLineHeightLabelSmall) - XCTAssertTrue(inheritedTheme.fontLineHeightLabelSmall == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightLabelSmall, abstractTheme.fonts.fontLineHeightLabelSmall) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightLabelSmall == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightCodeMedium() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightCodeMedium, abstractTheme.fontLineHeightCodeMedium) - XCTAssertTrue(inheritedTheme.fontLineHeightCodeMedium == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightCodeMedium, abstractTheme.fonts.fontLineHeightCodeMedium) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightCodeMedium == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightDisplayLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightDisplayLargeMobile, abstractTheme.fontLineHeightDisplayLargeMobile) - XCTAssertTrue(inheritedTheme.fontLineHeightDisplayLargeMobile == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightDisplayLargeMobile, abstractTheme.fonts.fontLineHeightDisplayLargeMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightDisplayLargeMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightDisplayLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightDisplayLargeTablet, abstractTheme.fontLineHeightDisplayLargeTablet) - XCTAssertTrue(inheritedTheme.fontLineHeightDisplayLargeTablet == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightDisplayLargeTablet, abstractTheme.fonts.fontLineHeightDisplayLargeTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightDisplayLargeTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightDisplayMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightDisplayMediumMobile, abstractTheme.fontLineHeightDisplayMediumMobile) - XCTAssertTrue(inheritedTheme.fontLineHeightDisplayMediumMobile == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightDisplayMediumMobile, abstractTheme.fonts.fontLineHeightDisplayMediumMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightDisplayMediumMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightDisplayMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightDisplayMediumTablet, abstractTheme.fontLineHeightDisplayMediumTablet) - XCTAssertTrue(inheritedTheme.fontLineHeightDisplayMediumTablet == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightDisplayMediumTablet, abstractTheme.fonts.fontLineHeightDisplayMediumTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightDisplayMediumTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightDisplaySmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightDisplaySmallMobile, abstractTheme.fontLineHeightDisplaySmallMobile) - XCTAssertTrue(inheritedTheme.fontLineHeightDisplaySmallMobile == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightDisplaySmallMobile, abstractTheme.fonts.fontLineHeightDisplaySmallMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightDisplaySmallMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightDisplaySmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightDisplaySmallTablet, abstractTheme.fontLineHeightDisplaySmallTablet) - XCTAssertTrue(inheritedTheme.fontLineHeightDisplaySmallTablet == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightDisplaySmallTablet, abstractTheme.fonts.fontLineHeightDisplaySmallTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightDisplaySmallTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightHeadingLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightHeadingLargeMobile, abstractTheme.fontLineHeightHeadingLargeMobile) - XCTAssertTrue(inheritedTheme.fontLineHeightHeadingLargeMobile == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightHeadingLargeMobile, abstractTheme.fonts.fontLineHeightHeadingLargeMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightHeadingLargeMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightHeadingLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightHeadingLargeTablet, abstractTheme.fontLineHeightHeadingLargeTablet) - XCTAssertTrue(inheritedTheme.fontLineHeightHeadingLargeTablet == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightHeadingLargeTablet, abstractTheme.fonts.fontLineHeightHeadingLargeTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightHeadingLargeTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightHeadingMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightHeadingMediumMobile, abstractTheme.fontLineHeightHeadingMediumMobile) - XCTAssertTrue(inheritedTheme.fontLineHeightHeadingMediumMobile == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightHeadingMediumMobile, abstractTheme.fonts.fontLineHeightHeadingMediumMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightHeadingMediumMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightHeadingMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightHeadingMediumTablet, abstractTheme.fontLineHeightHeadingMediumTablet) - XCTAssertTrue(inheritedTheme.fontLineHeightHeadingMediumTablet == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightHeadingMediumTablet, abstractTheme.fonts.fontLineHeightHeadingMediumTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightHeadingMediumTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightHeadingSmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightHeadingSmallMobile, abstractTheme.fontLineHeightHeadingSmallMobile) - XCTAssertTrue(inheritedTheme.fontLineHeightHeadingSmallMobile == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightHeadingSmallMobile, abstractTheme.fonts.fontLineHeightHeadingSmallMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightHeadingSmallMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightHeadingSmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightHeadingSmallTablet, abstractTheme.fontLineHeightHeadingSmallTablet) - XCTAssertTrue(inheritedTheme.fontLineHeightHeadingSmallTablet == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightHeadingSmallTablet, abstractTheme.fonts.fontLineHeightHeadingSmallTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightHeadingSmallTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightBodyLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightBodyLargeMobile, abstractTheme.fontLineHeightBodyLargeMobile) - XCTAssertTrue(inheritedTheme.fontLineHeightBodyLargeMobile == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightBodyLargeMobile, abstractTheme.fonts.fontLineHeightBodyLargeMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightBodyLargeMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightBodyLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightBodyLargeTablet, abstractTheme.fontLineHeightBodyLargeTablet) - XCTAssertTrue(inheritedTheme.fontLineHeightBodyLargeTablet == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightBodyLargeTablet, abstractTheme.fonts.fontLineHeightBodyLargeTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightBodyLargeTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightBodyMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightBodyMediumMobile, abstractTheme.fontLineHeightBodyMediumMobile) - XCTAssertTrue(inheritedTheme.fontLineHeightBodyMediumMobile == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightBodyMediumMobile, abstractTheme.fonts.fontLineHeightBodyMediumMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightBodyMediumMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightBodyMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightBodyMediumTablet, abstractTheme.fontLineHeightBodyMediumTablet) - XCTAssertTrue(inheritedTheme.fontLineHeightBodyMediumTablet == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightBodyMediumTablet, abstractTheme.fonts.fontLineHeightBodyMediumTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightBodyMediumTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightBodySmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightBodySmallMobile, abstractTheme.fontLineHeightBodySmallMobile) - XCTAssertTrue(inheritedTheme.fontLineHeightBodySmallMobile == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightBodySmallMobile, abstractTheme.fonts.fontLineHeightBodySmallMobile) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightBodySmallMobile == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } func testInheritedThemeCanOverrideSemanticTokenFontLineHeightBodySmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.fontLineHeightBodySmallTablet, abstractTheme.fontLineHeightBodySmallTablet) - XCTAssertTrue(inheritedTheme.fontLineHeightBodySmallTablet == MockTheme.mockThemeFontLineHeightRawToken) + XCTAssertNotEqual(inheritedTheme.fonts.fontLineHeightBodySmallTablet, abstractTheme.fonts.fontLineHeightBodySmallTablet) + XCTAssertTrue(inheritedTheme.fonts.fontLineHeightBodySmallTablet == MockThemeFontSemanticTokensProvider.mockThemeFontLineHeightRawToken) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfGridSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfGridSemanticTokens.swift index 67fd56ad76..4f813b66af 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfGridSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfGridSemanticTokens.swift @@ -34,63 +34,63 @@ final class TestThemeOverrideOfGridSemanticTokens: XCTestCase { } func testInheritedThemeCanOverrideSemanticTokenGridIOSExtraCompactMinWidth() throws { - XCTAssertNotEqual(inheritedTheme.gridExtraCompactMinWidth, abstractTheme.gridExtraCompactMinWidth) - XCTAssertTrue(inheritedTheme.gridExtraCompactMinWidth == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridExtraCompactMinWidth, abstractTheme.grids.gridExtraCompactMinWidth) + XCTAssertTrue(inheritedTheme.grids.gridExtraCompactMinWidth == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } func testInheritedThemeCanOverrideSemanticTokenGridIOSExtraCompactMaxWidth() throws { - XCTAssertNotEqual(inheritedTheme.gridExtraCompactMaxWidth, abstractTheme.gridExtraCompactMaxWidth) - XCTAssertTrue(inheritedTheme.gridExtraCompactMaxWidth == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridExtraCompactMaxWidth, abstractTheme.grids.gridExtraCompactMaxWidth) + XCTAssertTrue(inheritedTheme.grids.gridExtraCompactMaxWidth == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } func testInheritedThemeCanOverrideSemanticTokenGridIOSExtraCompactMargin() throws { - XCTAssertNotEqual(inheritedTheme.gridExtraCompactMargin, abstractTheme.gridExtraCompactMargin) - XCTAssertTrue(inheritedTheme.gridExtraCompactMargin == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridExtraCompactMargin, abstractTheme.grids.gridExtraCompactMargin) + XCTAssertTrue(inheritedTheme.grids.gridExtraCompactMargin == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } func testInheritedThemeCanOverrideSemanticTokenGridIOSExtraCompactColumnGap() throws { - XCTAssertNotEqual(inheritedTheme.gridExtraCompactColumnGap, abstractTheme.gridExtraCompactColumnGap) - XCTAssertTrue(inheritedTheme.gridExtraCompactColumnGap == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridExtraCompactColumnGap, abstractTheme.grids.gridExtraCompactColumnGap) + XCTAssertTrue(inheritedTheme.grids.gridExtraCompactColumnGap == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } func testInheritedThemeCanOverrideSemanticTokenGridIOSCompactMinWidth() throws { - XCTAssertNotEqual(inheritedTheme.gridCompactMinWidth, abstractTheme.gridCompactMinWidth) - XCTAssertTrue(inheritedTheme.gridCompactMinWidth == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridCompactMinWidth, abstractTheme.grids.gridCompactMinWidth) + XCTAssertTrue(inheritedTheme.grids.gridCompactMinWidth == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } func testInheritedThemeCanOverrideSemanticTokenGridIOSCompactMaxWidth() throws { - XCTAssertNotEqual(inheritedTheme.gridCompactMaxWidth, abstractTheme.gridCompactMaxWidth) - XCTAssertTrue(inheritedTheme.gridCompactMaxWidth == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridCompactMaxWidth, abstractTheme.grids.gridCompactMaxWidth) + XCTAssertTrue(inheritedTheme.grids.gridCompactMaxWidth == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } func testInheritedThemeCanOverrideSemanticTokenGridIOSCompactMargin() throws { - XCTAssertNotEqual(inheritedTheme.gridCompactMargin, abstractTheme.gridCompactMargin) - XCTAssertTrue(inheritedTheme.gridCompactMargin == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridCompactMargin, abstractTheme.grids.gridCompactMargin) + XCTAssertTrue(inheritedTheme.grids.gridCompactMargin == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } func testInheritedThemeCanOverrideSemanticTokenGridIOSCompactColumnGap() throws { - XCTAssertNotEqual(inheritedTheme.gridCompactColumnGap, abstractTheme.gridCompactColumnGap) - XCTAssertTrue(inheritedTheme.gridCompactColumnGap == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridCompactColumnGap, abstractTheme.grids.gridCompactColumnGap) + XCTAssertTrue(inheritedTheme.grids.gridCompactColumnGap == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } func testInheritedThemeCanOverrideSemanticTokenGridIOSRegularMinWidth() throws { - XCTAssertNotEqual(inheritedTheme.gridRegularMinWidth, abstractTheme.gridRegularMinWidth) - XCTAssertTrue(inheritedTheme.gridRegularMinWidth == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridRegularMinWidth, abstractTheme.grids.gridRegularMinWidth) + XCTAssertTrue(inheritedTheme.grids.gridRegularMinWidth == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } func testInheritedThemeCanOverrideSemanticTokenGridIOSRegularMaxWidth() throws { - XCTAssertNotEqual(inheritedTheme.gridRegularMaxWidth, abstractTheme.gridRegularMaxWidth) - XCTAssertTrue(inheritedTheme.gridRegularMaxWidth == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridRegularMaxWidth, abstractTheme.grids.gridRegularMaxWidth) + XCTAssertTrue(inheritedTheme.grids.gridRegularMaxWidth == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } func testInheritedThemeCanOverrideSemanticTokenGridIOSRegularMargin() throws { - XCTAssertNotEqual(inheritedTheme.gridRegularMargin, abstractTheme.gridRegularMargin) - XCTAssertTrue(inheritedTheme.gridRegularMargin == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridRegularMargin, abstractTheme.grids.gridRegularMargin) + XCTAssertTrue(inheritedTheme.grids.gridRegularMargin == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } func testInheritedThemeCanOverrideSemanticTokenGridIOSRegularColumnGap() throws { - XCTAssertNotEqual(inheritedTheme.gridRegularColumnGap, abstractTheme.gridRegularColumnGap) - XCTAssertTrue(inheritedTheme.gridRegularColumnGap == MockTheme.mockThemeGridRawToken) + XCTAssertNotEqual(inheritedTheme.grids.gridRegularColumnGap, abstractTheme.grids.gridRegularColumnGap) + XCTAssertTrue(inheritedTheme.grids.gridRegularColumnGap == MockThemeGridSemanticTokensProvider.mockThemeGridRawToken) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfOpacitySemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfOpacitySemanticTokens.swift index 8c5ce63e10..37aea275d6 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfOpacitySemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfOpacitySemanticTokens.swift @@ -34,33 +34,33 @@ final class TestThemeOverrideOfOpacitySemanticTokens: XCTestCase { } func testInheritedThemeCanOverrideSemanticTokenOpacityInvisible() throws { - XCTAssertNotEqual(inheritedTheme.opacityInvisible, abstractTheme.opacityInvisible) - XCTAssertTrue(inheritedTheme.opacityInvisible == MockTheme.mockThemeOpacityRawToken) + XCTAssertNotEqual(inheritedTheme.opacities.opacityInvisible, abstractTheme.opacities.opacityInvisible) + XCTAssertTrue(inheritedTheme.opacities.opacityInvisible == MockThemeOpacitySemanticTokensProvider.mockThemeOpacityRawToken) } func testInheritedThemeCanOverrideSemanticTokenOpacityWeaker() throws { - XCTAssertNotEqual(inheritedTheme.opacityWeaker, abstractTheme.opacityWeaker) - XCTAssertTrue(inheritedTheme.opacityWeaker == MockTheme.mockThemeOpacityRawToken) + XCTAssertNotEqual(inheritedTheme.opacities.opacityWeaker, abstractTheme.opacities.opacityWeaker) + XCTAssertTrue(inheritedTheme.opacities.opacityWeaker == MockThemeOpacitySemanticTokensProvider.mockThemeOpacityRawToken) } func testInheritedThemeCanOverrideSemanticTokenOpacityWeak() throws { - XCTAssertNotEqual(inheritedTheme.opacityWeak, abstractTheme.opacityWeak) - XCTAssertTrue(inheritedTheme.opacityWeak == MockTheme.mockThemeOpacityRawToken) + XCTAssertNotEqual(inheritedTheme.opacities.opacityWeak, abstractTheme.opacities.opacityWeak) + XCTAssertTrue(inheritedTheme.opacities.opacityWeak == MockThemeOpacitySemanticTokensProvider.mockThemeOpacityRawToken) } func testInheritedThemeCanOverrideSemanticTokenOpacityMedium() throws { - XCTAssertNotEqual(inheritedTheme.opacityMedium, abstractTheme.opacityMedium) - XCTAssertTrue(inheritedTheme.opacityMedium == MockTheme.mockThemeOpacityRawToken) + XCTAssertNotEqual(inheritedTheme.opacities.opacityMedium, abstractTheme.opacities.opacityMedium) + XCTAssertTrue(inheritedTheme.opacities.opacityMedium == MockThemeOpacitySemanticTokensProvider.mockThemeOpacityRawToken) } func testInheritedThemeCanOverrideSemanticTokenOpacityEmphasized() throws { - XCTAssertNotEqual(inheritedTheme.opacityStrong, abstractTheme.opacityStrong) - XCTAssertTrue(inheritedTheme.opacityStrong == MockTheme.mockThemeOpacityRawToken) + XCTAssertNotEqual(inheritedTheme.opacities.opacityStrong, abstractTheme.opacities.opacityStrong) + XCTAssertTrue(inheritedTheme.opacities.opacityStrong == MockThemeOpacitySemanticTokensProvider.mockThemeOpacityRawToken) } func testInheritedThemeCanOverrideSemanticTokenOpacityOpaque() throws { - XCTAssertNotEqual(inheritedTheme.opacityOpaque, abstractTheme.opacityOpaque) - XCTAssertTrue(inheritedTheme.opacityOpaque == MockTheme.mockThemeOpacityRawToken) + XCTAssertNotEqual(inheritedTheme.opacities.opacityOpaque, abstractTheme.opacities.opacityOpaque) + XCTAssertTrue(inheritedTheme.opacities.opacityOpaque == MockThemeOpacitySemanticTokensProvider.mockThemeOpacityRawToken) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizeMultipleSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizeMultipleSemanticTokens.swift index 71c84060ea..07e51f724c 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizeMultipleSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizeMultipleSemanticTokens.swift @@ -37,160 +37,160 @@ final class TestThemeOverrideOfSizeMultipleSemanticTokens: XCTestCase { // MARK: - Semantic token - Sizing - Icon with typography func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingXlargeSizeSm() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingXlargeSizeSm, abstractTheme.sizeIconWithHeadingXlargeSizeSm) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingXlargeSizeSm == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeSm, abstractTheme.sizes.sizeIconWithHeadingXlargeSizeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeSm == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingXlargeSizeMd() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingXlargeSizeMd, abstractTheme.sizeIconWithHeadingXlargeSizeMd) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingXlargeSizeMd == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeMd, abstractTheme.sizes.sizeIconWithHeadingXlargeSizeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeMd == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingXlargeSizeLg() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingXlargeSizeLg, abstractTheme.sizeIconWithHeadingXlargeSizeLg) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingXlargeSizeLg == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeLg, abstractTheme.sizes.sizeIconWithHeadingXlargeSizeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeLg == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingLargeShort() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingLargeSizeSm, abstractTheme.sizeIconWithHeadingLargeSizeSm) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingLargeSizeSm == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeSm, abstractTheme.sizes.sizeIconWithHeadingLargeSizeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeSm == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingLargeMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingLargeSizeMd, abstractTheme.sizeIconWithHeadingLargeSizeMd) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingLargeSizeMd == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeMd, abstractTheme.sizes.sizeIconWithHeadingLargeSizeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeMd == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingLargeTall() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingLargeSizeLg, abstractTheme.sizeIconWithHeadingLargeSizeLg) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingLargeSizeLg == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeLg, abstractTheme.sizes.sizeIconWithHeadingLargeSizeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeLg == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingMediumShort() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingMediumSizeSm, abstractTheme.sizeIconWithHeadingMediumSizeSm) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingMediumSizeSm == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeSm, abstractTheme.sizes.sizeIconWithHeadingMediumSizeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeSm == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizIconWithHeadingMediumMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingMediumSizeMd, abstractTheme.sizeIconWithHeadingMediumSizeMd) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingMediumSizeMd == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeMd, abstractTheme.sizes.sizeIconWithHeadingMediumSizeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeMd == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingMediumTall() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingMediumSizeLg, abstractTheme.sizeIconWithHeadingMediumSizeLg) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingMediumSizeLg == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeLg, abstractTheme.sizes.sizeIconWithHeadingMediumSizeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeLg == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingSmallShort() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingSmallSizeSm, abstractTheme.sizeIconWithHeadingSmallSizeSm) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingSmallSizeSm == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeSm, abstractTheme.sizes.sizeIconWithHeadingSmallSizeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeSm == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingSmallMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingSmallSizeMd, abstractTheme.sizeIconWithHeadingSmallSizeMd) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingSmallSizeMd == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeMd, abstractTheme.sizes.sizeIconWithHeadingSmallSizeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeMd == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingSmallTall() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingSmallSizeLg, abstractTheme.sizeIconWithHeadingSmallSizeLg) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingSmallSizeLg == MockTheme.mockThemeSizeCompositeToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeLg, abstractTheme.sizes.sizeIconWithHeadingSmallSizeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeLg == MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyLargeShort() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyLargeSizeSm, abstractTheme.sizeIconWithBodyLargeSizeSm) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyLargeSizeSm.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyLargeSizeSm, abstractTheme.sizes.sizeIconWithBodyLargeSizeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyLargeSizeSm.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyLargeMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyLargeSizeMd, abstractTheme.sizeIconWithBodyLargeSizeMd) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyLargeSizeMd.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyLargeSizeMd, abstractTheme.sizes.sizeIconWithBodyLargeSizeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyLargeSizeMd.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyLargeTall() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyLargeSizeLg, abstractTheme.sizeIconWithBodyLargeSizeLg) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyLargeSizeLg.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyLargeSizeLg, abstractTheme.sizes.sizeIconWithBodyLargeSizeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyLargeSizeLg.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyMediumShort() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyMediumSizeSm, abstractTheme.sizeIconWithBodyMediumSizeSm) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyMediumSizeSm.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyMediumSizeSm, abstractTheme.sizes.sizeIconWithBodyMediumSizeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyMediumSizeSm.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyMediumMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyMediumSizeMd, abstractTheme.sizeIconWithBodyMediumSizeMd) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyMediumSizeMd.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyMediumSizeMd, abstractTheme.sizes.sizeIconWithBodyMediumSizeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyMediumSizeMd.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyMediumTall() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyMediumSizeLg, abstractTheme.sizeIconWithBodyMediumSizeLg) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyMediumSizeLg.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyMediumSizeLg, abstractTheme.sizes.sizeIconWithBodyMediumSizeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyMediumSizeLg.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodySmallShort() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodySmallSizeSm, abstractTheme.sizeIconWithBodySmallSizeSm) - XCTAssertTrue(inheritedTheme.sizeIconWithBodySmallSizeSm.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodySmallSizeSm, abstractTheme.sizes.sizeIconWithBodySmallSizeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodySmallSizeSm.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodySmallMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodySmallSizeMd, abstractTheme.sizeIconWithBodySmallSizeMd) - XCTAssertTrue(inheritedTheme.sizeIconWithBodySmallSizeMd.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodySmallSizeMd, abstractTheme.sizes.sizeIconWithBodySmallSizeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodySmallSizeMd.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodySmallTall() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodySmallSizeLg, abstractTheme.sizeIconWithBodySmallSizeLg) - XCTAssertTrue(inheritedTheme.sizeIconWithBodySmallSizeLg.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodySmallSizeLg, abstractTheme.sizes.sizeIconWithBodySmallSizeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodySmallSizeLg.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } // MARK: - Semantic token - Sizing - Max width func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeDisplayLarge() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeDisplayLarge, abstractTheme.sizeMaxWidthTypeDisplayLarge) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeDisplayLarge.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeDisplayLarge, abstractTheme.sizes.sizeMaxWidthTypeDisplayLarge) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeDisplayLarge.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeDisplayMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeDisplayMedium, abstractTheme.sizeMaxWidthTypeDisplayMedium) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeDisplayMedium.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeDisplayMedium, abstractTheme.sizes.sizeMaxWidthTypeDisplayMedium) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeDisplayMedium.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeDisplaySmall() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeDisplaySmall, abstractTheme.sizeMaxWidthTypeDisplaySmall) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeDisplaySmall.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeDisplaySmall, abstractTheme.sizes.sizeMaxWidthTypeDisplaySmall) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeDisplaySmall.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingXlargeSize() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingXlarge, abstractTheme.sizeMaxWidthTypeHeadingXlarge) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingXlarge.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingXlarge, abstractTheme.sizes.sizeMaxWidthTypeHeadingXlarge) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingXlarge.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingLarge() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingLarge, abstractTheme.sizeMaxWidthTypeHeadingLarge) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingLarge.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingLarge, abstractTheme.sizes.sizeMaxWidthTypeHeadingLarge) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingLarge.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingMedium, abstractTheme.sizeMaxWidthTypeHeadingMedium) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingMedium.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingMedium, abstractTheme.sizes.sizeMaxWidthTypeHeadingMedium) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingMedium.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingSmall() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingSmall, abstractTheme.sizeMaxWidthTypeHeadingSmall) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingSmall.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingSmall, abstractTheme.sizes.sizeMaxWidthTypeHeadingSmall) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingSmall.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeBodyLarge() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeBodyLarge, abstractTheme.sizeMaxWidthTypeBodyLarge) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeBodyLarge.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeBodyLarge, abstractTheme.sizes.sizeMaxWidthTypeBodyLarge) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeBodyLarge.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeBodyMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeBodyMedium, abstractTheme.sizeMaxWidthTypeBodyMedium) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeBodyMedium.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeBodyMedium, abstractTheme.sizes.sizeMaxWidthTypeBodyMedium) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeBodyMedium.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeBodySmall() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeBodySmall, abstractTheme.sizeMaxWidthTypeBodySmall) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeBodySmall.isEqual(MockTheme.mockThemeSizeCompositeToken)) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeBodySmall, abstractTheme.sizes.sizeMaxWidthTypeBodySmall) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeBodySmall.isEqual(MockThemeSizeSemanticTokensProvider.mockThemeSizeCompositeToken)) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizeSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizeSemanticTokens.swift index 6c4bb9d02d..76cda99b37 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizeSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSizeSemanticTokens.swift @@ -37,422 +37,422 @@ final class TestThemeOverrideOfSizeSemanticTokens: XCTestCase { // MARK: - Semantic token - Sizing - Icon with typography func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingXlargeSizeSmMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingXlargeSizeSmMobile, abstractTheme.sizeIconWithHeadingXlargeSizeSmMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingXlargeSizeSmMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeSmMobile, abstractTheme.sizes.sizeIconWithHeadingXlargeSizeSmMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeSmMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingXlargeSizeSmTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingXlargeSizeSmTablet, abstractTheme.sizeIconWithHeadingXlargeSizeSmTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingXlargeSizeSmTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeSmTablet, abstractTheme.sizes.sizeIconWithHeadingXlargeSizeSmTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeSmTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingXlargeSizeMdMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingXlargeSizeMdMobile, abstractTheme.sizeIconWithHeadingXlargeSizeMdMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingXlargeSizeMdMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeMdMobile, abstractTheme.sizes.sizeIconWithHeadingXlargeSizeMdMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeMdMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingXlargeSizeMdTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingXlargeSizeMdTablet, abstractTheme.sizeIconWithHeadingXlargeSizeMdTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingXlargeSizeMdTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeMdTablet, abstractTheme.sizes.sizeIconWithHeadingXlargeSizeMdTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeMdTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingXlargeSizeLgMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingXlargeSizeLgMobile, abstractTheme.sizeIconWithHeadingXlargeSizeLgMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingXlargeSizeLgMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeLgMobile, abstractTheme.sizes.sizeIconWithHeadingXlargeSizeLgMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeLgMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingXlargeSizeLgTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingXlargeSizeLgTablet, abstractTheme.sizeIconWithHeadingXlargeSizeLgTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingXlargeSizeLgTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeLgTablet, abstractTheme.sizes.sizeIconWithHeadingXlargeSizeLgTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingXlargeSizeLgTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingLargeSizeSmMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingLargeSizeSmMobile, abstractTheme.sizeIconWithHeadingLargeSizeSmMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingLargeSizeSmMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeSmMobile, abstractTheme.sizes.sizeIconWithHeadingLargeSizeSmMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeSmMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingLargeShortTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingLargeSizeSmTablet, abstractTheme.sizeIconWithHeadingLargeSizeSmTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingLargeSizeSmTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeSmTablet, abstractTheme.sizes.sizeIconWithHeadingLargeSizeSmTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeSmTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingLargeMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingLargeSizeMdMobile, abstractTheme.sizeIconWithHeadingLargeSizeMdMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingLargeSizeMdMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeMdMobile, abstractTheme.sizes.sizeIconWithHeadingLargeSizeMdMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeMdMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingLargeMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingLargeSizeMdTablet, abstractTheme.sizeIconWithHeadingLargeSizeMdTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingLargeSizeMdTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeMdTablet, abstractTheme.sizes.sizeIconWithHeadingLargeSizeMdTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeMdTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingLargeTallMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingLargeSizeLgMobile, abstractTheme.sizeIconWithHeadingLargeSizeLgMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingLargeSizeLgMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeLgMobile, abstractTheme.sizes.sizeIconWithHeadingLargeSizeLgMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeLgMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingLargeTallTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingLargeSizeLgTablet, abstractTheme.sizeIconWithHeadingLargeSizeLgTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingLargeSizeLgTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeLgTablet, abstractTheme.sizes.sizeIconWithHeadingLargeSizeLgTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingLargeSizeLgTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingMediumShortMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingMediumSizeSmMobile, abstractTheme.sizeIconWithHeadingMediumSizeSmMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingMediumSizeSmMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeSmMobile, abstractTheme.sizes.sizeIconWithHeadingMediumSizeSmMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeSmMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingMediumShortTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingMediumSizeSmTablet, abstractTheme.sizeIconWithHeadingMediumSizeSmTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingMediumSizeSmTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeSmTablet, abstractTheme.sizes.sizeIconWithHeadingMediumSizeSmTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeSmTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingMediumMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingMediumSizeMdMobile, abstractTheme.sizeIconWithHeadingMediumSizeMdMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingMediumSizeMdMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeMdMobile, abstractTheme.sizes.sizeIconWithHeadingMediumSizeMdMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeMdMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingMediumMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingMediumSizeMdTablet, abstractTheme.sizeIconWithHeadingMediumSizeMdTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingMediumSizeMdTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeMdTablet, abstractTheme.sizes.sizeIconWithHeadingMediumSizeMdTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeMdTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingMediumSizeLgMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingMediumSizeLgMobile, abstractTheme.sizeIconWithHeadingMediumSizeLgMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingMediumSizeLgMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeLgMobile, abstractTheme.sizes.sizeIconWithHeadingMediumSizeLgMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeLgMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingMediumSizeLgTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingMediumSizeLgTablet, abstractTheme.sizeIconWithHeadingMediumSizeLgTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingMediumSizeLgTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeLgTablet, abstractTheme.sizes.sizeIconWithHeadingMediumSizeLgTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingMediumSizeLgTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingSmallSizeSmMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingSmallSizeSmMobile, abstractTheme.sizeIconWithHeadingSmallSizeSmMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingSmallSizeSmMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeSmMobile, abstractTheme.sizes.sizeIconWithHeadingSmallSizeSmMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeSmMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingSmallShortTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingSmallSizeSmTablet, abstractTheme.sizeIconWithHeadingSmallSizeSmTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingSmallSizeSmTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeSmTablet, abstractTheme.sizes.sizeIconWithHeadingSmallSizeSmTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeSmTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingSmallSizeMdMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingSmallSizeMdMobile, abstractTheme.sizeIconWithHeadingSmallSizeMdMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingSmallSizeMdMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeMdMobile, abstractTheme.sizes.sizeIconWithHeadingSmallSizeMdMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeMdMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingSmallMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingSmallSizeMdTablet, abstractTheme.sizeIconWithHeadingSmallSizeMdTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingSmallSizeMdTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeMdTablet, abstractTheme.sizes.sizeIconWithHeadingSmallSizeMdTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeMdTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingSmallSizeLgMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingSmallSizeLgMobile, abstractTheme.sizeIconWithHeadingSmallSizeLgMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingSmallSizeLgMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeLgMobile, abstractTheme.sizes.sizeIconWithHeadingSmallSizeLgMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeLgMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithHeadingSmallTallTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithHeadingSmallSizeLgTablet, abstractTheme.sizeIconWithHeadingSmallSizeLgTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithHeadingSmallSizeLgTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeLgTablet, abstractTheme.sizes.sizeIconWithHeadingSmallSizeLgTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithHeadingSmallSizeLgTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyLargeSizeSmMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyLargeSizeSmMobile, abstractTheme.sizeIconWithBodyLargeSizeSmMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyLargeSizeSmMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyLargeSizeSmMobile, abstractTheme.sizes.sizeIconWithBodyLargeSizeSmMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyLargeSizeSmMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyLargeShortTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyLargeSizeSmTablet, abstractTheme.sizeIconWithBodyLargeSizeSmTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyLargeSizeSmTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyLargeSizeSmTablet, abstractTheme.sizes.sizeIconWithBodyLargeSizeSmTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyLargeSizeSmTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyLargeMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyLargeSizeMdMobile, abstractTheme.sizeIconWithBodyLargeSizeMdMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyLargeSizeMdMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyLargeSizeMdMobile, abstractTheme.sizes.sizeIconWithBodyLargeSizeMdMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyLargeSizeMdMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyLargeMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyLargeSizeMdTablet, abstractTheme.sizeIconWithBodyLargeSizeMdTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyLargeSizeMdTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyLargeSizeMdTablet, abstractTheme.sizes.sizeIconWithBodyLargeSizeMdTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyLargeSizeMdTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyLargeTallMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyLargeSizeLgMobile, abstractTheme.sizeIconWithBodyLargeSizeLgMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyLargeSizeLgMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyLargeSizeLgMobile, abstractTheme.sizes.sizeIconWithBodyLargeSizeLgMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyLargeSizeLgMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyLargeTallTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyLargeSizeLgTablet, abstractTheme.sizeIconWithBodyLargeSizeLgTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyLargeSizeLgTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyLargeSizeLgTablet, abstractTheme.sizes.sizeIconWithBodyLargeSizeLgTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyLargeSizeLgTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyMediumShortMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyMediumSizeSmMobile, abstractTheme.sizeIconWithBodyMediumSizeSmMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyMediumSizeSmMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyMediumSizeSmMobile, abstractTheme.sizes.sizeIconWithBodyMediumSizeSmMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyMediumSizeSmMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyMediumShortTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyMediumSizeSmTablet, abstractTheme.sizeIconWithBodyMediumSizeSmTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyMediumSizeSmTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyMediumSizeSmTablet, abstractTheme.sizes.sizeIconWithBodyMediumSizeSmTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyMediumSizeSmTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyMediumMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyMediumSizeMdMobile, abstractTheme.sizeIconWithBodyMediumSizeMdMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyMediumSizeMdMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyMediumSizeMdMobile, abstractTheme.sizes.sizeIconWithBodyMediumSizeMdMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyMediumSizeMdMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyMediumMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyMediumSizeMdTablet, abstractTheme.sizeIconWithBodyMediumSizeMdTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyMediumSizeMdTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyMediumSizeMdTablet, abstractTheme.sizes.sizeIconWithBodyMediumSizeMdTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyMediumSizeMdTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyMediumSizeLgMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyMediumSizeLgMobile, abstractTheme.sizeIconWithBodyMediumSizeLgMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyMediumSizeLgMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyMediumSizeLgMobile, abstractTheme.sizes.sizeIconWithBodyMediumSizeLgMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyMediumSizeLgMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodyMediumSizeLgTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodyMediumSizeLgTablet, abstractTheme.sizeIconWithBodyMediumSizeLgTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithBodyMediumSizeLgTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodyMediumSizeLgTablet, abstractTheme.sizes.sizeIconWithBodyMediumSizeLgTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodyMediumSizeLgTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodySmallSizeSmMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodySmallSizeSmMobile, abstractTheme.sizeIconWithBodySmallSizeSmMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithBodySmallSizeSmMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodySmallSizeSmMobile, abstractTheme.sizes.sizeIconWithBodySmallSizeSmMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodySmallSizeSmMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodySmallShortTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodySmallSizeSmTablet, abstractTheme.sizeIconWithBodySmallSizeSmTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithBodySmallSizeSmTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodySmallSizeSmTablet, abstractTheme.sizes.sizeIconWithBodySmallSizeSmTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodySmallSizeSmTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodySmallSizeMdMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodySmallSizeMdMobile, abstractTheme.sizeIconWithBodySmallSizeMdMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithBodySmallSizeMdMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodySmallSizeMdMobile, abstractTheme.sizes.sizeIconWithBodySmallSizeMdMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodySmallSizeMdMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodySmallMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodySmallSizeMdTablet, abstractTheme.sizeIconWithBodySmallSizeMdTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithBodySmallSizeMdTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodySmallSizeMdTablet, abstractTheme.sizes.sizeIconWithBodySmallSizeMdTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodySmallSizeMdTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodySmallSizeLgMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodySmallSizeLgMobile, abstractTheme.sizeIconWithBodySmallSizeLgMobile) - XCTAssertTrue(inheritedTheme.sizeIconWithBodySmallSizeLgMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodySmallSizeLgMobile, abstractTheme.sizes.sizeIconWithBodySmallSizeLgMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodySmallSizeLgMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconWithBodySmallTallTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithBodySmallSizeLgTablet, abstractTheme.sizeIconWithBodySmallSizeLgTablet) - XCTAssertTrue(inheritedTheme.sizeIconWithBodySmallSizeLgTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithBodySmallSizeLgTablet, abstractTheme.sizes.sizeIconWithBodySmallSizeLgTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithBodySmallSizeLgTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelXlargeSizeSm() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelXlargeSizeSm, abstractTheme.sizeIconWithLabelXlargeSizeSm) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelXlargeSizeSm == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelXlargeSizeSm, abstractTheme.sizes.sizeIconWithLabelXlargeSizeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelXlargeSizeSm == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelXlargeSizeMd() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelXlargeSizeMd, abstractTheme.sizeIconWithLabelXlargeSizeMd) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelXlargeSizeMd == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelXlargeSizeMd, abstractTheme.sizes.sizeIconWithLabelXlargeSizeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelXlargeSizeMd == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelXlargeSizeLg() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelXlargeSizeLg, abstractTheme.sizeIconWithLabelXlargeSizeLg) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelXlargeSizeLg == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelXlargeSizeLg, abstractTheme.sizes.sizeIconWithLabelXlargeSizeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelXlargeSizeLg == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelSizeXs() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelLargeSizeXs, abstractTheme.sizeIconWithLabelLargeSizeXs) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelLargeSizeXs == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelLargeSizeXs, abstractTheme.sizes.sizeIconWithLabelLargeSizeXs) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelLargeSizeXs == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabeSizeSm() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelLargeSizeSm, abstractTheme.sizeIconWithLabelLargeSizeSm) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelLargeSizeSm == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelLargeSizeSm, abstractTheme.sizes.sizeIconWithLabelLargeSizeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelLargeSizeSm == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelSizeMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelLargeSizeMd, abstractTheme.sizeIconWithLabelLargeSizeMd) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelLargeSizeMd == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelLargeSizeMd, abstractTheme.sizes.sizeIconWithLabelLargeSizeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelLargeSizeMd == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelSizeLg() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelLargeSizeLg, abstractTheme.sizeIconWithLabelLargeSizeLg) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelLargeSizeLg == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelLargeSizeLg, abstractTheme.sizes.sizeIconWithLabelLargeSizeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelLargeSizeLg == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelSizeXl() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelLargeSizeXl, abstractTheme.sizeIconWithLabelLargeSizeXl) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelLargeSizeXl == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelLargeSizeXl, abstractTheme.sizes.sizeIconWithLabelLargeSizeXl) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelLargeSizeXl == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelMediumSizeSm() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelMediumSizeSm, abstractTheme.sizeIconWithLabelMediumSizeSm) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelMediumSizeSm == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelMediumSizeSm, abstractTheme.sizes.sizeIconWithLabelMediumSizeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelMediumSizeSm == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelMediumSizeMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelMediumSizeMd, abstractTheme.sizeIconWithLabelMediumSizeMd) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelMediumSizeMd == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelMediumSizeMd, abstractTheme.sizes.sizeIconWithLabelMediumSizeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelMediumSizeMd == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelMediumSizeLg() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelMediumSizeLg, abstractTheme.sizeIconWithLabelMediumSizeLg) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelMediumSizeLg == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelMediumSizeLg, abstractTheme.sizes.sizeIconWithLabelMediumSizeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelMediumSizeLg == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelSmallSizeSm() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelSmallSizeSm, abstractTheme.sizeIconWithLabelSmallSizeSm) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelSmallSizeSm == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelSmallSizeSm, abstractTheme.sizes.sizeIconWithLabelSmallSizeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelSmallSizeSm == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelSmallSizeMedium() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelSmallSizeMd, abstractTheme.sizeIconWithLabelSmallSizeMd) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelSmallSizeMd == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelSmallSizeMd, abstractTheme.sizes.sizeIconWithLabelSmallSizeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelSmallSizeMd == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeWithLabelSmallSizeLg() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconWithLabelSmallSizeLg, abstractTheme.sizeIconWithLabelSmallSizeLg) - XCTAssertTrue(inheritedTheme.sizeIconWithLabelSmallSizeLg == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconWithLabelSmallSizeLg, abstractTheme.sizes.sizeIconWithLabelSmallSizeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconWithLabelSmallSizeLg == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } // MARK: - Semantic token - Sizing - Icon decorative func testInheritedThemeCanOverrideSemanticTokenSizeIconDecorative2xs() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconDecorative2xs, abstractTheme.sizeIconDecorative2xs) - XCTAssertTrue(inheritedTheme.sizeIconDecorative2xs == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconDecorative2xs, abstractTheme.sizes.sizeIconDecorative2xs) + XCTAssertTrue(inheritedTheme.sizes.sizeIconDecorative2xs == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconDecorativeXs() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconDecorativeXs, abstractTheme.sizeIconDecorativeXs) - XCTAssertTrue(inheritedTheme.sizeIconDecorativeXs == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconDecorativeXs, abstractTheme.sizes.sizeIconDecorativeXs) + XCTAssertTrue(inheritedTheme.sizes.sizeIconDecorativeXs == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokensizeIconDecorativeSm() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconDecorativeSm, abstractTheme.sizeIconDecorativeSm) - XCTAssertTrue(inheritedTheme.sizeIconDecorativeSm == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconDecorativeSm, abstractTheme.sizes.sizeIconDecorativeSm) + XCTAssertTrue(inheritedTheme.sizes.sizeIconDecorativeSm == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconDecorativeMd() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconDecorativeMd, abstractTheme.sizeIconDecorativeMd) - XCTAssertTrue(inheritedTheme.sizeIconDecorativeMd == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconDecorativeMd, abstractTheme.sizes.sizeIconDecorativeMd) + XCTAssertTrue(inheritedTheme.sizes.sizeIconDecorativeMd == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconDecorativeLg() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconDecorativeLg, abstractTheme.sizeIconDecorativeLg) - XCTAssertTrue(inheritedTheme.sizeIconDecorativeLg == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconDecorativeLg, abstractTheme.sizes.sizeIconDecorativeLg) + XCTAssertTrue(inheritedTheme.sizes.sizeIconDecorativeLg == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconDecorativeXl() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconDecorativeXl, abstractTheme.sizeIconDecorativeXl) - XCTAssertTrue(inheritedTheme.sizeIconDecorativeXl == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconDecorativeXl, abstractTheme.sizes.sizeIconDecorativeXl) + XCTAssertTrue(inheritedTheme.sizes.sizeIconDecorativeXl == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeIconDecorative2xl() throws { - XCTAssertNotEqual(inheritedTheme.sizeIconDecorative2xl, abstractTheme.sizeIconDecorative2xl) - XCTAssertTrue(inheritedTheme.sizeIconDecorative2xl == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeIconDecorative2xl, abstractTheme.sizes.sizeIconDecorative2xl) + XCTAssertTrue(inheritedTheme.sizes.sizeIconDecorative2xl == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } // MARK: - Semantic token - Sizing - Max width func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeDisplayLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeDisplayLargeMobile, abstractTheme.sizeMaxWidthTypeDisplayLargeMobile) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeDisplayLargeMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeDisplayLargeMobile, abstractTheme.sizes.sizeMaxWidthTypeDisplayLargeMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeDisplayLargeMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeDisplayLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeDisplayLargeTablet, abstractTheme.sizeMaxWidthTypeDisplayLargeTablet) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeDisplayLargeTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeDisplayLargeTablet, abstractTheme.sizes.sizeMaxWidthTypeDisplayLargeTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeDisplayLargeTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeDisplayMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeDisplayMediumMobile, abstractTheme.sizeMaxWidthTypeDisplayMediumMobile) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeDisplayMediumMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeDisplayMediumMobile, abstractTheme.sizes.sizeMaxWidthTypeDisplayMediumMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeDisplayMediumMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeDisplayMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeDisplayMediumTablet, abstractTheme.sizeMaxWidthTypeDisplayMediumTablet) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeDisplayMediumTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeDisplayMediumTablet, abstractTheme.sizes.sizeMaxWidthTypeDisplayMediumTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeDisplayMediumTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeDisplaySmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeDisplaySmallMobile, abstractTheme.sizeMaxWidthTypeDisplaySmallMobile) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeDisplaySmallMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeDisplaySmallMobile, abstractTheme.sizes.sizeMaxWidthTypeDisplaySmallMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeDisplaySmallMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeDisplaySmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeDisplaySmallTablet, abstractTheme.sizeMaxWidthTypeDisplaySmallTablet) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeDisplaySmallTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeDisplaySmallTablet, abstractTheme.sizes.sizeMaxWidthTypeDisplaySmallTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeDisplaySmallTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingXlargeSizeMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingXlargeMobile, abstractTheme.sizeMaxWidthTypeHeadingXlargeMobile) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingXlargeMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingXlargeMobile, abstractTheme.sizes.sizeMaxWidthTypeHeadingXlargeMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingXlargeMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingXlargeSizeTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingXlargeTablet, abstractTheme.sizeMaxWidthTypeHeadingXlargeTablet) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingXlargeTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingXlargeTablet, abstractTheme.sizes.sizeMaxWidthTypeHeadingXlargeTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingXlargeTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingLargeMobile, abstractTheme.sizeMaxWidthTypeHeadingLargeMobile) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingLargeMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingLargeMobile, abstractTheme.sizes.sizeMaxWidthTypeHeadingLargeMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingLargeMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingLargeTablet, abstractTheme.sizeMaxWidthTypeHeadingLargeTablet) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingLargeTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingLargeTablet, abstractTheme.sizes.sizeMaxWidthTypeHeadingLargeTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingLargeTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingMediumMobile, abstractTheme.sizeMaxWidthTypeHeadingMediumMobile) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingMediumMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingMediumMobile, abstractTheme.sizes.sizeMaxWidthTypeHeadingMediumMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingMediumMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingMediumTablet, abstractTheme.sizeMaxWidthTypeHeadingMediumTablet) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingMediumTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingMediumTablet, abstractTheme.sizes.sizeMaxWidthTypeHeadingMediumTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingMediumTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingSmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingSmallMobile, abstractTheme.sizeMaxWidthTypeHeadingSmallMobile) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingSmallMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingSmallMobile, abstractTheme.sizes.sizeMaxWidthTypeHeadingSmallMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingSmallMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeHeadingSmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeHeadingSmallTablet, abstractTheme.sizeMaxWidthTypeHeadingSmallTablet) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeHeadingSmallTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeHeadingSmallTablet, abstractTheme.sizes.sizeMaxWidthTypeHeadingSmallTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeHeadingSmallTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeBodyLargeMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeBodyLargeMobile, abstractTheme.sizeMaxWidthTypeBodyLargeMobile) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeBodyLargeMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeBodyLargeMobile, abstractTheme.sizes.sizeMaxWidthTypeBodyLargeMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeBodyLargeMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeBodyLargeTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeBodyLargeTablet, abstractTheme.sizeMaxWidthTypeBodyLargeTablet) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeBodyLargeTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeBodyLargeTablet, abstractTheme.sizes.sizeMaxWidthTypeBodyLargeTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeBodyLargeTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeBodyMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeBodyMediumMobile, abstractTheme.sizeMaxWidthTypeBodyMediumMobile) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeBodyMediumMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeBodyMediumMobile, abstractTheme.sizes.sizeMaxWidthTypeBodyMediumMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeBodyMediumMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeBodyMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeBodyMediumTablet, abstractTheme.sizeMaxWidthTypeBodyMediumTablet) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeBodyMediumTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeBodyMediumTablet, abstractTheme.sizes.sizeMaxWidthTypeBodyMediumTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeBodyMediumTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeBodySmallMobile() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeBodySmallMobile, abstractTheme.sizeMaxWidthTypeBodySmallMobile) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeBodySmallMobile == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeBodySmallMobile, abstractTheme.sizes.sizeMaxWidthTypeBodySmallMobile) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeBodySmallMobile == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } func testInheritedThemeCanOverrideSemanticTokenSizeMaxWidthTypeBodySmallTablet() throws { - XCTAssertNotEqual(inheritedTheme.sizeMaxWidthTypeBodySmallTablet, abstractTheme.sizeMaxWidthTypeBodySmallTablet) - XCTAssertTrue(inheritedTheme.sizeMaxWidthTypeBodySmallTablet == MockTheme.mockThemeSizeRawToken) + XCTAssertNotEqual(inheritedTheme.sizes.sizeMaxWidthTypeBodySmallTablet, abstractTheme.sizes.sizeMaxWidthTypeBodySmallTablet) + XCTAssertTrue(inheritedTheme.sizes.sizeMaxWidthTypeBodySmallTablet == MockThemeSizeSemanticTokensProvider.mockThemeSizeRawToken) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpaceMultipleSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpaceMultipleSemanticTokens.swift index 8627780016..c05386b803 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpaceMultipleSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpaceMultipleSemanticTokens.swift @@ -37,53 +37,53 @@ final class TestThemeOverrideOfSpaceMultipleSemanticTokens: XCTestCase { // MARK: - Semantic token - Spacing - Layout fluid func testInheritedThemeCanOverrideSemanticTokenSpaceScaledNone() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledNone, abstractTheme.spaceScaledNone) - XCTAssertTrue(inheritedTheme.spaceScaledNone.isEqual(MockTheme.mockThemeSpaceSemanticToken)) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledNone, abstractTheme.spaces.spaceScaledNone) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledNone.isEqual(MockThemeSpaceSemanticTokensProvider.mockThemeSpaceSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledSmash() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledSmash, abstractTheme.spaceScaledSmash) - XCTAssertTrue(inheritedTheme.spaceScaledSmash.isEqual(MockTheme.mockThemeSpaceSemanticToken)) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledSmash, abstractTheme.spaces.spaceScaledSmash) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledSmash.isEqual(MockThemeSpaceSemanticTokensProvider.mockThemeSpaceSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledShortest() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledShortest, abstractTheme.spaceScaledShortest) - XCTAssertTrue(inheritedTheme.spaceScaledShortest.isEqual(MockTheme.mockThemeSpaceSemanticToken)) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledShortest, abstractTheme.spaces.spaceScaledShortest) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledShortest.isEqual(MockThemeSpaceSemanticTokensProvider.mockThemeSpaceSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledShorter() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledShorter, abstractTheme.spaceScaledShorter) - XCTAssertTrue(inheritedTheme.spaceScaledShorter.isEqual(MockTheme.mockThemeSpaceSemanticToken)) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledShorter, abstractTheme.spaces.spaceScaledShorter) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledShorter.isEqual(MockThemeSpaceSemanticTokensProvider.mockThemeSpaceSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledShort() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledShort, abstractTheme.spaceScaledShort) - XCTAssertTrue(inheritedTheme.spaceScaledShort.isEqual(MockTheme.mockThemeSpaceSemanticToken)) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledShort, abstractTheme.spaces.spaceScaledShort) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledShort.isEqual(MockThemeSpaceSemanticTokensProvider.mockThemeSpaceSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledMedium() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledMedium, abstractTheme.spaceScaledMedium) - XCTAssertTrue(inheritedTheme.spaceScaledMedium.isEqual(MockTheme.mockThemeSpaceSemanticToken)) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledMedium, abstractTheme.spaces.spaceScaledMedium) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledMedium.isEqual(MockThemeSpaceSemanticTokensProvider.mockThemeSpaceSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledTall() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledTall, abstractTheme.spaceScaledTall) - XCTAssertTrue(inheritedTheme.spaceScaledTall.isEqual(MockTheme.mockThemeSpaceSemanticToken)) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledTall, abstractTheme.spaces.spaceScaledTall) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledTall.isEqual(MockThemeSpaceSemanticTokensProvider.mockThemeSpaceSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledTaller() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledTaller, abstractTheme.spaceScaledTaller) - XCTAssertTrue(inheritedTheme.spaceScaledTaller.isEqual(MockTheme.mockThemeSpaceSemanticToken)) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledTaller, abstractTheme.spaces.spaceScaledTaller) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledTaller.isEqual(MockThemeSpaceSemanticTokensProvider.mockThemeSpaceSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledTallest() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledTallest, abstractTheme.spaceScaledTallest) - XCTAssertTrue(inheritedTheme.spaceScaledTallest.isEqual(MockTheme.mockThemeSpaceSemanticToken)) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledTallest, abstractTheme.spaces.spaceScaledTallest) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledTallest.isEqual(MockThemeSpaceSemanticTokensProvider.mockThemeSpaceSemanticToken)) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledSpacious() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledSpacious, abstractTheme.spaceScaledSpacious) - XCTAssertTrue(inheritedTheme.spaceScaledSpacious.isEqual(MockTheme.mockThemeSpaceSemanticToken)) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledSpacious, abstractTheme.spaces.spaceScaledSpacious) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledSpacious.isEqual(MockThemeSpaceSemanticTokensProvider.mockThemeSpaceSemanticToken)) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpaceSemanticTokens.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpaceSemanticTokens.swift index e464107bbf..37a2eb6957 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpaceSemanticTokens.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfSpaceSemanticTokens.swift @@ -37,375 +37,375 @@ final class TestThemeOverrideOfSpaceSemanticTokens: XCTestCase { // MARK: - Semantic token - Spacing - Layout fix func testInheritedThemeCanOverrideSemanticTokenSpaceFixedNone() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedNone, abstractTheme.spaceFixedNone) - XCTAssertTrue(inheritedTheme.spaceFixedNone == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedNone, abstractTheme.spaces.spaceFixedNone) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedNone == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceFixedSmash() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedSmash, abstractTheme.spaceFixedSmash) - XCTAssertTrue(inheritedTheme.spaceFixedSmash == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedSmash, abstractTheme.spaces.spaceFixedSmash) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedSmash == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceFixedShortest() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedShortest, abstractTheme.spaceFixedShortest) - XCTAssertTrue(inheritedTheme.spaceFixedShortest == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedShortest, abstractTheme.spaces.spaceFixedShortest) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedShortest == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceFixedShorter() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedShorter, abstractTheme.spaceFixedShorter) - XCTAssertTrue(inheritedTheme.spaceFixedShorter == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedShorter, abstractTheme.spaces.spaceFixedShorter) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedShorter == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceFixedShort() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedShort, abstractTheme.spaceFixedShort) - XCTAssertTrue(inheritedTheme.spaceFixedShort == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedShort, abstractTheme.spaces.spaceFixedShort) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedShort == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceFixedMedium() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedMedium, abstractTheme.spaceFixedMedium) - XCTAssertTrue(inheritedTheme.spaceFixedMedium == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedMedium, abstractTheme.spaces.spaceFixedMedium) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedMedium == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceFixedTall() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedTall, abstractTheme.spaceFixedTall) - XCTAssertTrue(inheritedTheme.spaceFixedTall == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedTall, abstractTheme.spaces.spaceFixedTall) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedTall == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceFixedTaller() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedTaller, abstractTheme.spaceFixedTaller) - XCTAssertTrue(inheritedTheme.spaceFixedTaller == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedTaller, abstractTheme.spaces.spaceFixedTaller) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedTaller == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceFixedTallest() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedTallest, abstractTheme.spaceFixedTallest) - XCTAssertTrue(inheritedTheme.spaceFixedTallest == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedTallest, abstractTheme.spaces.spaceFixedTallest) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedTallest == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceFixedSpacious() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedSpacious, abstractTheme.spaceFixedSpacious) - XCTAssertTrue(inheritedTheme.spaceFixedSpacious == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedSpacious, abstractTheme.spaces.spaceFixedSpacious) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedSpacious == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceFixedHuge() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedHuge, abstractTheme.spaceFixedHuge) - XCTAssertTrue(inheritedTheme.spaceFixedHuge == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedHuge, abstractTheme.spaces.spaceFixedHuge) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedHuge == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceFixedJumbo() throws { - XCTAssertNotEqual(inheritedTheme.spaceFixedJumbo, abstractTheme.spaceFixedJumbo) - XCTAssertTrue(inheritedTheme.spaceFixedJumbo == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceFixedJumbo, abstractTheme.spaces.spaceFixedJumbo) + XCTAssertTrue(inheritedTheme.spaces.spaceFixedJumbo == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } // MARK: - Semantic token - Spacing - Layout fluid func testInheritedThemeCanOverrideSemanticTokenSpaceScaledNoneMobile() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledNoneMobile, abstractTheme.spaceScaledNoneMobile) - XCTAssertTrue(inheritedTheme.spaceScaledNoneMobile == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledNoneMobile, abstractTheme.spaces.spaceScaledNoneMobile) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledNoneMobile == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledNoneTablet() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledNoneTablet, abstractTheme.spaceScaledNoneTablet) - XCTAssertTrue(inheritedTheme.spaceScaledNoneTablet == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledNoneTablet, abstractTheme.spaces.spaceScaledNoneTablet) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledNoneTablet == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledSmashMobile() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledSmashMobile, abstractTheme.spaceScaledSmashMobile) - XCTAssertTrue(inheritedTheme.spaceScaledSmashMobile == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledSmashMobile, abstractTheme.spaces.spaceScaledSmashMobile) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledSmashMobile == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledSmashTablet() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledSmashTablet, abstractTheme.spaceScaledSmashTablet) - XCTAssertTrue(inheritedTheme.spaceScaledSmashTablet == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledSmashTablet, abstractTheme.spaces.spaceScaledSmashTablet) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledSmashTablet == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledShortestMobile() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledShortestMobile, abstractTheme.spaceScaledShortestMobile) - XCTAssertTrue(inheritedTheme.spaceScaledShortestMobile == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledShortestMobile, abstractTheme.spaces.spaceScaledShortestMobile) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledShortestMobile == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledShortestTablet() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledShortestTablet, abstractTheme.spaceScaledShortestTablet) - XCTAssertTrue(inheritedTheme.spaceScaledShortestTablet == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledShortestTablet, abstractTheme.spaces.spaceScaledShortestTablet) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledShortestTablet == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledShorterMobile() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledShorterMobile, abstractTheme.spaceScaledShorterMobile) - XCTAssertTrue(inheritedTheme.spaceScaledShorterMobile == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledShorterMobile, abstractTheme.spaces.spaceScaledShorterMobile) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledShorterMobile == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledShorterTablet() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledShorterTablet, abstractTheme.spaceScaledShorterTablet) - XCTAssertTrue(inheritedTheme.spaceScaledShorterTablet == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledShorterTablet, abstractTheme.spaces.spaceScaledShorterTablet) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledShorterTablet == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledShortMobile() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledShortMobile, abstractTheme.spaceScaledShortMobile) - XCTAssertTrue(inheritedTheme.spaceScaledShortMobile == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledShortMobile, abstractTheme.spaces.spaceScaledShortMobile) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledShortMobile == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledShortTablet() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledShortTablet, abstractTheme.spaceScaledShortTablet) - XCTAssertTrue(inheritedTheme.spaceScaledShortTablet == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledShortTablet, abstractTheme.spaces.spaceScaledShortTablet) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledShortTablet == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledMediumMobile() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledMediumMobile, abstractTheme.spaceScaledMediumMobile) - XCTAssertTrue(inheritedTheme.spaceScaledMediumMobile == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledMediumMobile, abstractTheme.spaces.spaceScaledMediumMobile) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledMediumMobile == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledMediumTablet() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledMediumTablet, abstractTheme.spaceScaledMediumTablet) - XCTAssertTrue(inheritedTheme.spaceScaledMediumTablet == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledMediumTablet, abstractTheme.spaces.spaceScaledMediumTablet) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledMediumTablet == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledTallMobile() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledTallMobile, abstractTheme.spaceScaledTallMobile) - XCTAssertTrue(inheritedTheme.spaceScaledTallMobile == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledTallMobile, abstractTheme.spaces.spaceScaledTallMobile) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledTallMobile == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledTallTablet() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledTallTablet, abstractTheme.spaceScaledTallTablet) - XCTAssertTrue(inheritedTheme.spaceScaledTallTablet == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledTallTablet, abstractTheme.spaces.spaceScaledTallTablet) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledTallTablet == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledTallerMobile() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledTallerMobile, abstractTheme.spaceScaledTallerMobile) - XCTAssertTrue(inheritedTheme.spaceScaledTallerMobile == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledTallerMobile, abstractTheme.spaces.spaceScaledTallerMobile) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledTallerMobile == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledTallerTablet() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledTallerTablet, abstractTheme.spaceScaledTallerTablet) - XCTAssertTrue(inheritedTheme.spaceScaledTallerTablet == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledTallerTablet, abstractTheme.spaces.spaceScaledTallerTablet) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledTallerTablet == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledTallestMobile() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledTallestMobile, abstractTheme.spaceScaledTallestMobile) - XCTAssertTrue(inheritedTheme.spaceScaledTallestMobile == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledTallestMobile, abstractTheme.spaces.spaceScaledTallestMobile) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledTallestMobile == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledTallestTablet() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledTallestTablet, abstractTheme.spaceScaledTallestTablet) - XCTAssertTrue(inheritedTheme.spaceScaledTallestTablet == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledTallestTablet, abstractTheme.spaces.spaceScaledTallestTablet) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledTallestTablet == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledSpaciousMobile() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledSpaciousMobile, abstractTheme.spaceScaledSpaciousMobile) - XCTAssertTrue(inheritedTheme.spaceScaledSpaciousMobile == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledSpaciousMobile, abstractTheme.spaces.spaceScaledSpaciousMobile) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledSpaciousMobile == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceScaledSpaciousTablet() throws { - XCTAssertNotEqual(inheritedTheme.spaceScaledSpaciousTablet, abstractTheme.spaceScaledSpaciousTablet) - XCTAssertTrue(inheritedTheme.spaceScaledSpaciousTablet == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceScaledSpaciousTablet, abstractTheme.spaces.spaceScaledSpaciousTablet) + XCTAssertTrue(inheritedTheme.spaces.spaceScaledSpaciousTablet == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } // MARK: - Semantic token - Spacing - Padding - Padding inline func testInheritedThemeCanOverrideSemanticTokenSpacePaddingInlineNone() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingInlineNone, abstractTheme.spacePaddingInlineNone) - XCTAssertTrue(inheritedTheme.spacePaddingInlineNone == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingInlineNone, abstractTheme.spaces.spacePaddingInlineNone) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingInlineNone == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingInlineSmash() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingInlineSmash, abstractTheme.spacePaddingInlineSmash) - XCTAssertTrue(inheritedTheme.spacePaddingInlineSmash == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingInlineSmash, abstractTheme.spaces.spacePaddingInlineSmash) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingInlineSmash == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingInlineShortest() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingInlineShortest, abstractTheme.spacePaddingInlineShortest) - XCTAssertTrue(inheritedTheme.spacePaddingInlineShortest == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingInlineShortest, abstractTheme.spaces.spacePaddingInlineShortest) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingInlineShortest == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingInlineShorter() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingInlineShorter, abstractTheme.spacePaddingInlineShorter) - XCTAssertTrue(inheritedTheme.spacePaddingInlineShorter == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingInlineShorter, abstractTheme.spaces.spacePaddingInlineShorter) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingInlineShorter == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingInlineShort() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingInlineShort, abstractTheme.spacePaddingInlineShort) - XCTAssertTrue(inheritedTheme.spacePaddingInlineShort == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingInlineShort, abstractTheme.spaces.spacePaddingInlineShort) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingInlineShort == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingInlineMedium() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingInlineMedium, abstractTheme.spacePaddingInlineMedium) - XCTAssertTrue(inheritedTheme.spacePaddingInlineMedium == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingInlineMedium, abstractTheme.spaces.spacePaddingInlineMedium) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingInlineMedium == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingInlineTall() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingInlineTall, abstractTheme.spacePaddingInlineTall) - XCTAssertTrue(inheritedTheme.spacePaddingInlineTall == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingInlineTall, abstractTheme.spaces.spacePaddingInlineTall) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingInlineTall == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingInlineTaller() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingInlineTaller, abstractTheme.spacePaddingInlineTaller) - XCTAssertTrue(inheritedTheme.spacePaddingInlineTaller == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingInlineTaller, abstractTheme.spaces.spacePaddingInlineTaller) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingInlineTaller == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingInlineTallest() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingInlineTallest, abstractTheme.spacePaddingInlineTallest) - XCTAssertTrue(inheritedTheme.spacePaddingInlineTallest == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingInlineTallest, abstractTheme.spaces.spacePaddingInlineTallest) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingInlineTallest == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingInlineSpacious() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingInlineSpacious, abstractTheme.spacePaddingInlineSpacious) - XCTAssertTrue(inheritedTheme.spacePaddingInlineSpacious == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingInlineSpacious, abstractTheme.spaces.spacePaddingInlineSpacious) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingInlineSpacious == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingInlineHuge() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingInlineHuge, abstractTheme.spacePaddingInlineHuge) - XCTAssertTrue(inheritedTheme.spacePaddingInlineHuge == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingInlineHuge, abstractTheme.spaces.spacePaddingInlineHuge) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingInlineHuge == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } // MARK: - Semantic token - Spacing - Padding - Padding stack func testInheritedThemeCanOverrideSemanticTokenSpacePaddingBlockNone() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingBlockNone, abstractTheme.spacePaddingBlockNone) - XCTAssertTrue(inheritedTheme.spacePaddingBlockNone == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingBlockNone, abstractTheme.spaces.spacePaddingBlockNone) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingBlockNone == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingBlockShorter() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingBlockShorter, abstractTheme.spacePaddingBlockShorter) - XCTAssertTrue(inheritedTheme.spacePaddingBlockShorter == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingBlockShorter, abstractTheme.spaces.spacePaddingBlockShorter) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingBlockShorter == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingBlockShort() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingBlockShort, abstractTheme.spacePaddingBlockShort) - XCTAssertTrue(inheritedTheme.spacePaddingBlockShort == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingBlockShort, abstractTheme.spaces.spacePaddingBlockShort) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingBlockShort == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingBlockMedium() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingBlockMedium, abstractTheme.spacePaddingBlockMedium) - XCTAssertTrue(inheritedTheme.spacePaddingBlockMedium == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingBlockMedium, abstractTheme.spaces.spacePaddingBlockMedium) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingBlockMedium == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingBlockTall() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingBlockTall, abstractTheme.spacePaddingBlockTall) - XCTAssertTrue(inheritedTheme.spacePaddingBlockTall == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingBlockTall, abstractTheme.spaces.spacePaddingBlockTall) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingBlockTall == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingBlockTaller() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingBlockTaller, abstractTheme.spacePaddingBlockTaller) - XCTAssertTrue(inheritedTheme.spacePaddingBlockTaller == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingBlockTaller, abstractTheme.spaces.spacePaddingBlockTaller) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingBlockTaller == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpacePaddingBlockTallest() throws { - XCTAssertNotEqual(inheritedTheme.spacePaddingBlockTallest, abstractTheme.spacePaddingBlockTallest) - XCTAssertTrue(inheritedTheme.spacePaddingBlockTallest == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spacePaddingBlockTallest, abstractTheme.spaces.spacePaddingBlockTallest) + XCTAssertTrue(inheritedTheme.spaces.spacePaddingBlockTallest == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } // MARK: - Semantic token - Spacing - Padding - Padding inset func testInheritedThemeCanOverrideSemanticTokenSpaceInsetNone() throws { - XCTAssertNotEqual(inheritedTheme.spaceInsetNone, abstractTheme.spaceInsetNone) - XCTAssertTrue(inheritedTheme.spaceInsetNone == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceInsetNone, abstractTheme.spaces.spaceInsetNone) + XCTAssertTrue(inheritedTheme.spaces.spaceInsetNone == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceInsetSmash() throws { - XCTAssertNotEqual(inheritedTheme.spaceInsetSmash, abstractTheme.spaceInsetSmash) - XCTAssertTrue(inheritedTheme.spaceInsetSmash == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceInsetSmash, abstractTheme.spaces.spaceInsetSmash) + XCTAssertTrue(inheritedTheme.spaces.spaceInsetSmash == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceInsetShortest() throws { - XCTAssertNotEqual(inheritedTheme.spaceInsetShortest, abstractTheme.spaceInsetShortest) - XCTAssertTrue(inheritedTheme.spaceInsetShortest == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceInsetShortest, abstractTheme.spaces.spaceInsetShortest) + XCTAssertTrue(inheritedTheme.spaces.spaceInsetShortest == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceInsetShorter() throws { - XCTAssertNotEqual(inheritedTheme.spaceInsetShorter, abstractTheme.spaceInsetShorter) - XCTAssertTrue(inheritedTheme.spaceInsetShorter == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceInsetShorter, abstractTheme.spaces.spaceInsetShorter) + XCTAssertTrue(inheritedTheme.spaces.spaceInsetShorter == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceInsetShort() throws { - XCTAssertNotEqual(inheritedTheme.spaceInsetShort, abstractTheme.spaceInsetShort) - XCTAssertTrue(inheritedTheme.spaceInsetShort == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceInsetShort, abstractTheme.spaces.spaceInsetShort) + XCTAssertTrue(inheritedTheme.spaces.spaceInsetShort == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceInsetMedium() throws { - XCTAssertNotEqual(inheritedTheme.spaceInsetMedium, abstractTheme.spaceInsetMedium) - XCTAssertTrue(inheritedTheme.spaceInsetMedium == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceInsetMedium, abstractTheme.spaces.spaceInsetMedium) + XCTAssertTrue(inheritedTheme.spaces.spaceInsetMedium == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceInsetTall() throws { - XCTAssertNotEqual(inheritedTheme.spaceInsetTall, abstractTheme.spaceInsetTall) - XCTAssertTrue(inheritedTheme.spaceInsetTall == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceInsetTall, abstractTheme.spaces.spaceInsetTall) + XCTAssertTrue(inheritedTheme.spaces.spaceInsetTall == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceInsetTaller() throws { - XCTAssertNotEqual(inheritedTheme.spaceInsetTaller, abstractTheme.spaceInsetTaller) - XCTAssertTrue(inheritedTheme.spaceInsetTaller == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceInsetTaller, abstractTheme.spaces.spaceInsetTaller) + XCTAssertTrue(inheritedTheme.spaces.spaceInsetTaller == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceInsetTallest() throws { - XCTAssertNotEqual(inheritedTheme.spaceInsetTallest, abstractTheme.spaceInsetTallest) - XCTAssertTrue(inheritedTheme.spaceInsetTallest == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceInsetTallest, abstractTheme.spaces.spaceInsetTallest) + XCTAssertTrue(inheritedTheme.spaces.spaceInsetTallest == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceInsetSpacious() throws { - XCTAssertNotEqual(inheritedTheme.spaceInsetSpacious, abstractTheme.spaceInsetSpacious) - XCTAssertTrue(inheritedTheme.spaceInsetSpacious == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceInsetSpacious, abstractTheme.spaces.spaceInsetSpacious) + XCTAssertTrue(inheritedTheme.spaces.spaceInsetSpacious == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } // MARK: - Semantic token - Spacing - Padding - Gap inline func testInheritedThemeCanOverrideSemanticTokenSpaceColumnGapNone() throws { - XCTAssertNotEqual(inheritedTheme.spaceColumnGapNone, abstractTheme.spaceColumnGapNone) - XCTAssertTrue(inheritedTheme.spaceColumnGapNone == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceColumnGapNone, abstractTheme.spaces.spaceColumnGapNone) + XCTAssertTrue(inheritedTheme.spaces.spaceColumnGapNone == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceColumnGapShorter() throws { - XCTAssertNotEqual(inheritedTheme.spaceColumnGapShorter, abstractTheme.spaceColumnGapShorter) - XCTAssertTrue(inheritedTheme.spaceColumnGapShorter == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceColumnGapShorter, abstractTheme.spaces.spaceColumnGapShorter) + XCTAssertTrue(inheritedTheme.spaces.spaceColumnGapShorter == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceColumnGapShort() throws { - XCTAssertNotEqual(inheritedTheme.spaceColumnGapShort, abstractTheme.spaceColumnGapShort) - XCTAssertTrue(inheritedTheme.spaceColumnGapShort == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceColumnGapShort, abstractTheme.spaces.spaceColumnGapShort) + XCTAssertTrue(inheritedTheme.spaces.spaceColumnGapShort == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceColumnGapMedium() throws { - XCTAssertNotEqual(inheritedTheme.spaceColumnGapMedium, abstractTheme.spaceColumnGapMedium) - XCTAssertTrue(inheritedTheme.spaceColumnGapMedium == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceColumnGapMedium, abstractTheme.spaces.spaceColumnGapMedium) + XCTAssertTrue(inheritedTheme.spaces.spaceColumnGapMedium == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceColumnGapTall() throws { - XCTAssertNotEqual(inheritedTheme.spaceColumnGapTall, abstractTheme.spaceColumnGapTall) - XCTAssertTrue(inheritedTheme.spaceColumnGapTall == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceColumnGapTall, abstractTheme.spaces.spaceColumnGapTall) + XCTAssertTrue(inheritedTheme.spaces.spaceColumnGapTall == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceColumnGapTaller() throws { - XCTAssertNotEqual(inheritedTheme.spaceColumnGapTaller, abstractTheme.spaceColumnGapTaller) - XCTAssertTrue(inheritedTheme.spaceColumnGapTaller == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceColumnGapTaller, abstractTheme.spaces.spaceColumnGapTaller) + XCTAssertTrue(inheritedTheme.spaces.spaceColumnGapTaller == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } // MARK: - Semantic token - Spacing - Padding - Gap stack func testInheritedThemeCanOverrideSemanticTokenSpaceRowGapNone() throws { - XCTAssertNotEqual(inheritedTheme.spaceRowGapNone, abstractTheme.spaceRowGapNone) - XCTAssertTrue(inheritedTheme.spaceRowGapNone == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceRowGapNone, abstractTheme.spaces.spaceRowGapNone) + XCTAssertTrue(inheritedTheme.spaces.spaceRowGapNone == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceRowGapShortest() throws { - XCTAssertNotEqual(inheritedTheme.spaceRowGapShortest, abstractTheme.spaceRowGapShortest) - XCTAssertTrue(inheritedTheme.spaceRowGapShortest == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceRowGapShortest, abstractTheme.spaces.spaceRowGapShortest) + XCTAssertTrue(inheritedTheme.spaces.spaceRowGapShortest == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceRowGapShorter() throws { - XCTAssertNotEqual(inheritedTheme.spaceRowGapShorter, abstractTheme.spaceRowGapShorter) - XCTAssertTrue(inheritedTheme.spaceRowGapShorter == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceRowGapShorter, abstractTheme.spaces.spaceRowGapShorter) + XCTAssertTrue(inheritedTheme.spaces.spaceRowGapShorter == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceRowGapShort() throws { - XCTAssertNotEqual(inheritedTheme.spaceRowGapShort, abstractTheme.spaceRowGapShort) - XCTAssertTrue(inheritedTheme.spaceRowGapShort == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceRowGapShort, abstractTheme.spaces.spaceRowGapShort) + XCTAssertTrue(inheritedTheme.spaces.spaceRowGapShort == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceRowGapMedium() throws { - XCTAssertNotEqual(inheritedTheme.spaceRowGapMedium, abstractTheme.spaceRowGapMedium) - XCTAssertTrue(inheritedTheme.spaceRowGapMedium == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceRowGapMedium, abstractTheme.spaces.spaceRowGapMedium) + XCTAssertTrue(inheritedTheme.spaces.spaceRowGapMedium == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } func testInheritedThemeCanOverrideSemanticTokenSpaceRowGapTall() throws { - XCTAssertNotEqual(inheritedTheme.spaceRowGapTall, abstractTheme.spaceRowGapTall) - XCTAssertTrue(inheritedTheme.spaceRowGapTall == MockTheme.mockThemeSpaceRawToken) + XCTAssertNotEqual(inheritedTheme.spaces.spaceRowGapTall, abstractTheme.spaces.spaceRowGapTall) + XCTAssertTrue(inheritedTheme.spaces.spaceRowGapTall == MockThemeSpaceSemanticTokensProvider.mockThemeSpaceRawToken) } } diff --git a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfThemeProperties.swift b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfThemeProperties.swift index d09410f0b6..b1ed19bd42 100644 --- a/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfThemeProperties.swift +++ b/OUDS/Core/OUDS/Tests/OUDSTheme/TestThemeOverrideOfThemeProperties.swift @@ -28,12 +28,12 @@ final class TestThemeOverrideOfThemeProperties: XCTestCase { override func setUp() async throws { abstractTheme = OUDSTheme() - inheritedTheme = MockTheme(customFont: "Mr R08ΓΈT") + inheritedTheme = MockTheme(fontFamily: "Mr R08ΓΈT") } - func testInheritedThemeCanOverrideCustomFontFamily() throws { - XCTAssertNotEqual(inheritedTheme.customFontFamily, abstractTheme.customFontFamily) - XCTAssertTrue(inheritedTheme.customFontFamily == "Mr R08ΓΈT") + func testInheritedThemeCanOverrideFontFamily() throws { + XCTAssertNotEqual(inheritedTheme.fontFamily, abstractTheme.fontFamily) + XCTAssertTrue(inheritedTheme.fontFamily == "Mr R08ΓΈT") } } diff --git a/OUDS/Core/Themes/Inverse/Sources/InverseTheme+ColorSemanticTokens.swift b/OUDS/Core/Themes/Inverse/Sources/InverseTheme+ColorSemanticTokens.swift index 1e8f2ec801..66ff95c3d8 100644 --- a/OUDS/Core/Themes/Inverse/Sources/InverseTheme+ColorSemanticTokens.swift +++ b/OUDS/Core/Themes/Inverse/Sources/InverseTheme+ColorSemanticTokens.swift @@ -11,24 +11,39 @@ // Software description: A SwiftUI components library with code examples for Orange Unified Design System // -import Foundation +import OUDSFoundations import OUDSThemesOrange import OUDSTokensRaw import OUDSTokensSemantic -// ଘ( ο½₯Ο‰ο½₯)_/゚ο½₯:*:ο½₯ο½‘β˜† -// [File to generate by the tokenator] +// [File not generated by the tokenator] // WARNING: Not synchronized anymore with the Figjam / Figma by developers team // Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml -/// Overrides some colors using values defined in extension of ``ColorRawTokens`` in this current module. +/// Overrides some colors using semantic tokens of `ColorSemanticTokens`. /// Some tokens do not have values assigned in the design system, and must be overriden. -extension InverseTheme { +/// Ensures the colors are always the "dark mode" colors. +/// In few words, uses the tokens which are all defined in ``OrangeThemeColorSemanticTokensProvider`` and overrides them. +final class InverseThemeColorSemanticTokensProvider: OrangeThemeColorSemanticTokensProvider { + + // MARK: - Init + + override init() { + OUDSLogger.debug("Init of InverseThemeColorSemanticTokensProvider") + } + + deinit { } + + // MARK: - Overrides + + // MARK: - Color - Opacity - Invisible override public var colorOpacityInvisibleBlack: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorOpacityInvisibleBlackDark) } override public var colorOpacityInvisibleWhite: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorOpacityInvisibleWhiteDark) } + // MARK: - Color - Action + override public var colorActionDisabled: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorActionDisabledDark) } override public var colorActionEnabled: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorActionEnabledDark) } @@ -67,6 +82,8 @@ extension InverseTheme { override public var colorActionVisited: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorActionVisitedDark) } + // MARK: - Color - Always + override public var colorAlwaysBlack: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorAlwaysBlackDark) } override public var colorAlwaysOnBlack: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorAlwaysOnBlackDark) } @@ -75,6 +92,8 @@ extension InverseTheme { override public var colorAlwaysWhite: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorAlwaysWhiteDark) } + // MARK: - Color - Background + override public var colorBgEmphasized: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorBgEmphasizedDark) } override public var colorBgPrimary: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorBgPrimaryDark) } @@ -83,6 +102,8 @@ extension InverseTheme { override public var colorBgTertiary: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorBgTertiaryDark) } + // MARK: - Color - Border + override public var colorBorderBrandPrimary: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorBorderBrandPrimaryDark) } override public var colorBorderDefault: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorBorderDefaultDark) } @@ -95,6 +116,8 @@ extension InverseTheme { override public var colorBorderOnBrandPrimary: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorBorderOnBrandPrimaryDark) } + // MARK: - Color - Content + override public var colorContentBrandPrimary: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorContentBrandPrimaryDark) } override public var colorContentDefault: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorContentDefaultDark) } @@ -137,6 +160,8 @@ extension InverseTheme { override public var colorContentStatusWarning: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorContentStatusWarningDark) } + // MARK: - Color - Overlay + override public var colorOverlayDefault: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorOverlayDefaultDark) } override public var colorOverlayDrag: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorOverlayDragDark) } @@ -145,6 +170,8 @@ extension InverseTheme { override public var colorOverlayModal: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorOverlayModalDark) } + // MARK: - Color - Surface + override public var colorSurfaceBrandPrimary: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorSurfaceBrandPrimaryDark) } override public var colorSurfaceStatusAccentEmphasized: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorSurfaceStatusAccentEmphasizedDark) } @@ -171,6 +198,8 @@ extension InverseTheme { override public var colorSurfaceStatusWarningMuted: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorSurfaceStatusWarningMutedDark) } + // MARK: - Color - Decorative + override public var colorDecorativeAccent1Default: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorDecorativeAccent1DefaultDark) } override public var colorDecorativeAccent1Emphasized: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorDecorativeAccent1EmphasizedDark) } @@ -231,6 +260,8 @@ extension InverseTheme { override public var colorDecorativeSkinTint900: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorDecorativeSkinTint900Dark) } + // MARK: - Color - Chart + override public var colorChartCategoricalTier1: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorChartCategoricalTier1Dark) } override public var colorChartCategoricalTier2: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorChartCategoricalTier2Dark) } @@ -265,6 +296,8 @@ extension InverseTheme { override public var colorChartNeutral: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorChartNeutralDark) } + // MARK: - Color - Repository + override public var colorRepositoryAccentDefault: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryAccentDefaultDark) } override public var colorRepositoryAccentHighest: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryAccentHighestDark) } @@ -333,19 +366,19 @@ extension InverseTheme { override public var colorRepositoryOpacityWarning: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWarningDark) } - override open var colorRepositoryOpacityWhiteHigh: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteHighDark) } + override public var colorRepositoryOpacityWhiteHigh: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteHighDark) } - override open var colorRepositoryOpacityWhiteHigher: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteHigherDark) } + override public var colorRepositoryOpacityWhiteHigher: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteHigherDark) } - override open var colorRepositoryOpacityWhiteHighest: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteHighestDark) } + override public var colorRepositoryOpacityWhiteHighest: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteHighestDark) } - override open var colorRepositoryOpacityWhiteLow: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteLowDark) } + override public var colorRepositoryOpacityWhiteLow: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteLowDark) } - override open var colorRepositoryOpacityWhiteLower: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteLowerDark) } + override public var colorRepositoryOpacityWhiteLower: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteLowerDark) } - override open var colorRepositoryOpacityWhiteLowest: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteLowestDark) } + override public var colorRepositoryOpacityWhiteLowest: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteLowestDark) } - override open var colorRepositoryOpacityWhiteTransparent: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteTransparentDark) } + override public var colorRepositoryOpacityWhiteTransparent: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryOpacityWhiteTransparentDark) } override public var colorRepositoryPositiveDefault: MultipleColorSemanticTokens { MultipleColorSemanticTokens(colorRepositoryPositiveDefaultDark) } diff --git a/OUDS/Core/Themes/Inverse/Sources/InverseTheme.swift b/OUDS/Core/Themes/Inverse/Sources/InverseTheme.swift index 5e764fe3d4..4cb9e15c1f 100644 --- a/OUDS/Core/Themes/Inverse/Sources/InverseTheme.swift +++ b/OUDS/Core/Themes/Inverse/Sources/InverseTheme.swift @@ -11,13 +11,48 @@ // Software description: A SwiftUI components library with code examples for Orange Unified Design System // +import OUDSFoundations import OUDSThemesOrange +import OUDSTokensSemantic /// This is an override of the default basic `OrangeTheme` with some inverted colors. -/// It can overrides any properties from its superclass, and can be derived too. -open class InverseTheme: OrangeTheme, @unchecked Sendable { +/// It can overrides any properties from its superclass, but is not derivable. +/// +/// To use this theme, inject it to your view using `OUDSThemeableView` and get it through environement variable. +/// +/// ```swift +/// import OUDS // To get OUDSThemeableView +/// import OUDSThemeInverse // To get InverseTheme +/// import SwiftUI +/// +/// @main +/// struct YourApp: App { +/// var body: some Scene { +/// WindowGroup { +/// OUDSThemeableView(theme: InverseTheme()) { +/// // Your root view +/// } +/// } +/// } +/// } +/// ``` +/// +/// Then get it: +/// ```swift +/// import OUDS +/// +/// @Environment(\.theme) var theme +/// ``` +/// +public final class InverseTheme: OrangeTheme, @unchecked Sendable { - deinit { } + // MARK: - Initializers + + /// Initializes the `InverseTheme` + override public init() { + OUDSLogger.debug("Init of InverseTheme") + super.init(colors: InverseThemeColorSemanticTokensProvider()) + } - // For clarity reasons, please override OUDSTheme properties in extensions + deinit { } } diff --git a/OUDS/Core/Themes/Inverse/Sources/_OUDSThemesInverse.docc/OUDSThemesInverse.md b/OUDS/Core/Themes/Inverse/Sources/_OUDSThemesInverse.docc/OUDSThemesInverse.md index 5834b8afef..63aa9a973d 100644 --- a/OUDS/Core/Themes/Inverse/Sources/_OUDSThemesInverse.docc/OUDSThemesInverse.md +++ b/OUDS/Core/Themes/Inverse/Sources/_OUDSThemesInverse.docc/OUDSThemesInverse.md @@ -1,15 +1,58 @@ # ``OUDSThemesInverse`` -This theme overrides the [Orange theme](https://ios.unified-design-system.orange.com/documentation/oudsthemesorange/) for some colors. +This theme overrides the [Orange theme](https://ios.unified-design-system.orange.com/documentation/oudsthemesorange/) for some colors so as to bring an "inverse"-colored experience. ## Overview -This is an override of the [Orange theme](https://ios.unified-design-system.orange.com/documentation/oudsthemesorange/) with some inverted colors. -It can override any properties from its superclass, and can be derived too. +This is an override of the [Orange theme](https://ios.unified-design-system.orange.com/documentation/oudsthemesorange/) with some inverted colors. It can override any properties from its superclass. We did not plan to make ``InverseTheme`` derivable. The aim of the theme is to provide a particular set of colors for dedicated applications and use cases, like for example B2B apps or teams needing eye comfort. It can be seen as an extended dark mode. -❗**More details coming soon.**❗ +## How to use the theme + +You can use ``InverseTheme`` directly. You will have to use the `OUDSThemeableView` for your root view and give it an instance of ``InverseTheme``. Keep in mind the themes are *Swift class objects* and can be heavy, so you maye use only as instance as singleton and not store any properties. + +```swift +import OUDS // To get OUDSThemeableView +import OUDSThemeInverse // To get Inverseheme +import SwiftUI + +@main +struct YourApp: App { + var body: some Scene { + WindowGroup { + OUDSThemeableView(theme: InverseTheme()) { + // Your root view + } + } + } +} +``` + +Then, in your views, you can simply use the theme through an environement variable to get the tokens: + +```swift +import OUDS // To get the theme environment variable +import SwiftUI + +struct SomeView: View { + + // Get OUDS environment variable for theme thanks to themeable view + @Environment(\.theme) var theme + + var body: some View { + + // Use the theme to retrieve the tokens + // For spaces: theme.spaces + // For sizes: theme.sizes + // For borders: theme.borders + // For elevations: theme.elevations + // For opacities: theme.opacities + // For colors: theme.colors + } +} + +``` ## Topics diff --git a/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeColors.swift b/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeColors.swift index f0bbd6bd14..3632dc97ea 100644 --- a/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeColors.swift +++ b/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeColors.swift @@ -39,707 +39,707 @@ final class TestInverseThemeColors: XCTestCase { // MARK: - Test cases func testColorsHomogeneityColorOpacityInvisibleBlack() throws { - assertHomogeneity(inverseTheme.colorOpacityInvisibleBlack) + assertHomogeneity(inverseTheme.colors.colorOpacityInvisibleBlack) } func testColorsHomogeneityColorOpacityInvisibleWhite() throws { - assertHomogeneity(inverseTheme.colorOpacityInvisibleWhite) + assertHomogeneity(inverseTheme.colors.colorOpacityInvisibleWhite) } // MARK: - Color - Action func testColorsHomogeneityColorActionDisabled() throws { - assertHomogeneity(inverseTheme.colorActionDisabled) + assertHomogeneity(inverseTheme.colors.colorActionDisabled) } func testColorsHomogeneityColorActionEnabled() throws { - assertHomogeneity(inverseTheme.colorActionEnabled) + assertHomogeneity(inverseTheme.colors.colorActionEnabled) } func testColorsHomogeneityColorActionFocus() throws { - assertHomogeneity(inverseTheme.colorActionFocus) + assertHomogeneity(inverseTheme.colors.colorActionFocus) } func testColorsHomogeneityColorActionHighlighted() throws { - assertHomogeneity(inverseTheme.colorActionHighlighted) + assertHomogeneity(inverseTheme.colors.colorActionHighlighted) } func testColorsHomogeneityColorActionHover() throws { - assertHomogeneity(inverseTheme.colorActionHover) + assertHomogeneity(inverseTheme.colors.colorActionHover) } func testColorsHomogeneityColorActionLoading() throws { - assertHomogeneity(inverseTheme.colorActionLoading) + assertHomogeneity(inverseTheme.colors.colorActionLoading) } func testColorsHomogeneityColorActionNegativeEnabled() throws { - assertHomogeneity(inverseTheme.colorActionNegativeEnabled) + assertHomogeneity(inverseTheme.colors.colorActionNegativeEnabled) } func testColorsHomogeneityColorActionNegativeFocus() throws { - assertHomogeneity(inverseTheme.colorActionNegativeFocus) + assertHomogeneity(inverseTheme.colors.colorActionNegativeFocus) } func testColorsHomogeneityColorActionNegativeHover() throws { - assertHomogeneity(inverseTheme.colorActionNegativeHover) + assertHomogeneity(inverseTheme.colors.colorActionNegativeHover) } func testColorsHomogeneityColorActionNegativeLoading() throws { - assertHomogeneity(inverseTheme.colorActionNegativeLoading) + assertHomogeneity(inverseTheme.colors.colorActionNegativeLoading) } func testColorsHomogeneityColorActionNegativePressed() throws { - assertHomogeneity(inverseTheme.colorActionNegativePressed) + assertHomogeneity(inverseTheme.colors.colorActionNegativePressed) } func testColorsHomogeneityColorActionPressed() throws { - assertHomogeneity(inverseTheme.colorActionPressed) + assertHomogeneity(inverseTheme.colors.colorActionPressed) } func testColorsHomogeneityColorActionSelected() throws { - assertHomogeneity(inverseTheme.colorActionSelected) + assertHomogeneity(inverseTheme.colors.colorActionSelected) } func testColorsHomogeneityColorActionSupportEnabled() throws { - assertHomogeneity(inverseTheme.colorActionSupportEnabled) + assertHomogeneity(inverseTheme.colors.colorActionSupportEnabled) } func testColorsHomogeneityColorActionSupportFocus() throws { - assertHomogeneity(inverseTheme.colorActionSupportFocus) + assertHomogeneity(inverseTheme.colors.colorActionSupportFocus) } func testColorsHomogeneityColorActionSupportHover() throws { - assertHomogeneity(inverseTheme.colorActionSupportHover) + assertHomogeneity(inverseTheme.colors.colorActionSupportHover) } func testColorsHomogeneityColorActionSupportLoading() throws { - assertHomogeneity(inverseTheme.colorActionSupportLoading) + assertHomogeneity(inverseTheme.colors.colorActionSupportLoading) } func testColorsHomogeneityColorActionSupportPressed() throws { - assertHomogeneity(inverseTheme.colorActionSupportPressed) + assertHomogeneity(inverseTheme.colors.colorActionSupportPressed) } func testColorsHomogeneityColorActionVisited() throws { - assertHomogeneity(inverseTheme.colorActionVisited) + assertHomogeneity(inverseTheme.colors.colorActionVisited) } // MARK: - Color - Always func testColorsHomogeneityColorAlwaysBlack() throws { - assertHomogeneity(inverseTheme.colorAlwaysBlack) + assertHomogeneity(inverseTheme.colors.colorAlwaysBlack) } func testColorsHomogeneityColorAlwaysOnBlack() throws { - assertHomogeneity(inverseTheme.colorAlwaysOnBlack) + assertHomogeneity(inverseTheme.colors.colorAlwaysOnBlack) } func testColorsHomogeneityColorAlwaysOnWhite() throws { - assertHomogeneity(inverseTheme.colorAlwaysOnWhite) + assertHomogeneity(inverseTheme.colors.colorAlwaysOnWhite) } func testColorsHomogeneityColorAlwaysWhite() throws { - assertHomogeneity(inverseTheme.colorAlwaysWhite) + assertHomogeneity(inverseTheme.colors.colorAlwaysWhite) } // MARK: - Color - Background func testColorsHomogeneityColorBgEmphasized() throws { - assertHomogeneity(inverseTheme.colorBgEmphasized) + assertHomogeneity(inverseTheme.colors.colorBgEmphasized) } func testColorsHomogeneityColorBgPrimary() throws { - assertHomogeneity(inverseTheme.colorBgPrimary) + assertHomogeneity(inverseTheme.colors.colorBgPrimary) } func testColorsHomogeneityColorBgSecondary() throws { - assertHomogeneity(inverseTheme.colorBgSecondary) + assertHomogeneity(inverseTheme.colors.colorBgSecondary) } func testColorsHomogeneityColorBgTertiary() throws { - assertHomogeneity(inverseTheme.colorBgTertiary) + assertHomogeneity(inverseTheme.colors.colorBgTertiary) } // MARK: - Color - Border func testColorsHomogeneityColorBorderBrandPrimary() throws { - assertHomogeneity(inverseTheme.colorBorderBrandPrimary) + assertHomogeneity(inverseTheme.colors.colorBorderBrandPrimary) } func testColorsHomogeneityColorBorderDefault() throws { - assertHomogeneity(inverseTheme.colorBorderDefault) + assertHomogeneity(inverseTheme.colors.colorBorderDefault) } func testColorsHomogeneityColorBorderEmphasized() throws { - assertHomogeneity(inverseTheme.colorBorderEmphasized) + assertHomogeneity(inverseTheme.colors.colorBorderEmphasized) } func testColorsHomogeneityColorBorderFocus() throws { - assertHomogeneity(inverseTheme.colorBorderFocus) + assertHomogeneity(inverseTheme.colors.colorBorderFocus) } func testColorsHomogeneityColorBorderFocusInset() throws { - assertHomogeneity(inverseTheme.colorBorderFocusInset) + assertHomogeneity(inverseTheme.colors.colorBorderFocusInset) } func testColorsHomogeneityColorBorderOnBrandPrimary() throws { - assertHomogeneity(inverseTheme.colorBorderOnBrandPrimary) + assertHomogeneity(inverseTheme.colors.colorBorderOnBrandPrimary) } // MARK: - Color - Content func testColorsHomogeneityColorContentBrandPrimary() throws { - assertHomogeneity(inverseTheme.colorContentBrandPrimary) + assertHomogeneity(inverseTheme.colors.colorContentBrandPrimary) } func testColorsHomogeneityColorContentDefault() throws { - assertHomogeneity(inverseTheme.colorContentDefault) + assertHomogeneity(inverseTheme.colors.colorContentDefault) } func testColorsHomogeneityColorContentDisabled() throws { - assertHomogeneity(inverseTheme.colorContentDisabled) + assertHomogeneity(inverseTheme.colors.colorContentDisabled) } func testColorsHomogeneityColorContentMuted() throws { - assertHomogeneity(inverseTheme.colorContentMuted) + assertHomogeneity(inverseTheme.colors.colorContentMuted) } func testColorsHomogeneityColorContentOnActionDisabled() throws { - assertHomogeneity(inverseTheme.colorContentOnActionDisabled) + assertHomogeneity(inverseTheme.colors.colorContentOnActionDisabled) } func testColorsHomogeneityColorContentOnActionEnabled() throws { - assertHomogeneity(inverseTheme.colorContentOnActionEnabled) + assertHomogeneity(inverseTheme.colors.colorContentOnActionEnabled) } func testColorsHomogeneityColorContentOnActionFocus() throws { - assertHomogeneity(inverseTheme.colorContentOnActionFocus) + assertHomogeneity(inverseTheme.colors.colorContentOnActionFocus) } func testColorsHomogeneityColorContentOnActionHighlighted() throws { - assertHomogeneity(inverseTheme.colorContentOnActionHighlighted) + assertHomogeneity(inverseTheme.colors.colorContentOnActionHighlighted) } func testColorsHomogeneityColorContentOnActionHover() throws { - assertHomogeneity(inverseTheme.colorContentOnActionHover) + assertHomogeneity(inverseTheme.colors.colorContentOnActionHover) } func testColorsHomogeneityColorContentOnActionLoading() throws { - assertHomogeneity(inverseTheme.colorContentOnActionLoading) + assertHomogeneity(inverseTheme.colors.colorContentOnActionLoading) } func testColorsHomogeneityColorContentOnActionNegative() throws { - assertHomogeneity(inverseTheme.colorContentOnActionNegative) + assertHomogeneity(inverseTheme.colors.colorContentOnActionNegative) } func testColorsHomogeneityColorContentOnActionPressed() throws { - assertHomogeneity(inverseTheme.colorContentOnActionPressed) + assertHomogeneity(inverseTheme.colors.colorContentOnActionPressed) } func testColorsHomogeneityColorContentOnBrandPrimary() throws { - assertHomogeneity(inverseTheme.colorContentOnBrandPrimary) + assertHomogeneity(inverseTheme.colors.colorContentOnBrandPrimary) } func testColorsHomogeneityColorContentOnOverlayEmphasized() throws { - assertHomogeneity(inverseTheme.colorContentOnOverlayEmphasized) + assertHomogeneity(inverseTheme.colors.colorContentOnOverlayEmphasized) } func testColorsHomogeneityColorContentOnStatusEmphasized() throws { - assertHomogeneity(inverseTheme.colorContentOnStatusEmphasized) + assertHomogeneity(inverseTheme.colors.colorContentOnStatusEmphasized) } func testColorsHomogeneityColorContentOnStatusEmphasizedNeutral() throws { - assertHomogeneity(inverseTheme.colorContentOnStatusEmphasizedNeutral) + assertHomogeneity(inverseTheme.colors.colorContentOnStatusEmphasizedNeutral) } func testColorsHomogeneityColorContentOnStatusMuted() throws { - assertHomogeneity(inverseTheme.colorContentOnStatusMuted) + assertHomogeneity(inverseTheme.colors.colorContentOnStatusMuted) } func testColorsHomogeneityColorContentStatusInfo() throws { - assertHomogeneity(inverseTheme.colorContentStatusInfo) + assertHomogeneity(inverseTheme.colors.colorContentStatusInfo) } func testColorsHomogeneityColorContentStatusNegative() throws { - assertHomogeneity(inverseTheme.colorContentStatusNegative) + assertHomogeneity(inverseTheme.colors.colorContentStatusNegative) } func testColorsHomogeneityColorContentStatusPositive() throws { - assertHomogeneity(inverseTheme.colorContentStatusPositive) + assertHomogeneity(inverseTheme.colors.colorContentStatusPositive) } func testColorsHomogeneityColorContentStatusWarning() throws { - assertHomogeneity(inverseTheme.colorContentStatusWarning) + assertHomogeneity(inverseTheme.colors.colorContentStatusWarning) } // MARK: - Color - Overlay func testColorsHomogeneityColorOverlayDefault() throws { - assertHomogeneity(inverseTheme.colorOverlayDefault) + assertHomogeneity(inverseTheme.colors.colorOverlayDefault) } func testColorsHomogeneityColorOverlayDrag() throws { - assertHomogeneity(inverseTheme.colorOverlayDrag) + assertHomogeneity(inverseTheme.colors.colorOverlayDrag) } func testColorsHomogeneityColorOverlayEmphasized() throws { - assertHomogeneity(inverseTheme.colorOverlayEmphasized) + assertHomogeneity(inverseTheme.colors.colorOverlayEmphasized) } func testColorsHomogeneityColorOverlayModal() throws { - assertHomogeneity(inverseTheme.colorOverlayModal) + assertHomogeneity(inverseTheme.colors.colorOverlayModal) } // MARK: - Color - Surface func testColorsHomogeneityColorSurfaceBrandPrimary() throws { - assertHomogeneity(inverseTheme.colorSurfaceBrandPrimary) + assertHomogeneity(inverseTheme.colors.colorSurfaceBrandPrimary) } func testColorsHomogeneityColorSurfaceStatusAccentEmphasized() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusAccentEmphasized) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusAccentEmphasized) } func testColorsHomogeneityColorSurfaceStatusAccentMuted() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusAccentMuted) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusAccentMuted) } func testColorsHomogeneityColorSurfaceStatusInfoEmphasized() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusInfoEmphasized) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusInfoEmphasized) } func testColorsHomogeneityColorSurfaceStatusInfoMuted() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusInfoMuted) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusInfoMuted) } func testColorsHomogeneityColorSurfaceStatusNegativeEmphasized() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusNegativeEmphasized) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusNegativeEmphasized) } func testColorsHomogeneityColorSurfaceStatusNegativeMuted() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusNegativeMuted) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusNegativeMuted) } func testColorsHomogeneityColorSurfaceStatusNeutralEmphasized() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusNeutralEmphasized) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusNeutralEmphasized) } func testColorsHomogeneityColorSurfaceStatusNeutralMuted() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusNeutralMuted) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusNeutralMuted) } func testColorsHomogeneityColorSurfaceStatusPositiveEmphasized() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusPositiveEmphasized) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusPositiveEmphasized) } func testColorsHomogeneityColorSurfaceStatusPositiveMuted() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusPositiveMuted) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusPositiveMuted) } func testColorsHomogeneityColorSurfaceStatusWarningEmphasized() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusWarningEmphasized) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusWarningEmphasized) } func testColorsHomogeneityColorSurfaceStatusWarningMuted() throws { - assertHomogeneity(inverseTheme.colorSurfaceStatusWarningMuted) + assertHomogeneity(inverseTheme.colors.colorSurfaceStatusWarningMuted) } // MARK: - Color - Decorative func testColorsHomogeneityColorDecorativeAccent1Default() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent1Default) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent1Default) } func testColorsHomogeneityColorDecorativeAccent1Emphasized() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent1Emphasized) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent1Emphasized) } func testColorsHomogeneityColorDecorativeAccent1Muted() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent1Muted) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent1Muted) } func testColorsHomogeneityColorDecorativeAccent2Default() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent2Default) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent2Default) } func testColorsHomogeneityColorDecorativeAccent2Emphasized() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent2Emphasized) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent2Emphasized) } func testColorsHomogeneityColorDecorativeAccent2Muted() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent2Muted) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent2Muted) } func testColorsHomogeneityColorDecorativeAccent3Default() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent3Default) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent3Default) } func testColorsHomogeneityColorDecorativeAccent3Emphasized() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent3Emphasized) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent3Emphasized) } func testColorsHomogeneityColorDecorativeAccent3Muted() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent3Muted) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent3Muted) } func testColorsHomogeneityColorDecorativeAccent4Default() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent4Default) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent4Default) } func testColorsHomogeneityColorDecorativeAccent4Emphasized() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent4Emphasized) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent4Emphasized) } func testColorsHomogeneityColorDecorativeAccent4Muted() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent4Muted) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent4Muted) } func testColorsHomogeneityColorDecorativeAccent5Default() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent5Default) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent5Default) } func testColorsHomogeneityColorDecorativeAccent5Emphasized() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent5Emphasized) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent5Emphasized) } func testColorsHomogeneityColorDecorativeAccent5Muted() throws { - assertHomogeneity(inverseTheme.colorDecorativeAccent5Muted) + assertHomogeneity(inverseTheme.colors.colorDecorativeAccent5Muted) } func testColorsHomogeneityColorDecorativeBrandPrimary() throws { - assertHomogeneity(inverseTheme.colorDecorativeBrandPrimary) + assertHomogeneity(inverseTheme.colors.colorDecorativeBrandPrimary) } func testColorsHomogeneityColorDecorativeBrandSecondary() throws { - assertHomogeneity(inverseTheme.colorDecorativeBrandSecondary) + assertHomogeneity(inverseTheme.colors.colorDecorativeBrandSecondary) } func testColorsHomogeneityColorDecorativeBrandTertiary() throws { - assertHomogeneity(inverseTheme.colorDecorativeBrandTertiary) + assertHomogeneity(inverseTheme.colors.colorDecorativeBrandTertiary) } func testColorsHomogeneityColorDecorativeNeutralDefault() throws { - assertHomogeneity(inverseTheme.colorDecorativeNeutralDefault) + assertHomogeneity(inverseTheme.colors.colorDecorativeNeutralDefault) } func testColorsHomogeneityColorDecorativeNeutralEmphasized() throws { - assertHomogeneity(inverseTheme.colorDecorativeNeutralEmphasized) + assertHomogeneity(inverseTheme.colors.colorDecorativeNeutralEmphasized) } func testColorsHomogeneityColorDecorativeNeutralMuted() throws { - assertHomogeneity(inverseTheme.colorDecorativeNeutralMuted) + assertHomogeneity(inverseTheme.colors.colorDecorativeNeutralMuted) } func testColorsHomogeneityColorDecorativeSkinTint100() throws { - assertHomogeneity(inverseTheme.colorDecorativeSkinTint100) + assertHomogeneity(inverseTheme.colors.colorDecorativeSkinTint100) } func testColorsHomogeneityColorDecorativeSkinTint200() throws { - assertHomogeneity(inverseTheme.colorDecorativeSkinTint200) + assertHomogeneity(inverseTheme.colors.colorDecorativeSkinTint200) } func testColorsHomogeneityColorDecorativeSkinTint300() throws { - assertHomogeneity(inverseTheme.colorDecorativeSkinTint300) + assertHomogeneity(inverseTheme.colors.colorDecorativeSkinTint300) } func testColorsHomogeneityColorDecorativeSkinTint400() throws { - assertHomogeneity(inverseTheme.colorDecorativeSkinTint400) + assertHomogeneity(inverseTheme.colors.colorDecorativeSkinTint400) } func testColorsHomogeneityColorDecorativeSkinTint500() throws { - assertHomogeneity(inverseTheme.colorDecorativeSkinTint500) + assertHomogeneity(inverseTheme.colors.colorDecorativeSkinTint500) } func testColorsHomogeneityColorDecorativeSkinTint600() throws { - assertHomogeneity(inverseTheme.colorDecorativeSkinTint600) + assertHomogeneity(inverseTheme.colors.colorDecorativeSkinTint600) } func testColorsHomogeneityColorDecorativeSkinTint700() throws { - assertHomogeneity(inverseTheme.colorDecorativeSkinTint700) + assertHomogeneity(inverseTheme.colors.colorDecorativeSkinTint700) } func testColorsHomogeneityColorDecorativeSkinTint800() throws { - assertHomogeneity(inverseTheme.colorDecorativeSkinTint800) + assertHomogeneity(inverseTheme.colors.colorDecorativeSkinTint800) } func testColorsHomogeneityColorDecorativeSkinTint900() throws { - assertHomogeneity(inverseTheme.colorDecorativeSkinTint900) + assertHomogeneity(inverseTheme.colors.colorDecorativeSkinTint900) } // MARK: - Color - Chart func testColorsHomogeneityColorChartCategoricalTier1() throws { - assertHomogeneity(inverseTheme.colorChartCategoricalTier1) + assertHomogeneity(inverseTheme.colors.colorChartCategoricalTier1) } func testColorsHomogeneityColorChartCategoricalTier2() throws { - assertHomogeneity(inverseTheme.colorChartCategoricalTier2) + assertHomogeneity(inverseTheme.colors.colorChartCategoricalTier2) } func testColorsHomogeneityColorChartCategoricalTier3() throws { - assertHomogeneity(inverseTheme.colorChartCategoricalTier3) + assertHomogeneity(inverseTheme.colors.colorChartCategoricalTier3) } func testColorsHomogeneityColorChartCategoricalTier4() throws { - assertHomogeneity(inverseTheme.colorChartCategoricalTier4) + assertHomogeneity(inverseTheme.colors.colorChartCategoricalTier4) } func testColorsHomogeneityColorChartCategoricalTier5() throws { - assertHomogeneity(inverseTheme.colorChartCategoricalTier5) + assertHomogeneity(inverseTheme.colors.colorChartCategoricalTier5) } func testColorsHomogeneityColorChartCategoricalTier6() throws { - assertHomogeneity(inverseTheme.colorChartCategoricalTier6) + assertHomogeneity(inverseTheme.colors.colorChartCategoricalTier6) } func testColorsHomogeneityColorChartCategoricalTier7() throws { - assertHomogeneity(inverseTheme.colorChartCategoricalTier7) + assertHomogeneity(inverseTheme.colors.colorChartCategoricalTier7) } func testColorsHomogeneityColorChartCategoricalTier8() throws { - assertHomogeneity(inverseTheme.colorChartCategoricalTier8) + assertHomogeneity(inverseTheme.colors.colorChartCategoricalTier8) } func testColorsHomogeneityColorChartCategoricalTier9() throws { - assertHomogeneity(inverseTheme.colorChartCategoricalTier9) + assertHomogeneity(inverseTheme.colors.colorChartCategoricalTier9) } func testColorsHomogeneityColorChartCategoricalTier10() throws { - assertHomogeneity(inverseTheme.colorChartCategoricalTier10) + assertHomogeneity(inverseTheme.colors.colorChartCategoricalTier10) } func testColorsHomogeneityColorChartFunctionalInformation() throws { - assertHomogeneity(inverseTheme.colorChartFunctionalInformation) + assertHomogeneity(inverseTheme.colors.colorChartFunctionalInformation) } func testColorsHomogeneityColorChartFunctionalNegative() throws { - assertHomogeneity(inverseTheme.colorChartFunctionalNegative) + assertHomogeneity(inverseTheme.colors.colorChartFunctionalNegative) } func testColorsHomogeneityColorChartFunctionalPositive() throws { - assertHomogeneity(inverseTheme.colorChartFunctionalPositive) + assertHomogeneity(inverseTheme.colors.colorChartFunctionalPositive) } func testColorsHomogeneityColorChartFunctionalWarning() throws { - assertHomogeneity(inverseTheme.colorChartFunctionalWarning) + assertHomogeneity(inverseTheme.colors.colorChartFunctionalWarning) } func testColorsHomogeneityColorChartGridlines() throws { - assertHomogeneity(inverseTheme.colorChartGridlines) + assertHomogeneity(inverseTheme.colors.colorChartGridlines) } func testColorsHomogeneityColorChartHighlight() throws { - assertHomogeneity(inverseTheme.colorChartHighlight) + assertHomogeneity(inverseTheme.colors.colorChartHighlight) } func testColorsHomogeneityColorChartNeutral() throws { - assertHomogeneity(inverseTheme.colorChartNeutral) + assertHomogeneity(inverseTheme.colors.colorChartNeutral) } // MARK: - Color - Repository func testColorsHomogeneityColorRepositoryAccentDefault() throws { - assertHomogeneity(inverseTheme.colorRepositoryAccentDefault) + assertHomogeneity(inverseTheme.colors.colorRepositoryAccentDefault) } func testColorsHomogeneityColorRepositoryAccentHighest() throws { - assertHomogeneity(inverseTheme.colorRepositoryAccentHighest) + assertHomogeneity(inverseTheme.colors.colorRepositoryAccentHighest) } func testColorsHomogeneityColorRepositoryAccentLow() throws { - assertHomogeneity(inverseTheme.colorRepositoryAccentLow) + assertHomogeneity(inverseTheme.colors.colorRepositoryAccentLow) } func testColorsHomogeneityColorRepositoryAccentLowest() throws { - assertHomogeneity(inverseTheme.colorRepositoryAccentLowest) + assertHomogeneity(inverseTheme.colors.colorRepositoryAccentLowest) } func testColorsHomogeneityColorRepositoryInfoDefault() throws { - assertHomogeneity(inverseTheme.colorRepositoryInfoDefault) + assertHomogeneity(inverseTheme.colors.colorRepositoryInfoDefault) } func testColorsHomogeneityColorRepositoryInfoHighest() throws { - assertHomogeneity(inverseTheme.colorRepositoryInfoHighest) + assertHomogeneity(inverseTheme.colors.colorRepositoryInfoHighest) } func testColorsHomogeneityColorRepositoryInfoLow() throws { - assertHomogeneity(inverseTheme.colorRepositoryInfoLow) + assertHomogeneity(inverseTheme.colors.colorRepositoryInfoLow) } func testColorsHomogeneityColorRepositoryInfoLowest() throws { - assertHomogeneity(inverseTheme.colorRepositoryInfoLowest) + assertHomogeneity(inverseTheme.colors.colorRepositoryInfoLowest) } func testColorsHomogeneityColorRepositoryNegativeDefault() throws { - assertHomogeneity(inverseTheme.colorRepositoryNegativeDefault) + assertHomogeneity(inverseTheme.colors.colorRepositoryNegativeDefault) } func testColorsHomogeneityColorRepositoryNegativeHigh() throws { - assertHomogeneity(inverseTheme.colorRepositoryNegativeHigh) + assertHomogeneity(inverseTheme.colors.colorRepositoryNegativeHigh) } func testColorsHomogeneityColorRepositoryNegativeHigher() throws { - assertHomogeneity(inverseTheme.colorRepositoryNegativeHigher) + assertHomogeneity(inverseTheme.colors.colorRepositoryNegativeHigher) } func testColorsHomogeneityColorRepositoryNegativeHighest() throws { - assertHomogeneity(inverseTheme.colorRepositoryNegativeHighest) + assertHomogeneity(inverseTheme.colors.colorRepositoryNegativeHighest) } func testColorsHomogeneityColorRepositoryNegativeLow() throws { - assertHomogeneity(inverseTheme.colorRepositoryNegativeLow) + assertHomogeneity(inverseTheme.colors.colorRepositoryNegativeLow) } func testColorsHomogeneityColorRepositoryNegativeLower() throws { - assertHomogeneity(inverseTheme.colorRepositoryNegativeLower) + assertHomogeneity(inverseTheme.colors.colorRepositoryNegativeLower) } func testColorsHomogeneityColorRepositoryNegativeLowest() throws { - assertHomogeneity(inverseTheme.colorRepositoryNegativeLowest) + assertHomogeneity(inverseTheme.colors.colorRepositoryNegativeLowest) } func testColorsHomogeneityColorRepositoryNeutralEmphasizedBlack() throws { - assertHomogeneity(inverseTheme.colorRepositoryNeutralEmphasizedBlack) + assertHomogeneity(inverseTheme.colors.colorRepositoryNeutralEmphasizedBlack) } func testColorsHomogeneityColorRepositoryNeutralEmphasizedHigh() throws { - assertHomogeneity(inverseTheme.colorRepositoryNeutralEmphasizedHigh) + assertHomogeneity(inverseTheme.colors.colorRepositoryNeutralEmphasizedHigh) } func testColorsHomogeneityColorRepositoryNeutralEmphasizedHigher() throws { - assertHomogeneity(inverseTheme.colorRepositoryNeutralEmphasizedHigher) + assertHomogeneity(inverseTheme.colors.colorRepositoryNeutralEmphasizedHigher) } func testColorsHomogeneityColorRepositoryNeutralEmphasizedHighest() throws { - assertHomogeneity(inverseTheme.colorRepositoryNeutralEmphasizedHighest) + assertHomogeneity(inverseTheme.colors.colorRepositoryNeutralEmphasizedHighest) } func testColorsHomogeneityColorRepositoryNeutralEmphasizedMedium() throws { - assertHomogeneity(inverseTheme.colorRepositoryNeutralEmphasizedMedium) + assertHomogeneity(inverseTheme.colors.colorRepositoryNeutralEmphasizedMedium) } func testColorsHomogeneityColorRepositoryNeutralMutedLower() throws { - assertHomogeneity(inverseTheme.colorRepositoryNeutralMutedLower) + assertHomogeneity(inverseTheme.colors.colorRepositoryNeutralMutedLower) } func testColorsHomogeneityColorRepositoryNeutralMutedLowest() throws { - assertHomogeneity(inverseTheme.colorRepositoryNeutralMutedLowest) + assertHomogeneity(inverseTheme.colors.colorRepositoryNeutralMutedLowest) } func testColorsHomogeneityColorRepositoryNeutralMutedWhite() throws { - assertHomogeneity(inverseTheme.colorRepositoryNeutralMutedWhite) + assertHomogeneity(inverseTheme.colors.colorRepositoryNeutralMutedWhite) } func testColorsHomogeneityColorRepositoryOpacityBlackHigher() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityBlackHigher) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityBlackHigher) } func testColorsHomogeneityColorRepositoryOpacityBlackHighest() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityBlackHighest) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityBlackHighest) } func testColorsHomogeneityColorRepositoryOpacityBlackLow() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityBlackLow) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityBlackLow) } func testColorsHomogeneityColorRepositoryOpacityBlackLower() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityBlackLower) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityBlackLower) } func testColorsHomogeneityColorRepositoryOpacityBlackLowest() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityBlackLowest) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityBlackLowest) } func testColorsHomogeneityColorRepositoryOpacityBlackMedium() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityBlackMedium) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityBlackMedium) } func testColorsHomogeneityColorRepositoryOpacityBlackTransparent() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityBlackTransparent) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityBlackTransparent) } func testColorsHomogeneityColorRepositoryOpacityInfo() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityInfo) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityInfo) } func testColorsHomogeneityColorRepositoryOpacityNegative() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityNegative) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityNegative) } func testColorsHomogeneityColorRepositoryOpacityPositive() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityPositive) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityPositive) } func testColorsHomogeneityColorRepositoryOpacityWarning() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityWarning) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityWarning) } func testColorsHomogeneityColorRepositoryOpacityWhiteHigh() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityWhiteHigh) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityWhiteHigh) } func testColorsHomogeneityColorRepositoryOpacityWhiteHigher() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityWhiteHigher) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityWhiteHigher) } func testColorsHomogeneityColorRepositoryOpacityWhiteHighest() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityWhiteHighest) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityWhiteHighest) } func testColorsHomogeneityColorRepositoryOpacityWhiteLow() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityWhiteLow) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityWhiteLow) } func testColorsHomogeneityColorRepositoryOpacityWhiteLower() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityWhiteLower) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityWhiteLower) } func testColorsHomogeneityColorRepositoryOpacityWhiteLowest() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityWhiteLowest) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityWhiteLowest) } func testColorsHomogeneityColorRepositoryOpacityWhiteLowTransparent() throws { - assertHomogeneity(inverseTheme.colorRepositoryOpacityWhiteTransparent) + assertHomogeneity(inverseTheme.colors.colorRepositoryOpacityWhiteTransparent) } func testColorsHomogeneityColorRepositoryPositiveDefault() throws { - assertHomogeneity(inverseTheme.colorRepositoryPositiveDefault) + assertHomogeneity(inverseTheme.colors.colorRepositoryPositiveDefault) } func testColorsHomogeneityColorRepositoryPositiveHighest() throws { - assertHomogeneity(inverseTheme.colorRepositoryPositiveHighest) + assertHomogeneity(inverseTheme.colors.colorRepositoryPositiveHighest) } func testColorsHomogeneityColorRepositoryPositiveLow() throws { - assertHomogeneity(inverseTheme.colorRepositoryPositiveLow) + assertHomogeneity(inverseTheme.colors.colorRepositoryPositiveLow) } func testColorsHomogeneityColorRepositoryPositiveLowest() throws { - assertHomogeneity(inverseTheme.colorRepositoryPositiveLowest) + assertHomogeneity(inverseTheme.colors.colorRepositoryPositiveLowest) } func testColorsHomogeneityColorRepositoryPrimaryDefault() throws { - assertHomogeneity(inverseTheme.colorRepositoryPrimaryDefault) + assertHomogeneity(inverseTheme.colors.colorRepositoryPrimaryDefault) } func testColorsHomogeneityColorRepositoryPrimaryLow() throws { - assertHomogeneity(inverseTheme.colorRepositoryPrimaryLow) + assertHomogeneity(inverseTheme.colors.colorRepositoryPrimaryLow) } func testColorsHomogeneityColorRepositoryWarningDefault() throws { - assertHomogeneity(inverseTheme.colorRepositoryWarningDefault) + assertHomogeneity(inverseTheme.colors.colorRepositoryWarningDefault) } func testColorsHomogeneityColorRepositoryWarningHighest() throws { - assertHomogeneity(inverseTheme.colorRepositoryWarningHighest) + assertHomogeneity(inverseTheme.colors.colorRepositoryWarningHighest) } func testColorsHomogeneityColorRepositoryWarningLow() throws { - assertHomogeneity(inverseTheme.colorRepositoryWarningLow) + assertHomogeneity(inverseTheme.colors.colorRepositoryWarningLow) } func testColorsHomogeneityColorRepositoryWarningLowest() throws { - assertHomogeneity(inverseTheme.colorRepositoryWarningLowest) + assertHomogeneity(inverseTheme.colors.colorRepositoryWarningLowest) } } // swiftlint:enable required_deinit diff --git a/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeElevation.swift b/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeElevation.swift index 07f817ec65..f008367585 100644 --- a/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeElevation.swift +++ b/OUDS/Core/Themes/Inverse/Tests/TestInverseThemeElevation.swift @@ -18,7 +18,7 @@ import XCTest // swiftlint:disable required_deinit // swiftlint:disable implicitly_unwrapped_optional -/// `InverseTheme` is a quite particular theme with "inverse" color palette. Is it neuther a light mode theme nor a dark mode theme. +/// `InverseTheme` is a quite particular theme with "inverse" color palette. Is it neither 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. final class TestInverseThemeElevationColors: XCTestCase { @@ -29,14 +29,14 @@ final class TestInverseThemeElevationColors: XCTestCase { } func testElevationColorsEquality() throws { - XCTAssertEqual(inverseTheme.elevationColorDefault.light, inverseTheme.elevationColorDefault.dark) - XCTAssertEqual(inverseTheme.elevationColorNone.light, inverseTheme.elevationColorNone.dark) - XCTAssertEqual(inverseTheme.elevationColorRaised.light, inverseTheme.elevationColorRaised.dark) - XCTAssertEqual(inverseTheme.elevationColorDrag.light, inverseTheme.elevationColorDrag.dark) - XCTAssertEqual(inverseTheme.elevationColorEmphasized.light, inverseTheme.elevationColorEmphasized.dark) - XCTAssertEqual(inverseTheme.elevationColorStickyDefault.light, inverseTheme.elevationColorStickyDefault.dark) - XCTAssertEqual(inverseTheme.elevationColorStickyEmphasized.light, inverseTheme.elevationColorStickyEmphasized.dark) - XCTAssertEqual(inverseTheme.elevationColorStickyNavigationScrolled.light, inverseTheme.elevationColorStickyNavigationScrolled.dark) + XCTAssertEqual(inverseTheme.elevations.elevationColorDefault.light, inverseTheme.elevations.elevationColorDefault.dark) + XCTAssertEqual(inverseTheme.elevations.elevationColorNone.light, inverseTheme.elevations.elevationColorNone.dark) + XCTAssertEqual(inverseTheme.elevations.elevationColorRaised.light, inverseTheme.elevations.elevationColorRaised.dark) + XCTAssertEqual(inverseTheme.elevations.elevationColorDrag.light, inverseTheme.elevations.elevationColorDrag.dark) + XCTAssertEqual(inverseTheme.elevations.elevationColorEmphasized.light, inverseTheme.elevations.elevationColorEmphasized.dark) + XCTAssertEqual(inverseTheme.elevations.elevationColorStickyDefault.light, inverseTheme.elevations.elevationColorStickyDefault.dark) + XCTAssertEqual(inverseTheme.elevations.elevationColorStickyEmphasized.light, inverseTheme.elevations.elevationColorStickyEmphasized.dark) + XCTAssertEqual(inverseTheme.elevations.elevationColorStickyNavigationScrolled.light, inverseTheme.elevations.elevationColorStickyNavigationScrolled.dark) } } diff --git a/OUDS/Core/Themes/Orange/Sources/Declarations/OrangeBrandColorRawTokens.swift b/OUDS/Core/Themes/Orange/Sources/Declarations/OrangeBrandColorRawTokens.swift index 021af79881..2af92a34b2 100644 --- a/OUDS/Core/Themes/Orange/Sources/Declarations/OrangeBrandColorRawTokens.swift +++ b/OUDS/Core/Themes/Orange/Sources/Declarations/OrangeBrandColorRawTokens.swift @@ -11,7 +11,7 @@ // Software description: A SwiftUI components library with code examples for Orange Unified Design System // -/// This enum helps to add new **color raw tokens** exclusive to this theme. +/// This enum helps to add new **color raw tokens** exclusive to this ``OrangeTheme``. /// Such tokens are packed in a _Swift enum_ so as to gather them in one object with the suitable namespace and avoid to have just constants in nothing else /// (i.e. publicly accessible from everywhere). More optimized than _struct_. public enum OrangeBrandColorRawTokens { diff --git a/OUDS/Core/Themes/Orange/Sources/Declarations/OrangeBrandFontRawTokens.swift b/OUDS/Core/Themes/Orange/Sources/Declarations/OrangeBrandFontRawTokens.swift index d8a1f25baa..379b822c38 100644 --- a/OUDS/Core/Themes/Orange/Sources/Declarations/OrangeBrandFontRawTokens.swift +++ b/OUDS/Core/Themes/Orange/Sources/Declarations/OrangeBrandFontRawTokens.swift @@ -11,7 +11,7 @@ // Software description: A SwiftUI components library with code examples for Orange Unified Design System // -/// This enum helps to add new **font raw tokens** exclusive to this theme. +/// This enum helps to add new **font raw tokens** exclusive to this ``OrangeTheme`` /// Such tokens are packed in a _Swift enum_ so as to gather them in one object with the suitable namespace and avoid to have just constants in nothing else /// (i.e. publicly accessible from everywhere). More optimized than _struct_. public enum OrangeBrandFontRawTokens { diff --git a/OUDS/Core/Themes/Orange/Sources/OrangeTheme+SemanticColorTokens.swift b/OUDS/Core/Themes/Orange/Sources/OrangeTheme+SemanticColorTokens.swift index 45a3841b98..aae3477670 100644 --- a/OUDS/Core/Themes/Orange/Sources/OrangeTheme+SemanticColorTokens.swift +++ b/OUDS/Core/Themes/Orange/Sources/OrangeTheme+SemanticColorTokens.swift @@ -11,6 +11,7 @@ // Software description: A SwiftUI components library with code examples for Orange Unified Design System // +import OUDSFoundations import OUDSTokensRaw import OUDSTokensSemantic @@ -22,16 +23,16 @@ import OUDSTokensSemantic /// Overrides some color tokens using values available in ``OrangeBrandColorRawTokens``. /// In fact the *tokenator* is not able to do the magic needed using the JSON file produced by *Figma*. -/// Some color tokens are not isolated by theme in *Figma*, thus the abstract ``OUDSTheme`` faces issues by defining tokens with raw tokens not defined in ``OrangeBrandColorRawTokens`` but in ``OrangeBrandColorRawTokens``. Thus when the ``OUDSTheme``has its colors tokens updated, a manual update must be done to replace unknown tokens by `fatalError` (i.e. must be overriden somewhere somehow) in that file and in this ``OrangeTheme`` files tokens must be overriden and manualy updated with the expected values. +/// Some color tokens are not isolated by theme in *Figma*, thus the abstract `OUDSColorSemanticTokensProvider` in `OUDS` module faces issues by defining tokens with raw tokens not defined in `ColorRawTokens` but in ``OrangeBrandColorRawTokens``. Thus when the `OUDSColorSemanticTokensProvider` has its colors tokens updated, a manual update must be done to replace unknown tokens by `fatalError` (i.e. must be overriden somewhere somehow) in that file and in this ``OrangeTheme`` file tokens must be overriden and manualy updated with the expected values. /// /// // For example, in OUDSTheme colors: /// -/// // This token can be defined because uses colorFunctionalDarkGray400 defined in OrangeBrandColorRawTokens, that's ok -/// override open var colorActionPrimaryHoverLight: ColorSemanticToken { OrangeBrandColorRawTokens.colorFunctionalDarkGray400 } +/// // This token can be defined because uses colorFunctionalDarkGray400 defined in ColorRawTokens, that's ok +/// override open var colorActionPrimaryHoverLight: ColorSemanticToken { ColorRawTokens.colorFunctionalDarkGray400 } /// -/// // This token does not compile because colorOrange500 is in OrangeBrandOrangeBrandColorRawTokens and not OrangeBrandColorRawTokens +/// // This token does not compile because colorOrange500 is in OrangeBrandColorRawTokens and not ColorRawTokens /// // but Figma cannot manage them so the JSON is wrong and the tokenator cannot guess the trick -/// override open var colorActionPrimaryLoadingOnBgEmphasizedLight: ColorSemanticToken { OrangeBrandColorRawTokens.colorOrange500 } +/// override open var colorActionPrimaryLoadingOnBgEmphasizedLight: ColorSemanticToken { ColorRawTokens.colorOrange500 } /// /// // So it must be replaced by to prevent themes to use bad tokens /// // and ensure they will be defined somewhere somehow @@ -40,7 +41,7 @@ import OUDSTokensSemantic /// // And in OrangeTheme colors: /// /// // Token must be overriden -/// override open var colorActionPrimaryLoadingOnBgEmphasizedLight: ColorSemanticToken { OrangeBrandOrangeBrandColorRawTokens.colorOrange500 } +/// override open var colorActionPrimaryLoadingOnBgEmphasizedLight: ColorSemanticToken { OrangeBrandColorRawTokens.colorOrange500 } /// /// // And use the suitable reference in the multiple if existing /// override open var colorActionPrimaryLoadingOnBgEmphasized: MultipleColorSemanticTokens { MultipleColorSemanticTokens(light: colorActionPrimaryLoadingOnBgEmphasizedLight, dark: ...) } @@ -49,7 +50,17 @@ import OUDSTokensSemantic /// /// In few words, we need to keep isolated tokens and brand colors, provide kind of abstract architecture with isolated and overridable themes, but face troubles with *Figma* design kit having conception issues and producing JSON not reflecting the reality making *tokenator* unable to build the expected Swift code. /// We get uncompilable code for color tokens update and need to make the merge manualy. -extension OrangeTheme { +open class OrangeThemeColorSemanticTokensProvider: OUDSColorSemanticTokensProvider { + + // MARK: - Init + + override public init() { + OUDSLogger.debug("Init of OrangeThemeColorSemanticTokensProvider") + } + + deinit { } + + // MARK: - Overrides // NOTE: Picked from OUDSTheme since tokenator update // Define here because using raw tokens not defined in OUDSTheme module diff --git a/OUDS/Core/Themes/Orange/Sources/OrangeTheme.swift b/OUDS/Core/Themes/Orange/Sources/OrangeTheme.swift index 24a57b50d2..6092e0be6c 100644 --- a/OUDS/Core/Themes/Orange/Sources/OrangeTheme.swift +++ b/OUDS/Core/Themes/Orange/Sources/OrangeTheme.swift @@ -12,12 +12,85 @@ // import OUDS +import OUDSFoundations +import OUDSTokensSemantic -/// This is an override of the default basic ``OUDSTheme` and should be seen as the default theme for the OUDS library. -/// It can overrides any properties from its superclass, and can be derived too. +/// This is an override of the default basic `OUDSTheme` and **must be seen as the default theme for the OUDS library**. +/// It can override any properties from its superclass, and can be derived too. +/// The `InverseTheme` inherits from this `OrangeTheme`. +/// +/// To use this theme, inject it to your view using `OUDSThemeableView` and get it through environement variable. +/// +/// ```swift +/// import OUDS // To get OUDSThemeableView +/// import OUDSThemeOrange // To get OrangeTheme +/// import SwiftUI +/// +/// @main +/// struct YourApp: App { +/// var body: some Scene { +/// WindowGroup { +/// OUDSThemeableView(theme: OrangeTheme()) { +/// // Your root view +/// } +/// } +/// } +/// } +/// ``` +/// +/// Then get it: +/// ```swift +/// import OUDS +/// +/// @Environment(\.theme) var theme +/// ``` open class OrangeTheme: OUDSTheme, @unchecked Sendable { - deinit { } + // MARK: - Initializers + + /// Initializes the `OrangeTheme` with its `OrangeThemeColorSemanticTokensProvider` for colors token management + public init() { + OUDSLogger.debug("Init of OrangeTheme") + super.init(colors: OrangeThemeColorSemanticTokensProvider()) + } + + /// Initializes the `OrangeTheme` and lets children classes to user their own tokens implementations. + /// This constructor is defined for `InverseTheme`. + /// - Parameters: + /// - colors: An object providing all the color semantic tokens, as `AllColorSemanticTokens` implementation + public init(colors: AllColorSemanticTokens) { + // Not init log here as constructor used for `InverseTheme` and not for `OrangeTheme` + super.init(colors: colors) + } - // For clarity reasons, please override OUDSTheme properties in extensions + /// Initializes the `OrangeTheme` and lets children classes to user their own tokens implementations + /// - Parameters: + /// - colors: An object providing all the color semantic tokens, as `AllColorSemanticTokens` implementation, default set to `OrangeThemeColorSemanticTokensProvider` + /// - borders: An object providing all the border semantic tokens, as `BorderSemanticTokens` implementation, default set to `OUDSBorderSemanticTokensProvider` + /// - elevations: An object providing all the elevation semantic tokens, by default `AllElevationSemanticTokens`, default set to `OUDSElevationSemanticTokensProvider` + /// - fonts: An object providing all the font semantic tokens, by default `AllFontemanticTokens`, default set to `OUDSFontSemanticTokensProvider` + /// - grids: An object providing all the grid semantic tokens, by default `AllGridSemanticTokens`, default set to `OUDSGridSemanticTokensProvider` + /// - opacities: An object providing all the opacity semantic tokens, as `OpacitySemanticTokens` implementation, default set to `OUDSOpacitySemanticTokensProvider` + /// - sizes: An object providing all the size semantic tokens, as `AllSizeSemanticTokens` implementation, default set to `OUDSSizeSemanticTokensProvider` + /// - spaces: An object providing all the space semantic tokens, as `AllSpaceSemanticTokens` implementation, default set to `OUDSSpaceSemanticTokensProvider` + override public init(colors: AllColorSemanticTokens = OrangeThemeColorSemanticTokensProvider(), + borders: AllBorderSemanticTokens = OUDSBorderSemanticTokensProvider(), + elevations: AllElevationSemanticTokens = OUDSElevationSemanticTokensProvider(), + fonts: AllFontSemanticTokens = OUDSFontSemanticTokensProvider(), + grids: AllGridSemanticTokens = OUDSGridSemanticTokensProvider(), + opacities: AllOpacitySemanticTokens = OUDSOpacitySemanticTokensProvider(), + sizes: AllSizeSemanticTokens = OUDSSizeSemanticTokensProvider(), + spaces: AllSpaceSemanticTokens = OUDSSpaceSemanticTokensProvider()) { + OUDSLogger.debug("Init of OrangeTheme") + super.init(colors: colors, + borders: borders, + elevations: elevations, + fonts: fonts, + grids: grids, + opacities: opacities, + sizes: sizes, + spaces: spaces) + } + + deinit { } } diff --git a/OUDS/Core/Themes/Orange/Sources/TypeAliases/OrangeBrandColorTokens+Aliases.swift b/OUDS/Core/Themes/Orange/Sources/TypeAliases/OrangeBrandColorRawTokens+Aliases.swift similarity index 100% rename from OUDS/Core/Themes/Orange/Sources/TypeAliases/OrangeBrandColorTokens+Aliases.swift rename to OUDS/Core/Themes/Orange/Sources/TypeAliases/OrangeBrandColorRawTokens+Aliases.swift diff --git a/OUDS/Core/Themes/Orange/Sources/_OUDSThemesOrange.docc/OUDSThemesOrange.md b/OUDS/Core/Themes/Orange/Sources/_OUDSThemesOrange.docc/OUDSThemesOrange.md index 0f9a560aa0..f9efbf15e4 100644 --- a/OUDS/Core/Themes/Orange/Sources/_OUDSThemesOrange.docc/OUDSThemesOrange.md +++ b/OUDS/Core/Themes/Orange/Sources/_OUDSThemesOrange.docc/OUDSThemesOrange.md @@ -6,7 +6,227 @@ The Orange theme overrides some tokens from the basic `OUDSTheme` and should be It defines its own colors and override the semantic tokens to use the right colors. This is the default theme any app should use, and can be subclassed to define for example themes dedicated to countries. -It embeds also in its target the brand colors which are not shared not exposed in lower level targets. +It embeds also in its target the brand colors which are not shared nor exposed in lower level targets. + +In other words, this ``OrangeTheme`` is bsaed on the abstract `OUDSTheme`, uses all the *Orange Unified Design System* kit and brings the Orange brand colors and assets. + +## How to use the theme + +You can use ``OrangeTheme`` directly. To use the ``OrangeTheme`` without further modifications, you will have to use the `OUDSThemeableView` for your root view and give it an instance of ``OrangeTheme``. Keep in mind the themes are *Swift class objects* and can be heavy, so you maye use only as instance as singleton and not store any properties. + +```swift +import OUDS // To get OUDSThemeableView +import OUDSThemeOrange // To get OrangeTheme +import SwiftUI + +@main +struct YourApp: App { + var body: some Scene { + WindowGroup { + OUDSThemeableView(theme: OrangeTheme()) { + // Your root view + } + } + } +} +``` + +Then, in your views, you can simply use the theme through an environement variable to get the tokens: + +```swift +import OUDS // To get the theme environment variable +import SwiftUI + +struct SomeView: View { + + // Get OUDS environment variable for theme thanks to themeable view + @Environment(\.theme) var theme + + var body: some View { + + // Use the theme to retrieve the tokens + // For spaces: theme.spaces + // For sizes: theme.sizes + // For borders: theme.borders + // For elevations: theme.elevations + // For opacities: theme.opacities + // For colors: theme.colors + } +} + +``` + +## How to enrich the theme + +You can enrich the ``OrangeTheme`` by subclassing it or by overriding some tokens. + +### By subclassing + +You may want to define your own theme, thus you can override the ``OrangeTheme`` with your own class or just override the providers. + +You will have to override the tokens provider you need. To do that, make a subclass of the provider you target: +- spaces tokens are `OUDSSpaceSemanticTokensProvider` +- sizes tokens are in `OUDSSizeSemanticTokensProvider` +- colors tokens are all defined in `OrangeThemeColorSemanticTokensProvider` +- borders tokens are in `OUDSBorderSemanticTokensProvider` +- elevations tokens are in `OUDSElevationSemanticTokensProvider` +- opacity tokens are in `OUDSOpacitySemanticTokensProvider` +- grid tokens are in `OUDSGridSemanticTokensProvider` +- font tokens are in `OUDSFontSemanticTokensProvider` + +```swift +import OUDSTokensSemantic // To use semantic tokens if needed +import OUDSTokensRaw // To use raw tokens if needed + +// Token provider for spaces + +class YourAppThemeSpaceTokensProvider: OUDSSpaceSemanticTokensProvider { + override var spaceFixedMedium: SpaceSemanticToken { + DimensionRawTokens.dimension400 + } + override var spaceScaledShort: MultipleSpaceSemanticTokens { + MultipleSpaceSemanticTokens(compact: spaceFixedJumbo, regular: spaceFixedJumbo) + } +} + +// Token provider for sizes + +class YourAppThemeSizeTokensProvider: OUDSSizeSemanticTokensProvider { + override var sizeIconDecorative2xl: SizeSemanticToken { + DimensionRawTokens.dimension300 + } + override var sizeIconDecorativeMd: SizeSemanticToken { + DimensionRawTokens.dimension900 + } +} + +// Token provider for colors + +class YourAppThemeColorTokensProvider: OrangeThemeColorSemanticTokensProvider { + override var colorBgSecondary: MultipleColorSemanticTokens { + MultipleColorSemanticTokens(light: ColorRawTokens.colorDecorativeAmber500, dark: OrangeBrandColorRawTokens.colorOrange900) + } + override var colorActionEnabled: MultipleColorSemanticTokens { + MultipleColorSemanticTokens(light: ColorRawTokens.colorDecorativeShockingPink100, dark: ColorRawTokens.colorFunctionalScarlet600) + } +} + +// Token provider for border + +class YourAppThemeBorderTokensProvider: OUDSBorderSemanticTokensProvider { + override var borderStyleDefault: BorderStyleSemanticToken { + BorderRawTokens.borderStyleDashed + } + override var borderWidthMedium: BorderWidthSemanticToken { + BorderRawTokens.borderWidth100 + } + override var borderRadiusTall: BorderRadiusSemanticToken { + BorderRawTokens.borderRadius800 + } +} + +// Token provider for elevation + +class YourAppThemeElevationTokensProvider: OUDSElevationSemanticTokensProvider { + override var elevationStickyEmphasized: ElevationCompositeSemanticToken { + ElevationCompositeSemanticToken(ElevationRawTokens.elevationBottom_4_600) + } +} + +// Token provider for opacity + +class YourAppThemeOpacityTokensProvider: OUDSOpacitySemanticTokensProvider { + override var opacityStrong: OpacitySemanticToken { + OpacityRawTokens.opacity920 + } +} + +// Token provider for grid + +class YourAppThemeGridTokensProvider: OUDSGridSemanticTokensProvider { + override var gridExtraCompactColumnGap: GridSemanticToken { + GridRawTokens.gridColumnGap200 + } + override var gridCompactColumnGap: GridSemanticToken { + GridRawTokens.gridColumnGap200 + } + override var gridRegularColumnGap: GridSemanticToken { + GridRawTokens.gridColumnGap200 + } +} + +// Token provider for font + +class YourAppThemeFontTokensProvider: OUDSFontSemanticTokensProvider { + override var typeDisplayLarge: MultipleFontCompositeRawTokens { + MultipleFontCompositeRawTokens(compact: FontRawTokens.typeRegular150, regular: FontRawTokens.typeRegular150) + } + override var typeCodeMedium: MultipleFontCompositeRawTokens { + MultipleFontCompositeRawTokens(FontRawTokens.typeBold300) + } +} +``` + +Then define your own them class and assign the providers: + +```swift +import OUDS +import OUDSThemesOrange // To get OrangeTheme + +// Define your theme +class YourAppTheme: OrangeTheme { + + override init() { + super.init(colors: YourAppThemeColorTokensProvider(), + borders: YourAppThemeBorderTokensProvider(), + elevations: YourAppThemeElevationTokensProvider(), + fonts: YourAppThemeFontTokensProvider(), + grids: YourAppThemeGridTokensProvider(), + opacities: YourAppThemeOpacityTokensProvider(), + sizes: YourAppThemeSizeTokensProvider(), + spaces: YourAppThemeSpaceTokensProvider()) + } +} +``` + +Then add the theme: + +```swift +import OUDS // To get OUDSThemeableView +import OUDSThemesOrange // To get OrangeTheme + +@main +struct YourApp: App { + var body: some Scene { + WindowGroup { + OUDSThemeableView(theme: OrangeTheme()) { + // Your root view + } + } + } +} +``` + +### By overriding + +Quite simple and similar to the previous solution, but give only the provider to the ``OrangeTheme``. + +For example for colors: + +```swift +import OUDS // To get OUDSThemeableView + +@main +struct YourApp: App { + var body: some Scene { + WindowGroup { + OUDSThemeableView(theme: OrangeTheme(colors: YourAppThemeColorTokensProvider())) { + // Your root view + } + } + } +} +``` ## Topics diff --git a/OUDS/Core/Tokens/ComponentTokens/Sources/_OUDSTokensComponent.docc/OUDSTokensComponent.md b/OUDS/Core/Tokens/ComponentTokens/Sources/_OUDSTokensComponent.docc/OUDSTokensComponent.md index 69a1583ed9..ddaca399ac 100644 --- a/OUDS/Core/Tokens/ComponentTokens/Sources/_OUDSTokensComponent.docc/OUDSTokensComponent.md +++ b/OUDS/Core/Tokens/ComponentTokens/Sources/_OUDSTokensComponent.docc/OUDSTokensComponent.md @@ -7,9 +7,7 @@ These _tokens_ can be used to apply some style and configuration values to _comp Thus if a component need to change for example its _background color_, and if a _component token_ is used for it, then only the value of this _token_ should be changed without any modification on the _component_ definition. _Components_ use _component tokens_ exposed through the _theme_ to get their style values. -We don't have any *component token* implemented yet. - -❗**More details coming soon.**❗ +❗We don't have any *component token* implemented yet.❗ ## Topics diff --git a/OUDS/Core/Tokens/RawTokens/Sources/_OUDSTokensRaw.docc/OUDSTokensRaw.md b/OUDS/Core/Tokens/RawTokens/Sources/_OUDSTokensRaw.docc/OUDSTokensRaw.md index 48f4c9d2c3..3e259fbe62 100644 --- a/OUDS/Core/Tokens/RawTokens/Sources/_OUDSTokensRaw.docc/OUDSTokensRaw.md +++ b/OUDS/Core/Tokens/RawTokens/Sources/_OUDSTokensRaw.docc/OUDSTokensRaw.md @@ -8,9 +8,9 @@ In fact, we choose to use as most as possible primitive types for raw values, li So we expose also in higher level some properties so as to convert when needed some of these types to `SwiftUI` types (like `Font.Weight` and `Color`). -To keep the same semantics as the ones used in our specifications, _typealias_ are used to as to make the links to _primitive types_ and our logic of _tokens_. These type aliases are available for those who want to make their own theme. The idea is to use the same words and grammar as the one used in the *Figma* kit and generaly in the global design system. Then users won't feel lost and will be able to see the same notions the design team handle. +To keep the same semantics as the ones used in our *Figma* specifications, _typealias_ are used to as to make the links to _primitive types_ and our logic of _tokens_. These type aliases are here for those who want to make their own theme. The idea is to use the same words and grammar as the one used in the *Figma* kit and generaly in the global design system. Then users won't feel lost and will be able to see the same notions the design team handle. -Using more simple and primitive types will help also to test the library. With also type aliases we force users to use our types and not higher level types like _SwiftUI_ types. +Using more simple and primitive types will help also to test the library. With also type aliases we force users to use our types and not higher level types like _SwiftUI_ types. Type aliases pointing to raw values will improve also to use of thes values wuthout needing to deal with intermediate types. We also choose to add in _extension_ all the tokens values in a separated file so as to help the *tokenator* to build files to copy and paste easily in the project and keeping all the other objects. In fact, declaring the tokens *enums* in seperated file helps us to document the associated tokens. The tokens are defined in an extension inside dedicated file which can be overriden anytime ; the result is trasnparent for the users. @@ -21,13 +21,13 @@ Example for ``ColorRawTokens``: public typealias ColorRawToken = String /// Possible to write documentation in a seperated file -public enum ColorRawTokens { } // Gathers all color raw tokens +public enum ColorRawTokens { } // Gathers all color raw tokens (in the end, in dedicated file) /// Place in another file which can be updated anytime -extension ColorRawTokens { // In a separated file +extension ColorRawTokens { // All the values - public static let colorFunctionalWhite: ColorRawToken = "#FFFFFF" - public static let colorFunctionalScarlet400: ColorRawToken = "#FF4D4E" + public static let colorFunctionalWhite: ColorRawToken = "#FFFFF00F" + public static let colorFunctionalScarlet400: ColorRawToken = "#FF4D4E00" public static let colorOpacityBlack0: ColorRawToken = "#00000000" ... } @@ -42,22 +42,40 @@ extension String { ## Architecture The *Composites* folder contains some _composite class_ defined to match the objects available in *Figma*. -In fact the design system implementations should expose pack of values so as to gather several tokens in one object. For exemple `ElevationCompositeRawToken` can be used for predefined elevations / box shadows effects, and `FontCompositeRawToken` can be used for predefined typography / fonts. +In fact the design system implementations should expose pack of values so as to gather several tokens in one object. For exemple ``ElevationCompositeRawToken`` can be used for predefined elevations / box shadows effects, and ``FontCompositeRawToken`` can be used for predefined typography / fonts. All such *composites* instances are defined in seperated files. In fact *tokenator* cannot generate such tokens as they are not defined in its JSON file to process because *Figma* is not able to manage *composite tokens*, even if tinkered by the design team. These tokens are updated manualy by the development team. The *Declarations* folder contains all the Swift `enum` objects which will gather the raw tokens. In fact, raw tokens are defined as `static let` _stored properties_, an adding them in an `enum` is more optimized for namespaces reasons. Thus all `public enum` gathering raw tokens are defined there. The *TypeAliases* folder contains all the *typealias* values used for the raw tokens. -Indeed these aliases are here to bring clarity and meanings in the library, and also to help users (i.e. developers) to know what kind of objects they handle with the same vocabulary as the one used in *Figma*, and in general, in the whole design system. They can be seen as a ligh level of abstraction with meanings, without having to define real types with `struct` or `class`. +Indeed these aliases are here to bring clarity and meanings in the library, and also to help users (i.e. developers) to know what kind of objects they handle with the same vocabulary as the one used in *Figma*, and in general, in the whole design system. They can be seen as a light level of abstraction with meanings, without having to define real types with `struct` or `class`. The *Values* folder is maybe the hotter one. -In fact all the raw tokens values are defined there, and if the tokenator generates files, these files must be stored there. It contains only pure raw tokens Swift values, without any type aliases definitions or objects declarations. Generated values are place din _+Values_ files, and composite raw tokens are in _+Composites_. Only composites are updated manualy by the development team. +In fact all the raw tokens values are defined there, and if the tokenator generates files, these files must be stored there. It contains only pure raw tokens Swift values, without any type aliases definitions or objects declarations. Generated values are placed in _+Values_ files, and composite raw tokens are in _+Composites_. Only composites are updated manualy by the development team. In a nutshell, place the generated values somewhere, and the types and objects elsewhere. ## Raw tokens management +### How to use raw tokens + +To use raw tokens you will have to make the suitable import for our _OUDS iOS Swift Package_ product: + +```swift +// Import the product +import OUDSTokensRaw +``` + +Then choose the tokens you want within: +* ``BorderRawTokens`` for borders +* ``ColorRawTokens`` for colors +* ``DimensionRawTokens`` for dimensions +* ``ElevationRawTokens`` for elevations +* ``FontRawTokens`` for fonts +* ``GridRawTokens`` for grids +* ``OpacityRawTokens`` for opacities + ### How to add raw tokens First, you need to define from which family this semantic comes. We have today up to 7 families: *border*, *color*, *dimension*, *elevation*, *grid*, *opacity* and *font*. @@ -76,9 +94,6 @@ Please, respect the nomenclature of the files, e.g. for a new family "Awesome ra As a consequence the composites are defined in a folder, and their values in the *Values* folder in dedicated files. It may imply some synchornization issues between the raw tokens and the composite tokens using them, but we don't have any solution yet. -Then, update the unit tests. We do not test the raw tokens values as they are, because these values will be generated and keeping up to date the unit tests may be time wasting. -But we can however test the relationships between tokens, for exemple for colors if they go lighter and lighter, or for dimensions if they go smaller and smaller. If some raw tokens like font weights strongly rely on the values, we still test these values. - ### How to update or remove raw tokens Quite simple, find the raw token you want to update or remove, and update or remove it. @@ -86,6 +101,13 @@ But beware, if you change the name of the property or if you move it from an `en If you update the value, keep also the CHANGELOG and/or RELEASE NOTE updated so as to let yout users know the variables have been changed. +### About tests of tokens + +When raw tokens have been added, removed or renamed, unit tests must be updated. + +We do not test the raw tokens values as they are, because these values will be generated and keeping up to date the unit tests may be time wasting. +But we can however test the relationships between tokens and some properties like format of data, range of values, if values are factor of others, if colors are dark and darker, if values are bigger and bigger, etc. + ## Topics ### Group diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSBorderSemanticTokensProvider.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSBorderSemanticTokensProvider.swift new file mode 100644 index 0000000000..09d1be6ea2 --- /dev/null +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSBorderSemanticTokensProvider.swift @@ -0,0 +1,67 @@ +// +// 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 OUDSFoundations + +/// A class which wraps all **border semantic tokens** and expose them. +/// This provider should be integrated as a ``AllBorderSemanticTokens`` implementation inside `OUDSTheme` so as to provide +/// all tokens to the users. It helps users to override some of the tokens and assign them to an `OUDSTheme` implementation to use. +/// +/// ```swift +/// // Define your own provider for border semantic tokens +/// class CustomBorderTokensProvider: OUDSBorderSemanticTokensProvider { +/// +/// // Then override the border semantic tokens you want, using the border raw tokens available +/// +/// override var borderStyleDefault: BorderStyleSemanticToken { +/// BorderRawTokens.borderStyleDashed +/// } +/// override var borderWidthMedium: BorderWidthSemanticToken { +/// BorderRawTokens.borderWidth100 +/// } +/// override var borderRadiusTall: BorderRadiusSemanticToken { +/// BorderRawTokens.borderRadius800 +/// } +/// } +/// ``` +/// +/// Then, you can give this `CustomBorderTokensProvider` to your own theme implementation: +/// +/// ```swift +/// class LocalTheme: OrangeTheme { +/// +/// override init() { +/// super.init(borders: CustomBorderTokensProvider(), +/// } +/// } +/// ``` +/// +/// or to an already existing theme for example: +/// +/// ```swift +/// OrangeTheme(borders: CustomBorderTokensProvider()) +/// ``` +open class OUDSBorderSemanticTokensProvider { + + /// Intializes the provider + public init() { + OUDSLogger.debug("Init of OUDSBorderSemanticTokensProvider") + } + + deinit{ } + + // ଘ( ο½₯Ο‰ο½₯)_/゚ο½₯:*:ο½₯ο½‘β˜† + // Note: So as to help the integration of generated code produced by the tokenator + // the implemention of BorderSemanticTokens is not here but in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+BorderSemanticTokens.swift + // This declaration of OUDSBorderSemanticTokensProvider is here to allow to write documentation. +} diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSColorSemanticTokensProvider.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSColorSemanticTokensProvider.swift new file mode 100644 index 0000000000..179430c861 --- /dev/null +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSColorSemanticTokensProvider.swift @@ -0,0 +1,66 @@ +// +// 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 OUDSFoundations + +/// A class which wraps all **color semantic tokens**, *multiple* or not, and expose them. +/// This provider should be integrated as a ``AllColorSemanticTokens`` implementation inside `OUDSTheme` so as to provide +/// all tokens to the users. It helps users to override some of the tokens and assign them to an `OUDSTheme` implementation to use. +/// +/// ```swift +/// // Define your own provider for color semantic tokens +/// class CustomColorTokensProviderr: OUDSColorSemanticTokensProvider { +/// +/// // Then override the color semantic tokens you want, using the color raw tokens available +/// +/// override var colorBgSecondary: MultipleColorSemanticTokens { +/// MultipleColorSemanticTokens(light: ColorRawTokens.colorDecorativeAmber500, dark: OrangeBrandColorRawTokens.colorOrange900) +/// } +/// +/// override var colorActionEnabled: MultipleColorSemanticTokens { +/// MultipleColorSemanticTokens(light: ColorRawTokens.colorDecorativeShockingPink100, dark: ColorRawTokens.colorFunctionalScarlet600) +/// } +/// } +/// ``` +/// +/// Then, you can give this `CustomColorTokensProvider` to your own theme implementation: +/// +/// ```swift +/// class LocalTheme: OrangeTheme { +/// +/// override init() { +/// super.init(colors: CustomColorTokensProvider(), +/// } +/// } +/// ``` +/// +/// or to an already existing theme for example: +/// +/// ```swift +/// OrangeTheme(colors: CustomColorTokensProvider()) +/// ``` +open class OUDSColorSemanticTokensProvider { + + /// Intializes the provider + public init() { + OUDSLogger.debug("Init of OUDSColorSemanticTokensProvider") + } + + deinit{ } + + // ଘ( ο½₯Ο‰ο½₯)_/゚ο½₯:*:ο½₯ο½‘β˜† + // Note: So as to help the integration of generated code produced by the tokenator + // the implemention of ColorSemanticTokens and ColorMultipleSemanticTokens are not here but in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorSemanticTokens.swift + // and OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ColorMultipleSemanticTokens.swift + // This declaration of OUDSColorSemanticTokensProvider is here to allow to write documentation. +} diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSElevationSemanticTokensProvider.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSElevationSemanticTokensProvider.swift new file mode 100644 index 0000000000..9e34fbd84f --- /dev/null +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSElevationSemanticTokensProvider.swift @@ -0,0 +1,64 @@ +// +// 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 OUDSFoundations + +/// A class which wraps all **elevation semantic tokens**, *multiple*, *composite* or not, and expose them. +/// This provider should be integrated as a ``AllElevationSemanticTokens`` implementation inside `OUDSTheme` so as to provide +/// all tokens to the users. It helps users to override some of the tokens and assign them to an `OUDSTheme` implementation to use. +/// +/// ```swift +/// // Define your own provider for elevation semantic tokens +/// class CustomElevationTokensProvider: OUDSElevationSemanticTokensProvider { +/// +/// // Then override the elevation semantic tokens you want, using the elevation raw tokens available +/// +/// override var elevationStickyEmphasized: ElevationCompositeSemanticToken { +/// ElevationCompositeSemanticToken(ElevationRawTokens.elevationBottom_4_600) +/// } +/// } +/// ``` +/// +/// Then, you can give this `CustomElevationTokensProvider` to your own theme implementation: +/// +/// ```swift +/// class LocalTheme: OrangeTheme { +/// +/// override init() { +/// super.init(elevations: CustomElevationTokensProvider(), +/// } +/// } +/// ``` +/// +/// or to an already existing theme for example: +/// +/// ```swift +/// OrangeTheme(elevations: CustomElevationTokensProvider()) +/// ``` +open class OUDSElevationSemanticTokensProvider { + + /// Intializes the provider + public init() { + OUDSLogger.debug("Init of OUDSElevationSemanticTokensProvider") + } + + deinit{ } + + // ଘ( ο½₯Ο‰ο½₯)_/゚ο½₯:*:ο½₯ο½‘β˜† + // Note: So as to help the integration of generated code produced by the tokenator + // the implemention of ElevationSemanticTokens, ElevationCompositeSemanticTokens, ElevationMultipleSemanticTokens are not here + // but in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationSemanticTokens.swift, + // in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationCompositeSemanticTokens.swift, + // and in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+ElevationMultipleSemanticTokens.swift. + // This declaration of OUDSElevationSemanticTokensProvider is here to allow to write documentation. +} diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSFontSemanticTokensProvider.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSFontSemanticTokensProvider.swift new file mode 100644 index 0000000000..42b9b3b604 --- /dev/null +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSFontSemanticTokensProvider.swift @@ -0,0 +1,68 @@ +// +// 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 OUDSFoundations + +/// A class which wraps all **font semantic tokens**, *multiple*, *composite* or not, and expose them. +/// This provider should be integrated as a ``AllFontSemanticTokens`` implementation inside `OUDSTheme` so as to provide +/// all tokens to the users. It helps users to override some of the tokens and assign them to an `OUDSTheme` implementation to use. +/// +/// ```swift +/// // Define your own provider for font semantic tokens +/// class CustomFontTokensProvider: OUDSFontSemanticTokensProvider { +/// +/// // Then override the font semantic tokens you want, using the font raw tokens available +/// +/// override var typeDisplayLarge: MultipleFontCompositeRawTokens { +/// MultipleFontCompositeRawTokens(compact: FontRawTokens.typeRegular150, regular: FontRawTokens.typeRegular150) +/// } +/// +/// override var typeCodeMedium: MultipleFontCompositeRawTokens { +/// MultipleFontCompositeRawTokens(FontRawTokens.typeBold300) +/// } +/// } +/// ``` +/// +/// Then, you can give this `CustomColorTokensProvider` to your own theme implementation: +/// +/// ```swift +/// class LocalTheme: OrangeTheme { +/// +/// override init() { +/// super.init(fonts: CustomFontTokensProvider(), +/// } +/// } +/// ``` +/// +/// or to an already existing theme for example: +/// +/// ```swift +/// OrangeTheme(fonts: CustomFontTokensProvider()) +/// ``` +open class OUDSFontSemanticTokensProvider { + + /// Intializes the provider + public init() { + OUDSLogger.debug("Init of OUDSFontSemanticTokensProvider") + } + + deinit{ } + + // ଘ( ο½₯Ο‰ο½₯)_/゚ο½₯:*:ο½₯ο½‘β˜† + // Note: So as to help the integration of generated code produced by the tokenator + // the implemention of FontSemanticTokens, FontCompositeSemanticTokens, FontMultipleSemanticTokens are not here + // but in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontSemanticTokens.swift, + // in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontCompositeSemanticTokens.swift, + // and in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+FontMultipleSemanticTokens.swift. + // This declaration of OUDSFontSemanticTokensProvider is here to allow to write documentation. +} diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSGridSemanticTokensProvider.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSGridSemanticTokensProvider.swift new file mode 100644 index 0000000000..9862fe50a8 --- /dev/null +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSGridSemanticTokensProvider.swift @@ -0,0 +1,69 @@ +// +// 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 OUDSFoundations + +/// A class which wraps all **grid semantic tokens** and expose them. +/// This provider should be integrated as a ``AllGridSemanticTokens`` implementation inside `OUDSTheme` so as to provide +/// all tokens to the users. It helps users to override some of the tokens and assign them to an `OUDSTheme` implementation to use. +/// +/// ```swift +/// // Define your own provider for grid semantic tokens +/// class CustomGridTokensProvider: OUDSGridSemanticTokensProvider { +/// +/// // Then override the grid semantic tokens you want, using the grid raw tokens available +/// +/// override var gridExtraCompactColumnGap: GridSemanticToken { +/// GridRawTokens.gridColumnGap200 +/// } +/// +/// override var gridCompactColumnGap: GridSemanticToken { +/// GridRawTokens.gridColumnGap200 +/// } +/// +/// override var gridRegularColumnGap: GridSemanticToken { +/// GridRawTokens.gridColumnGap200 +/// } +/// } +/// ``` +/// +/// Then, you can give this `CustomGridTokensProvider` to your own theme implementation: +/// +/// ```swift +/// class LocalTheme: OrangeTheme { +/// +/// override init() { +/// super.init(grids: CustomGridTokensProvider(), +/// } +/// } +/// ``` +/// +/// or to an already existing theme for example: +/// +/// ```swift +/// OrangeTheme(grids: CustomGridTokensProvider()) +/// ``` +open class OUDSGridSemanticTokensProvider { + + /// Intializes the provider + public init() { + OUDSLogger.debug("Init of OUDSGridSemanticTokensProvider") + } + + deinit{ } + + // ଘ( ο½₯Ο‰ο½₯)_/゚ο½₯:*:ο½₯ο½‘β˜† + // Note: So as to help the integration of generated code produced by the tokenator + // the implemention of GridSemanticTokens is not here but in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+GridSemanticTokens.swift + // This declaration of OUDSGridSemanticTokensProvider is here to allow to write documentation. +} diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSOpacitySemanticTokensProvider.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSOpacitySemanticTokensProvider.swift new file mode 100644 index 0000000000..7caff77f94 --- /dev/null +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSOpacitySemanticTokensProvider.swift @@ -0,0 +1,61 @@ +// +// 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 OUDSFoundations + +/// A class which wraps all **opacity semantic tokens** and expose them. +/// This provider should be integrated as a ``AllOpacitySemanticTokens`` implementation inside `OUDSTheme` so as to provide +/// all tokens to the users. It helps users to override some of the tokens and assign them to an `OUDSTheme` implementation to use. +/// +/// ```swift +/// // Define your own provider for opacity semantic tokens +/// class CustomOpacityTokensProvider: OUDSOpacitySemanticTokensProvider { +/// +/// // Then override the opacity semantic tokens you want, using the opacity raw tokens available +/// +/// override var opacityStrong: OpacitySemanticToken { +/// OpacityRawTokens.opacity920 +/// } +/// } +/// ``` +/// +/// Then, you can give this `CustomGridTokensProvider` to your own theme implementation: +/// +/// ```swift +/// class LocalTheme: OrangeTheme { +/// +/// override init() { +/// super.init(opacities: CustomOpacityTokensProvider(), +/// } +/// } +/// ``` +/// +/// or to an already existing theme for example: +/// +/// ```swift +/// OrangeTheme(opacities: CustomOpacityTokensProvider()) +/// ``` +open class OUDSOpacitySemanticTokensProvider { + + /// Intializes the provider + public init() { + OUDSLogger.debug("Init of OUDSOpacitySemanticTokensProvider") + } + + deinit{ } + + // ଘ( ο½₯Ο‰ο½₯)_/゚ο½₯:*:ο½₯ο½‘β˜† + // Note: So as to help the integration of generated code produced by the tokenator + // the implemention of BorderSemanticTokens is not here but in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+OpacitySemanticTokens.swift + // This declaration of OUDSOpacitySemanticTokens is here to allow to write documentation. +} diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSSizeSemanticTokensProvider.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSSizeSemanticTokensProvider.swift new file mode 100644 index 0000000000..933e424f43 --- /dev/null +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSSizeSemanticTokensProvider.swift @@ -0,0 +1,67 @@ +// +// 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 OUDSFoundations + +/// A class which wraps all **size semantic tokens**, *multiple* or not, and expose them. +/// This provider should be integrated as a ``AllSizeSemanticTokens`` implementation inside `OUDSTheme` so as to provide +/// all tokens to the users. It helps users to override some of the tokens and assign them to an `OUDSTheme` implementation to use. +/// +/// ```swift +/// // Define your own provider for size semantic tokens +/// class CustomSizeTokensProvider: OUDSSizeSemanticTokensProvider { +/// +/// // Then override the size semantic tokens you want, using the dimension raw tokens available +/// +/// override var sizeIconDecorative2xl: SizeSemanticToken { +/// DimensionRawTokens.dimension300 +/// } +/// +/// override var sizeIconDecorativeMd: SizeSemanticToken { +/// DimensionRawTokens.dimension900 +/// } +/// } +/// ``` +/// +/// Then, you can give this `CustomSizeTokensProvider` to your own theme implementation: +/// +/// ```swift +/// class LocalTheme: OrangeTheme { +/// +/// override init() { +/// super.init(sizes: CustomSizeTokensProvider(), +/// } +/// } +/// ``` +/// +/// or to an already existing theme for example: +/// +/// ```swift +/// OrangeTheme(sizes: CustomSizeTokensProvider()) +/// ``` +open class OUDSSizeSemanticTokensProvider { + + /// Intializes the provider + public init() { + OUDSLogger.debug("Init of OUDSSizeSemanticTokensProvider") + } + + deinit{ } + + // ଘ( ο½₯Ο‰ο½₯)_/゚ο½₯:*:ο½₯ο½‘β˜† + // Note: So as to help the integration of generated code produced by the tokenator + // the implemention of SizeSemanticTokens and SizeMultipleSemanticTokens are not here + // but in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizeSemanticTokens.swift + // and in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SizeMultipleSemanticTokens.swift. + // This declaration of OUDSSizeSemanticTokensProvider is here to allow to write documentation. +} diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSSpaceSemanticTokensProvider.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSSpaceSemanticTokensProvider.swift new file mode 100644 index 0000000000..d4c88dffdb --- /dev/null +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/OUDSSpaceSemanticTokensProvider.swift @@ -0,0 +1,67 @@ +// +// 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 OUDSFoundations + +/// A class which wraps all **space semantic tokens**, *multiple* or not, and expose them. +/// This provider should be integrated as a ``AllSpaceSemanticTokens`` implementation inside `OUDSTheme` so as to provide +/// all tokens to the users. It helps users to override some of the tokens and assign them to an `OUDSTheme` implementation to use. +/// +/// ```swift +/// // Define your own provider for space semantic tokens +/// class CustomSpaceTokensProvider: OUDSSpaceSemanticTokensProvider { +/// +/// // Then override the space semantic tokens you want, using the dimension raw tokens available +/// +/// override var spaceFixedMedium: SpaceSemanticToken { +/// DimensionRawTokens.dimension400 +/// } +/// +/// override var spaceScaledShort: MultipleSpaceSemanticTokens { +/// MultipleSpaceSemanticTokens(compact: spaceFixedJumbo, regular: spaceFixedJumbo) +/// } +/// } +/// ``` +/// +/// Then, you can give this `CustomSpaceTokensProvider` to your own theme implementation: +/// +/// ```swift +/// class LocalTheme: OrangeTheme { +/// +/// override init() { +/// super.init(spaces: CustomSpaceTokensProvider(), +/// } +/// } +/// ``` +/// +/// or to an already existing theme for example: +/// +/// ```swift +/// OrangeTheme(spaces: CustomSpaceTokenProvider()) +/// ``` +open class OUDSSpaceSemanticTokensProvider { + + /// Intializes the provider + public init() { + OUDSLogger.debug("Init of OUDSSpaceSemanticTokensProvider") + } + + deinit{ } + + // ଘ( ο½₯Ο‰ο½₯)_/゚ο½₯:*:ο½₯ο½‘β˜† + // Note: So as to help the integration of generated code produced by the tokenator + // the implemention of SpaceSemanticTokens and SpaceMultipleSemanticTokens are not here + // but in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SpaceSemanticTokens.swift + // and in OUDS/OUDSTheme/OUDSTheme+SemanticTokens/OUDSTheme+SpaceMultipleSemanticTokens.swift. + // This declaration of OUDSSpaceSemanticTokensProvider is here to allow to write documentation. +} diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/SemanticTokensProviders+TypeAliases.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/SemanticTokensProviders+TypeAliases.swift new file mode 100644 index 0000000000..730812a039 --- /dev/null +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Providers/SemanticTokensProviders+TypeAliases.swift @@ -0,0 +1,52 @@ +// +// 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 +// + +/// A type alias only for ``BorderSemanticTokens`` so as to keep consistency with other type aliases +/// merging several protocols +/// For example ``OUDSBorderSemanticTokensProvider`` matches this type alias. +public typealias AllBorderSemanticTokens = BorderSemanticTokens + +/// A type alias only for ``OpacitySemanticTokens`` so as to keep consistency with other type aliases +/// merging several protocols. +/// For example ``OUDSOpacitySemanticTokensProvider`` matches this type alias. +public typealias AllOpacitySemanticTokens = OpacitySemanticTokens + +/// A type alias only for ``GridSemanticTokens`` so as to keep consistency with other type aliases +/// merging several protocols. +/// For example ``OUDSGridSemanticTokensProvider`` matches this type alias. +public typealias AllGridSemanticTokens = GridSemanticTokens + +/// A type alias which merges ``ColorSemanticTokens`` and ``ColorMultipleSemanticTokens``. +/// It helps in the end to define a provider for all the semantic tokens of colors, multiple or not, generated or not. +/// For example ``OUDSColorSemanticTokensProvider`` matches this type alias. +public typealias AllColorSemanticTokens = ColorSemanticTokens & ColorMultipleSemanticTokens + +/// A type alias which merges ``ElevationSemanticTokens``, ``ElevationCompositeSemanticTokens`` and ``ElevationMultipleSemanticTokens``. +/// It helps in the end to define a provider for all the semantic tokens of elevations, multiple or not, generated or not. +/// For example ``OUDSElevationSemanticTokensProvider`` matches this type alias. +public typealias AllElevationSemanticTokens = ElevationSemanticTokens & ElevationCompositeSemanticTokens & ElevationMultipleSemanticTokens + +/// A type alias which merges ``FontSemanticTokens``, ``FontCompositeSemanticTokens`` and ``FontMultipleSemanticTokens``. +/// It helps in the end to define a provider for all the semantic tokens of fonts, multiple, composite, or not, generated or not. +/// For example ``OUDSFontSemanticTokensProvider`` matches this type alias. +public typealias AllFontSemanticTokens = FontSemanticTokens & FontCompositeSemanticTokens & FontMultipleSemanticTokens + +/// A type alias which merges ``SizeSemanticTokens`` and ``SizeMultipleSemanticTokens``. +/// It helps in the end to define a provider for all the semantic tokens of size, multiple or not, generated or not. +/// For example ``OUDSSizeSemanticTokensProvider`` matches this type alias. +public typealias AllSizeSemanticTokens = SizeSemanticTokens & SizeMultipleSemanticTokens + +/// A type alias which merges ``SpaceSemanticTokens`` and ``SpaceMultipleSemanticTokens``. +/// It helps in the end to define a provider for all the semantic tokens of space, multiple or not, generated or not. +/// For example ``OUDSSpaceSemanticTokensProvider`` matches this type alias. +public typealias AllSpaceSemanticTokens = SpaceSemanticTokens & SpaceMultipleSemanticTokens diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/BorderSemanticTokens.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/BorderSemanticTokens.swift index 67b72a37a4..d8abfde011 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/BorderSemanticTokens.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/BorderSemanticTokens.swift @@ -19,7 +19,7 @@ /// This is a group of semantic tokens for **borders**. /// It defines all ``BorderWidthSemanticToken``, ``BorderRadiusSemanticToken`` and ``BorderStyleSemanticToken`` a theme must have. -/// Any border semantic token must be declared there. +/// Any border semantic token must be declared there as providers like ``OUDSBorderSemanticTokensProvider`` will then expose them through `OUDSTheme`. public protocol BorderSemanticTokens { // MARK: - Semantic token - Border - Width diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ColorMultipleSemanticTokens.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ColorMultipleSemanticTokens.swift index b76f9edc22..084d313db2 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ColorMultipleSemanticTokens.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ColorMultipleSemanticTokens.swift @@ -27,8 +27,8 @@ /// /// ```swift /// // Some color raw tokens, defined by the tokenator (in ColorRawTokens+Values.swift) -/// public static let colorDecorativeAmber100: ColorRawToken = "#FFF0CC" -/// public static let colorDecorativeAmber200: ColorRawToken = "#FFE199" +/// public static let colorDecorativeAmber100: ColorRawToken = "#FFF0CC00" +/// public static let colorDecorativeAmber200: ColorRawToken = "#FFE199FF" /// /// // The color semantic tokens using them /// // declared (in ColorSemanticTokens.swift) and defined (in OUDSTheme+ColorSemanticTokens.swift) by the tokenator diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ElevationCompositeSemanticTokens.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ElevationCompositeSemanticTokens.swift index f901c520f3..6eb0a43710 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ElevationCompositeSemanticTokens.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ElevationCompositeSemanticTokens.swift @@ -25,6 +25,21 @@ /// This protocol makes themes able to provide and override ``ElevationCompositeSemanticToken``. /// ``ElevationCompositeSemanticToken`` refers to ``MultipleElevationCompositeRawTokens``, which contains for light and dark color schemes `ElevationCompositeRawToken`. /// This `ElevationCompositeRawToken` is not managed by tokenator yet as it is composed by three properties. +/// +/// This ``ElevationCompositeSemanticTokens`` protocol contains a set of ``ElevationCompositeSemanticToken``. +/// They can be applied to views and components using `shadow(elevation:)` and `elevation(for:)`: +/// +/// ```swift +/// @Environment(\.theme) var theme +/// @Environment(\.colorScheme) var colorScheme +/// +/// // Given you want to apply the elevation token "elevationRaised" +/// var body: some View { +/// Rectangle() +/// .shadow(elevation: theme.elevations.elevationRaised.elevation(for: colorScheme)) +/// // Or use .light or .dark instead of elevation(for:) +/// } +/// ``` public protocol ElevationCompositeSemanticTokens { var elevationNone: ElevationCompositeSemanticToken { get } diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ElevationMultipleSemanticTokens.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ElevationMultipleSemanticTokens.swift index d58b7f986a..6b50b799f8 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ElevationMultipleSemanticTokens.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/ElevationMultipleSemanticTokens.swift @@ -29,8 +29,8 @@ /// In few words: /// ```swift /// // Some color raw tokens, defined by the tokenator (in ColorRawTokens+Values.swift) -/// public static let colorDecorativeAmber100: ColorRawToken = "#FFF0CC" -/// public static let colorDecorativeAmber200: ColorRawToken = "#FFE199" +/// public static let colorDecorativeAmber100: ColorRawToken = "#FFF0CC00" +/// public static let colorDecorativeAmber200: ColorRawToken = "#FFE199FF" /// /// // The elevation color semantic tokens using them /// // declared (in ElevationSemanticTokens.swift) and defined (in OUDSTheme+ElevationSemanticTokens.swift) by the tokenator diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/FontCompositeSemanticTokens.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/FontCompositeSemanticTokens.swift index 528843f20d..6e4086dd18 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/FontCompositeSemanticTokens.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/FontCompositeSemanticTokens.swift @@ -25,6 +25,24 @@ /// /// This protocol makes themes able to provide and override `FontCompositeRawToken` gathered in ``MultipleFontCompositeRawTokens`` instances. /// This `FontCompositeRawToken` is not managed by tokenator yet as it is composed by several properties. +/// +/// This ``FontCompositeSemanticTokens`` protocol contains a set of ``MultipleFontCompositeRawTokens``. +/// They can be applied to views and components using the helpers provided through `View`, loading four the the font famoly to use: +/// +/// ```swift +/// @Environment(\.theme) var theme +/// +/// // Apply theme.fonts.typeDisplayLarge +/// Text("Foo bar wizz").typeDisplayLarge(theme) +/// +/// // Apply theme.fonts.typeHeadingMedium +/// Text("Foo bar wizz").typeHeadingMedium(theme) +/// +/// // Apply theme.fonts.typeBodyDefaultSmall +/// Text("Foo bar wizz").typeBodyDefaultSmall(theme) +/// +/// // Etc. +/// ``` public protocol FontCompositeSemanticTokens { // MARK: - Semantic tokens - Typography - Composites - Display diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/OpacitySemanticTokens.swift b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/OpacitySemanticTokens.swift index 9230073d18..4388ac1bdd 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Sources/Values/OpacitySemanticTokens.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/Values/OpacitySemanticTokens.swift @@ -19,7 +19,7 @@ /// This is a group of semantic tokens for **opacity.** /// It defines all ``OpacitySemanticToken`` a theme must have. -/// Any opacity semantic token must be declared there. +/// Any opacity semantic token must be declared there as providers like ``OUDSOpacitySemanticTokensProvider`` will then expose them through `OUDSTheme`. public protocol OpacitySemanticTokens { // MARK: Semantic token - Opacity diff --git a/OUDS/Core/Tokens/SemanticTokens/Sources/_OUDSTokensSemantic.docc/OUDSTokensSemantic.md b/OUDS/Core/Tokens/SemanticTokens/Sources/_OUDSTokensSemantic.docc/OUDSTokensSemantic.md index 7ad12d580b..ac55faa5ab 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Sources/_OUDSTokensSemantic.docc/OUDSTokensSemantic.md +++ b/OUDS/Core/Tokens/SemanticTokens/Sources/_OUDSTokensSemantic.docc/OUDSTokensSemantic.md @@ -5,10 +5,11 @@ They can be seen as an high level of usage with functional meanings. ## Overview -If we need for example to change a warning color, supposing this color is defined as a _semantic token_, we only have to change its assigned value and all components using the _semantic token_ won't be impacted in their definition. +If we need for example to change a warning color, supposing this color is defined as a _semantic token_, we only have to change its assigned value and all components using the _semantic token_ won't be impacted in their definition. In fact, semantic tokens are here to bring meaning, semantic, between raw values and components. -In addition, there are hundreds of _semantics tokens_ and we needed to add them to the abstract root theme using extensions for clarity reasons to prevent to have a _Swift class_ with thousands of lines. Each _raw token_ "family" is then declared in its dedicated _Swift protocol_ any root theme must implement. Because we choose to split responsabilities and objects into their own modules, we faced troubles to make possible for children themes to override properties declared in _protocols_ and defined in _extensions_. +In addition, there are hundreds of _semantics tokens_ which must be exposed in the end through the theme. Each _semantic token_ "family" is declared in its dedicated _Swift protocol_. This protocol is then used for the tokens providers embeded inside the theme. +Because we choose to split responsabilities and objects into their own modules, we faced troubles to make possible for children themes to override properties declared in _protocols_ and defined in _extensions_. That is the reason why tokens are exposed as `@objc open` to be available and overridable anywhere. To keep the same semantics as the ones used in our specifications, _typealias_ are used so as to make the links to _primitive types_ and our logic of _tokens_. These type aliases are available for those who want to make their own theme. @@ -25,8 +26,11 @@ protocol ColorSemanticTokens { // ... } -// Define the semantic tokens exposed through the theme -extension OUDSTheme: ColorSemanticTokens { +// Ensure you have a provider +open class OUDSColorSemanticTokensProvider { } + +// Define the semantic tokens to expose through the theme thanks to the provider +extension OUDSColorSemanticTokensProvider: ColorSemanticTokens { // Color is available in the module of OUDSTheme @objc open var colorBgPrimary: ColorSemanticToken { ColorRawTokens.colorFunctionalWhite } @@ -34,7 +38,7 @@ extension OUDSTheme: ColorSemanticTokens { // If the semantic token refers to a raw token not stored in the OUDSTheme module, override later and throw error because unxpected state if used @objc open var colorBgSecondary: ColorSemanticToken { fatalError("πŸ€– Raw token unavailable for colorBgSecondary!") } - // Possible to have tokens not defined in lwoer level must only in themes implementation, throw error if used because unexpected state + // Possible to have tokens not defined in lower level but only in themes implementation, throw error if used because unexpected state @objc open var colorBgTertiary: ColorSemanticToken { fatalError("πŸ€– No value defined for colorBgTertiary!") } } @@ -43,6 +47,7 @@ extension OrangeTheme: ColorSemanticTokens { // Define value value with the accessible token @objc open var colorBgSecondary: ColorSemanticToken { OrangeBrandColorRawTokens.colorOrange200 } + @objc open var colorBgTertiary: ColorSemanticToken { colorBgSecondary } } ``` @@ -50,25 +55,54 @@ extension OrangeTheme: ColorSemanticTokens { The *Multiples* folder contains some _composite class_ defined to pack double values for dedicated needs, like size classes management (_regular_ or _compact_ device modes), and also for color schemes management (_light_ and _dark_ modes). Such *composites* are not the same as the ones defined in the *Figma* design system, they are just utilities to handle tuple of values, without the syntax of tuples and with some helper functions. -We would like to define one class for all combinations of things depending to light and dark modes, and another for regular and compact modes. However, it implies to use _Swift generics_ and it is not compatible with Objective-C runtime (we use through `@objc` keyword). We would like to define one class for all combinations of things depending to light and dark modes, and another for regular and compact modes. However, it implies to use _Swift generics_ and it is not compatible with Objective-C runtime (we use through `@objc` keyword). The *TypeAliases* folder contains all the *typealias* values used for the semantic tokens. -Indeed these aliases are here to bring clarity and meanings in the library, and also to help users (i.e. developers) to know what kind of objects they handle with the same vocabulary as the one used in *Figma*, and in general, in the whole design system. They can be seen as a ligh level of abstraction with meanings, without having to define real types with `struct` or `class`. +Indeed these aliases are here to bring clarity and meanings in the library, and also to help users (i.e. developers) to know what kind of objects they handle with the same vocabulary as the one used in *Figma*, and in general, in the whole design system. They can be seen as a light level of abstraction with meanings, without having to define real types with `struct` or `class`. Type aliases here point to raw tokens aliases, thus by transition they point to real types. -The *Values* folder is maybe the hotter one. -In fact all the semantic tokens values are defined there, and if a JSON to Swift parser generate files, these files must be stored there. We need any _theme_ can embed and override all or some of the tokens, and if a new theme must be implemented from nothing, it must implement all the semantic tokens. Thus each semantic tokens group is declared in a Swft `protocol`. -These protocols list all semantic tokens for each "family". Thus, any theme implementation (at least `OUDSTheme`) must implement the values, and if possible through a _Swift_ extension of the `class` so as to keep seperated the objects. +The *Values* folder contains all the semantic tokens declarations through protocols. These protocols will be then implemented by the providers in higher level (i.e. theme level in *OUDS* product or theme products). + +The *Providers* folder contains the _Swift class_ used for providers. We do not want to store all the semantic and component tokens in the theme, and the use of providers will ilprove the developer experience. It will wrap all tokens by "family" and should expose them through the suitable protocols. +Type aliases are also defined to merge protocols for the same tokens groups. Thus the `OUDSTheme` will contain wrapers expsoed and use through a subset of protocols. + +```swift +// Colors are declared in two protocols: the "simple" and the "multiple" +public protocol ColorSemanticToken { ... } +public protocol ColorMultipleSemanticTokens { ... } + +// These protoocols are merged in type aliase +public typealias AllColorSemanticTokens = ColorSemanticTokens & ColorMultipleSemanticTokens + +// For example, the provider for the colors basically is: +open class OUDSColorSemanticTokensProvider { ... } + +// The provider is composed by protocols containing tokens +extension OUDSColorSemanticTokensProvider: ColorSemanticTokens { + @objc open var colorOpacityInvisibleBlackLight: ColorSemanticToken { ColorRawTokens.colorOpacityBlack0 } + @objc open var colorOpacityInvisibleWhiteLight: ColorSemanticToken { ColorRawTokens.colorOpacityWhite0 } +} +extension OUDSColorSemanticTokensProvider: ColorMultipleSemanticTokens { + @objc open var colorOpacityInvisibleBlack: MultipleColorSemanticTokens { MultipleColorSemanticTokens(light: colorOpacityInvisibleBlackLight, dark: colorOpacityInvisibleBlackDark) } +} + +// The "abstract" object of theme expose the provider through this subset of protocols +open class OUDSTheme: @unchecked Sendable { + public let colors: AllColorSemanticTokens +} -In a nutshell, declare the tokens somewhere in protocols, and define theme in theme implementation. +// And finaly, the default theme, which can be subclassed, exposes the tokens through the provider +open class OrangeTheme: OUDSTheme, @unchecked Sendable { ... } + +theme.colors.colorOpacityInvisibleBlack +``` ## Semantic tokens management ### How to add semantic tokens -First, you need to define which from family this semantic comes. We have today 9 families: *border*, *color*, *dimension*, *elevation*, *grid*, *opacity*, *sizing*, *spacing* and *font*. +First, you need to define which from family this semantic comes. We have today 8 families: *border*, *color*, *elevation*, *grid*, *opacity*, *sizing*, *spacing* and *font*. If your token is not from one of these groups, maybe you should redesign your token or create a new family. To do that, you will have to create a dedicated Swift `protocol`, with a useful name, and declare as a `var` the semantic token. If you already know the family, just update the matching files. @@ -79,8 +113,6 @@ Please, respect the nomenclature of the files, e.g. for a new family "Awesome se - type aliases must be in `AwesomeSemanticTokens+Aliases.swift` - mutiple objects must be in `MultipleAwesomeTokens.swift` -Then, update the unit tests. For each semantic tokens we check if a subtheme can override the token, i.e. update the `MockTheme` by overring the property with a fake value, then compare it to the `OUDSTheme` containing a default value. If you have defined also composite objects, add unit tests to check if they do their job. - ### How to update or remove semantic tokens Quite simple, find the semantic token you want to update or remove, and update or remove it. @@ -88,17 +120,24 @@ But beware, if you change the name of the property or if you move it from a `pro If you update the value, keep also the CHANGELOG and/or RELEASE NOTE updated so as to let yout users know the variables have been changed. +### About tests of tokens + +When semantic tokens have been added, removed or renamed, unit tests must be updated. + +We do not test the semantic tokens values as they are, because these values will be generated and keeping up to date the unit tests may be time wasting. +But for each semantic tokens we check if a subtheme can override the token, i.e. update the `MockTheme` by overring the property with a fake value, then compare it to the `OUDSTheme` or `OtherMockTheme` containing a default value. If you have defined also composite objects, add unit tests to check if they do their job. + ### Some note about composites The *tokenator* is not able today to generate composites tokens, i.e. tokens which contain by definition several properties. -For example, *elevation semantic token* dedicated to bow shadows are composed by several properties (x, y, blur, shadow). -*Font semantic token* can be token containing several properties too (weght, size, spacinf, font family). +For example, *elevation semantic token* dedicated to box shadows are composed by several properties (x, y, blur, shadow). +*Font semantic token* can be token containing several properties too (weight, size, spacing, font family). These are considered as *composite tokens*. They are defined in dedicated protocols and files. Thus when the *tokenator* generates tokens without managing composites, the file can still be used as is with generated tokens, and the composites are not erased. ## How to use semantic tokens -In fact, the semantic tokens are declared and gathered in _Swift protocol_ so as to force any theme to implement them, and also to allow any theme to expose such properties wathever the implementation of the theme is. +In fact, the semantic tokens are declared and gathered in _Swift protocol_ so as to force any theme to implement them, and also to allow any theme to expose such properties wathever the implementation of the theme is, across providers. Because *semantic tokens* have for values *raw tokens*, and these *raw tokens* have for values primitive types, and all these tokens are declared with *type aliases* refering all together, you can handle a *semantic token* directly in your view because the final value will be used. Thus, get the theme and call the needed property with some helpers. @@ -110,16 +149,17 @@ struct SomeView: View { var body: some View { Rectangle() - .frame(width: theme.sizeIconDecorative2Xl, height: theme.sizeIconDecorativeXl) - .foregroundColor(theme.colorBgSecondary.color(for: colorScheme)) - .shadow(elevation: theme.elevationRaised.elevation(for: colorScheme)) - .padding(.bottom, theme.spaceFixedNone) + .frame(width: theme.sizes.sizeIconDecorative2Xl, height: theme.sizes.sizeIconDecorativeXl) + .foregroundColor(theme.colors.colorBgSecondary.color(for: colorScheme)) + .shadow(elevation: theme.elevations.elevationRaised.elevation(for: colorScheme)) + .padding(.bottom, theme.spaces.spaceFixedNone) } /* - The theme provides size semantic tokens "sizeIconDecorative2Xl" and "sizeIconDecorativeXl" - The theme provides a color semantic token "colorBgSecondary" with values for light and dark scheme, and you can use the color(for:) helper - The theme provides an elevation semantic token "elevationRaised" with values for compact and regualr size classes, and you can use the elevation(for:) helper - The theme provides a space semantic token "spaceFixedNone" usable as is + - Environment variables like color scheme must be retrieved through View, and then given to theme */ } diff --git a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleColorSemanticTokenTests.swift b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleColorSemanticTokenTests.swift index 9204565ef8..58dae46be0 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleColorSemanticTokenTests.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleColorSemanticTokenTests.swift @@ -17,7 +17,7 @@ import XCTest // swiftlint:disable required_deinit -/// To ensure the `MultipleColorRawToken` is tested as a wrapper of semantic tokens for light and dark color schemes. +/// To ensure the `MultipleColorRawToken` is tested as a provider of semantic tokens for light and dark color schemes. final class MultipleColorRawTokenTests: XCTestCase { /// Tests if the unique value is applied for light and dark modes diff --git a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleElevationCompositeRawTokensTests.swift b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleElevationCompositeRawTokensTests.swift index c1ba065fe7..8eb100ec4a 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleElevationCompositeRawTokensTests.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleElevationCompositeRawTokensTests.swift @@ -17,7 +17,7 @@ import XCTest // swiftlint:disable required_deinit -/// To ensure the `MultipleElevationCompositeRawTokens` is tested as a wrapper of semantic tokens for light and dark color schemes. +/// To ensure the `MultipleElevationCompositeRawTokens` is tested as a provider of semantic tokens for light and dark color schemes. final class MultipleElevationCompositeRawTokensTests: XCTestCase { /// Tests if the unique value is applied for light and dark modes diff --git a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontLetterSpacingSemanticTokensTests.swift b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontLetterSpacingSemanticTokensTests.swift index cf3ea4fa37..c114ba365a 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontLetterSpacingSemanticTokensTests.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontLetterSpacingSemanticTokensTests.swift @@ -18,7 +18,7 @@ import XCTest // swiftlint:disable required_deinit // swiftlint:disable type_name -/// To ensure the `MultipleFontLetterSpacingSemanticTokens` is tested as a wrapper of semantic tokens for compact and regular size classes. +/// To ensure the `MultipleFontLetterSpacingSemanticTokens` is tested as a provider of semantic tokens for compact and regular size classes. final class MultipleFontLetterSpacingSemanticTokensTests: XCTestCase { /// Tests if the unique value is applied for light and dark modes diff --git a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontLineHeightSemanticTokensTests.swift b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontLineHeightSemanticTokensTests.swift index e2782a6b6c..dd5622e55a 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontLineHeightSemanticTokensTests.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontLineHeightSemanticTokensTests.swift @@ -18,7 +18,7 @@ import XCTest // swiftlint:disable required_deinit // swiftlint:disable type_name -/// To ensure the `MultipleFontLineHeightSemanticTokens` is tested as a wrapper of semantic tokens for compact and regular size classes. +/// To ensure the `MultipleFontLineHeightSemanticTokens` is tested as a provider of semantic tokens for compact and regular size classes. final class MultipleFontLineHeightSemanticTokensTests: XCTestCase { /// Tests if the unique value is applied for light and dark modes diff --git a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontSizeSemanticTokensTests.swift b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontSizeSemanticTokensTests.swift index 21105bba4a..18819f5aea 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontSizeSemanticTokensTests.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleFontSizeSemanticTokensTests.swift @@ -17,7 +17,7 @@ import XCTest // swiftlint:disable required_deinit -/// To ensure the `MultipleFontSizeSemanticTokens` is tested as a wrapper of semantic tokens for compact and regular size classes. +/// To ensure the `MultipleFontSizeSemanticTokens` is tested as a provider of semantic tokens for compact and regular size classes. final class MultipleFontSizeSemanticTokensTests: XCTestCase { /// Tests if the unique value is applied for light and dark modes diff --git a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleSizeSemanticTokenTests.swift b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleSizeSemanticTokenTests.swift index b1f914c864..23c4c01457 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleSizeSemanticTokenTests.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleSizeSemanticTokenTests.swift @@ -16,7 +16,7 @@ import XCTest // swiftlint:disable required_deinit -/// To ensure the `MultipleSizeSemanticTokens` is tested as a wrapper of semantic tokens for compact and regular size classes. +/// To ensure the `MultipleSizeSemanticTokens` is tested as a provider of semantic tokens for compact and regular size classes. final class MultipleSizeSemanticTokensTests: XCTestCase { /// Tests if compact and regular values are preserved when defined diff --git a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleSpaceSemanticTokensTests.swift b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleSpaceSemanticTokensTests.swift index d5370285ed..f0d625c53c 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleSpaceSemanticTokensTests.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleSpaceSemanticTokensTests.swift @@ -17,7 +17,7 @@ import XCTest // swiftlint:disable required_deinit -/// To ensure the `MultipleSpaceSemanticTokens` is tested as a wrapper of semantic tokens for compact and regular size classes. +/// To ensure the `MultipleSpaceSemanticTokens` is tested as a provider of semantic tokens for compact and regular size classes. final class MultipleSpaceSemanticTokensTests: XCTestCase { /// Tests if compact and regular values are preserved when defined diff --git a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleTypographyCompositeRawTokensTests.swift b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleTypographyCompositeRawTokensTests.swift index deb3f72a12..1927a9d6cd 100644 --- a/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleTypographyCompositeRawTokensTests.swift +++ b/OUDS/Core/Tokens/SemanticTokens/Tests/Multiples/MultipleTypographyCompositeRawTokensTests.swift @@ -17,7 +17,7 @@ import XCTest // swiftlint:disable required_deinit -/// To ensure the `MultipleFontCompositeRawTokens` is tested as a wrapper of semantic tokens for compact and regular size classes. +/// To ensure the `MultipleFontCompositeRawTokens` is tested as a provider of semantic tokens for compact and regular size classes. final class MultipleFontCompositeRawTokensTests: XCTestCase { /// Tests if the unique value is applied for compact and regular size classes diff --git a/OUDS/Foundations/Sources/_OUDSFoundations.docc/OUDSFoundations.md b/OUDS/Foundations/Sources/_OUDSFoundations.docc/OUDSFoundations.md index c1759467cc..f79f820c2b 100644 --- a/OUDS/Foundations/Sources/_OUDSFoundations.docc/OUDSFoundations.md +++ b/OUDS/Foundations/Sources/_OUDSFoundations.docc/OUDSFoundations.md @@ -4,7 +4,7 @@ Contains a set of helpers shared for higher level targets. ## Overview -- Helpers to create a *SwiftUI* `Color` from string in hexadecimal format ; -- Helper to get *SwiftUI* `Font.Weight` from a string value ; +- Helpers to create a *SwiftUI* `Color` from string in hexadecimal format +- Helper to get *SwiftUI* `Font.Weight` from a string value - Logger for logging logs in console. diff --git a/OUDS/Modules/Sources/README.md b/OUDS/Modules/Sources/README.md deleted file mode 100644 index 395732c617..0000000000 --- a/OUDS/Modules/Sources/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Modules - -This folder should contain any _modules_ exposed through the OUDS _Swift Package_. -Modules can be seen as set of features and components related to a topic (apps redirections, about, ...). - diff --git a/OUDS/Modules/Sources/_OUDSModules.docc/OUDSModules.md b/OUDS/Modules/Sources/_OUDSModules.docc/OUDSModules.md index e31fe06dbc..f4cebc5efe 100644 --- a/OUDS/Modules/Sources/_OUDSModules.docc/OUDSModules.md +++ b/OUDS/Modules/Sources/_OUDSModules.docc/OUDSModules.md @@ -1,8 +1,9 @@ # ``OUDSModules`` The catalog of all modules provided by OUDS. +A module can be seen as a set of features with some dedicated components. ## Overview -❗**More details coming soon.**❗ +There is no module yet. diff --git a/OUDS/README.md b/OUDS/README.md index 53d5fbc419..8e7f82d887 100644 --- a/OUDS/README.md +++ b/OUDS/README.md @@ -1,13 +1,26 @@ # OUDS Swift Package +- [Summary](#summary) +- [Exposed SPM modules](#exposed-spm-modules) +- [Modules](#modules) +- [Core](#core) + * [Components](#components) + * [Themes](#themes) + * [Tokens](#components) + * [Component tokens](#component-tokens) + * [Semantic tokens](#semantic-tokens) + * [Raw tokens](#raw-tokens) +- [Foundations](#foundations) +- [Structure](#structure) + ## Summary This is the _Swift package_ for the iOS library of *Orange Unified Design System*. -It contains modules, components, themes, and tokens (of components,s emantic and raw) defined by the design team in charge of a unified design. +It contains modules, components, themes, and tokens (of components, semantic and raw) defined by the design team in charge of a unified design. ## Exposed SPM modules -This _Swift package_ exposes up to 10 _products_ as _libraries_: +This _Swift package_ exposes up to 9 _products_ as _libraries_: 1. `OUDSModules` containing OUDS modules with features ; 2. `OUDSComponents` containing all components embeded also inside _modules_ ; 3. `OUDSThemesInverseTheme` providing a _theme_ with inverted colors for _components_; @@ -20,26 +33,32 @@ This _Swift package_ exposes up to 10 _products_ as _libraries_: Feel free to read [this Swift documentation](https://docs.swift.org/package-manager/PackageDescription/PackageDescription.html) if you are not used to _SPM_. +## Modules + +A _module_ can be seen as a set of features and components to fill a need. +There is not module yet. + ## Core ### Components -_Components_ are defined here and can be integrated in applications. +_Components_ are defined here and can be integrated in views. +Components use *semantic tokens* can be be integrated in *modules*. ### Themes -_Themes_ are applications of specific values for _components tokens_ and _semantic tokens_. -A _theme_ contains any relevant _semantic tokens_ and _component tokens_ which can be sued for components rendering. +_Themes_ are applications of specific values for _components tokens_ and _semantic tokens_ sung _raw tokens_. +A _theme_ contains any relevant _semantic tokens_ and _component tokens_ which can be used for components rendering. A _theme_ has also _raw tokens_ associated to primitive types so as to give to _components_, written with _SwiftUI_, the needed values in the suitable type. A _theme_ can add for itself any new _tokens_. This library exposes today up to two themes: -1. `OrangeTheme` which can be seen as the default _theme_ ; -2. `InverseTheme` for other use cases. +1. `OrangeTheme` which can be seen as the default _theme_ +2. `InverseTheme` for very particumar use cases. -They both are based on an `OUDSTheme` defining default values. +The `OUDSTheme` must be seen as a kind of abstract theme. -_Themes_ car defined thanks to `open class` in Swift. It allows inheritance and derivation. -_Themes_ have Swift _extensions_ so as to get the _tokens_ to define. These tokens are overriden thanks to `@objc open` combination so as to make possible to override these values in extensions (thanks to `@objc`) and from objects outside the module (thanks to `open`). Thus we can split values and responsabilities in different _Swift Package Manager targets_ and keep overriding and inheritance possible? +_Themes_ are defined with `open class` in Swift. It allows inheritance and derivation. +_Themes_ have Swift _extensions_ so as to get the _tokens_ to define. These tokens are overriden thanks to `@objc open` combination so as to make possible to override these values in extensions (thanks to `@objc`) and from objects outside the module (thanks to `open`). Thus we can split values and responsabilities in different _Swift Package Manager targets_ and keep overriding and inheritance possible. ### Tokens @@ -65,49 +84,15 @@ These _tokens_ can be used to apply some style and configuration values to _comp Thus if a component need to change for example its _background color_, and if a _component token_ is used for it, then only the value of this _token_ should be changed without any modification on the _component_ definition. _Components_ use _component tokens_ exposed through the _theme_ to get their style values. -❗**More details coming soon.**❗ - #### Semantic tokens These _tokens_ can be used mainly for _component tokens_ to apply some style and configuration values. They can be seen as an high level of usage with functional meanings. -Thus if we need for example to change a warning color, supposing this color is defined as a _semantic token_, we onlyhave to change its assigned value and all components using the _semantic token_ won't be impacted in their definition. -In addition, there are hundreds of _semantics tokens_ and we needed to add them to the abstract root theme using extensions for clarity reasons to prevent to have a _Swift class_ with thousands of lines. Each _raw token_ "family" is then declared in its dedicated _Swift protocol_ any root theme must implement. Because we choose to split responsabilities and objects into their own modules, we faced troubles to make possible for children themes to override properties declared in _protocols_ and defined in _extensions_. -That is the reason why tokens are exposed as `@objc open` to be available and oveeridable anywhere. -To keep the same semantics as the ones used in our specifications, _typealias_ are used to as to make the links to _primitive types_ and our logic of _tokens_. These type aliases are available for those who want to make their own theme. - -Example with `ColorSemanticTokens``: - -```swift -// Declare the semantic tokens -protocol ColorSemanticTokens { - - var colorBgPrimary: ColorSemanticToken { get } - var colorBgSecondary: ColorSemanticToken { get } - var colorBgTertiary: ColorSemanticToken { get } - // ... -} - -// Define the semantic tokens exposed through the theme -extension OUDSTheme: ColorSemanticTokens { - - // Color is available in the module of OUDSTheme - @objc open var colorBgPrimary: ColorSemanticToken { ColorRawTokens.colorFunctionalWhite } - - // If the semantic token refers to a raw token not stored in the OUDSTheme module, override later and throw error because unxpected state if used - @objc open var colorBgSecondary: ColorSemanticToken { fatalError("πŸ€– Raw token unavailable for colorBgSecondary!") } - - // Possible to have tokens not defined in lwoer level must only in themes implementation, throw error if used because unexpected state - @objc open var colorBgTertiary: ColorSemanticToken { fatalError("πŸ€– No value defined for colorBgTertiary!") } -} - -// Add missing values -extension OrangeTheme: ColorSemanticTokens { - // Define value value with the accessible token - @objc open var colorBgSecondary: ColorSemanticToken { OrangeBrandColorRawTokens.colorOrange200 } -} -``` +Thus if we need for example to change a warning color, supposing this color is defined as a _semantic token_, we only have to change its assigned value and all components using the _semantic token_ won't be impacted in their definition. +In addition, there are hundreds of _semantics tokens_ and we needed to add them to the abstract root theme using extensions for clarity reasons to prevent to have a _Swift class_ with thousands of lines. Each _semantic token_ "family" is then declared in its dedicated _Swift protocol_ any root theme must implement through providers. Because we choose to split responsabilities and objects into their own modules, we faced troubles to make possible for children themes to override properties declared in _protocols_ and defined in _extensions_. +That is the reason why tokens are exposed as `@objc open` to be available and oveeridable anywhere. +To keep the same semantics as the ones used in our specifications, _typealias_ are used so as to make the links to _primitive types_ and our logic of _tokens_. These type aliases are available for those who want to make their own theme. #### Raw tokens @@ -121,137 +106,33 @@ Using more simple and primitive types will help also to test the library. With a We also choose to add in _extension_ all the tokens values in a separated file so as to help the *Figma*-JSON-to-Swift parser to build files to copy and past easily in the project and keeping all the other objects. -Example for `ColorRawTokens`: - -```swift -// Define types for color raw tokens -public typealias ColorRawToken = String - -public enum ColorRawTokens { } - -extension ColorRawTokens { // Gathers all color raw tokens - - public static let colorFunctionalWhite: ColorRawToken = "#FFFFFF" - public static let colorFunctionalScarlet400: ColorRawToken = "#FF4D4E" - public static let colorOpacityBlack0: ColorRawToken = "#00000000" - ... -} - -extension String { - public var color: Color { - Color(hexadecimalCode: self) - } -} -``` - ## Foundations _Foundations_ contain some extensions and objects shared between any higher levels of the library. -## Modules - -A _module_ can be seen as a set of features and components to fill a need. -There is not module yet. - -## How to use components - -Import the module of components, and use the component you want: - -```swift -import OUDSComponents // To get the components - -struct YourView: View { - - @State private var writtenText: String = "" - - var body: some View { - OUDSFormsTextInput(placeholder: "Some placeholder to display", value: $writtenText) - } -} -``` - -Of course you must use in your root view the `OUDSThemeableView` with the suitable theme: - -```swift - // The theme can be OrangeTheme or your own - OUDSThemeableView(theme: theTheme) { - - } -``` - -## How to create your own theme - -It is quite simple, you have to follow several steps. - -First, create a _Swift class_ which will inherit from `OrangeTheme` or `OUDSTheme`. -You can see `OrangeTheme` as more specified and less abtract as `OUDSTheme` which is the base of all themes. -Then, you should override the _semantic tokens_ and _components tokens_ you want ; we recommend to use _Swift extensions_ for clarity reasons. -If your theme needs to define its own _raw tokens_, you can also define them using a `enum` and the _raw tokens types_. - -For example: - -```swift -import Foundation -import SwiftUI -import OUDSTokensRaw // To get raw tpkens -import OUDSTokensSemantic // To get semantic tokens -import OUDSTokensComponent // To get component tokens -import OUDSThemesOrange // To override OrangeTheme (which is default theme) - -// Can be for example a country theme -class OrangeCustomTheme: OrangeTheme { } - -extension OrangeCustomTheme { // For FormsTextInputComponentTokens, used in component FormsTextInputComponent - - override public var ftiTitleFontWeight: FontWeightSemanticToken { fontWeightLabelStrong } - override public var ftiTitleFontSize: FontSizeSemanticToken { fontSizeLabelXLarge } - override public var ftiTitleColor: ColorSemanticToken { ColorRawTokens.colorFunctionalDodgerBlue500 } - - override public var ftiSubtitleFontWeight: FontWeightSemanticToken { fontWeightBodyDefault } - override public var ftiSubtitleFontSize: FontSizeSemanticToken { fontSizeLabelMedium } - override public var ftiSubtitleColor: ColorSemanticToken { ColorRawTokens.colorFunctionalMalachite500 } - - override public var ftiBackgroundColor: ColorSemanticToken { colorBgrimary } - - override public var ftiBorderColor: ColorSemanticToken { colorBorderEmphasized } - - override public var ftiBorderStyle: BorderStyleSemanticToken { borderStyleDrag } - - override public var ftiBorderWidth: BorderWidthSemanticToken { borderWidthThick } -} - -extension OrangeCustomTheme { // For ColorSemanticTokens using anywhere - - override var colorBgPrimary: ColorSemanticToken { - MultipleColorSemanticTokens(light: ColorRawTokens.ColorRawTokens.colorFunctionalSun500, dark: ColorRawTokens.ColorRawTokens.colorFunctionalSun800) - } -} -``` - -And your own theme colors _raw tokens_: - -```swift - -public typealias MyThemeColorRawToken = ColorRawToken // Refer to type ColorRawToken for consistency - -public enum MyThemeColorRawTokens { - - public static let someAwesomeThemeExclusiveColor: MyThemeColorRawToken = "#12345600" - -} -``` - -The for your root view: - -```swift -import SwiftUI -import OUDS // To get OUDSThemeableView - -struct MyAppRootView: View { - - var body: some View { - OUDSThemeableView(theme: OrangeCustomTheme()) { - // ... - } - } -} +## Structure + +Here are some explainations about the structure of the directory: +- Core: contains components, OUDS, themes and tokens modules +- Core/Components: contains components and also helpers and view modifiers for them +- Core/OUDS/OUDSTheme: contains the definition of the abstract theme with generated code and also unit tests +- Core/OUDS/OUDSTheme/OUDSTheme+SemanticTokens: contains all the semantic tokens values, generated or not +- Core/Themes: contains the themes definitions exposed through OUDS +- Core/Themes/Inverse: contains the definition of the inverse theme, and tests +- Core/Themes/Orangee: contains the definition of the Orange theme, and tests +- Core/Themes/Orange/Declarations: contains declaration of raw tokens dedicated to Orange theme +- Core/Themes/Orange/TypeAliases: contains declaration of type aliases for raw tokens dedicated to Orange theme +- Core/Themes/Orange/Values: contains definitions of raw tokens dedicated to Orange theme, generated or not +- Core/Tokens/ComponentTokens: contains components tokens +- Core/Tokens/RawTokens: contains declarations of raw tokens, and tests +- Core/Tokens/RawTokens/Composites: contains declarations of composite raw tokens +- Core/Tokens/RawTokens/Declarations: contains declarations of not-composite raw tokens +- Core/Tokens/RawTokens/TypeAliases: contains declarations of typealiases for raw tokens +- Core/Tokens/RawTokens/Values: contains definitions of raw tokens, generated or not, composites or not +- Core/Tokens/SemanticTokens: contains declarations of semantic tokens, and tests +- Core/Tokens/SemanticTokens/Multiples: contains declarations of multiple semantic tokens +- Core/Tokens/SemanticTokens/TypeAliases: contains declarations of typealiases for semantic tokens tokens +- Core/Tokens/SemanticTokens/Values: contains declarations of raw tokens, generated or not, composites, multiple or not +- Core/Tokens/SemanticTokens/Providers: contains definitions of providers of tokens +- Foundations: contains helpers, low level objects and utilities and tests +- Modules: contains modules and tests diff --git a/Showcase/Showcase/MainView.swift b/Showcase/Showcase/MainView.swift index 7832109d33..96480d6e20 100644 --- a/Showcase/Showcase/MainView.swift +++ b/Showcase/Showcase/MainView.swift @@ -35,7 +35,7 @@ struct MainView: View { Label("app_bottomBar_about_label", image: "ic_info") } } - .accentColor(theme.colorContentBrandPrimary.color(for: colorScheme)) + .accentColor(theme.colors.colorContentBrandPrimary.color(for: colorScheme)) } } diff --git a/Showcase/Showcase/Pages/Components/Button/ButtonPage.swift b/Showcase/Showcase/Pages/Components/Button/ButtonPage.swift index 9dfbd56fbc..7f5a56f657 100644 --- a/Showcase/Showcase/Pages/Components/Button/ButtonPage.swift +++ b/Showcase/Showcase/Pages/Components/Button/ButtonPage.swift @@ -103,9 +103,9 @@ struct ButtonIllustration: View { Spacer() } - .padding(.all, theme.spaceFixedMedium) + .padding(.all, theme.spaces.spaceFixedMedium) } - .background(theme.colorBgSecondary.color(for: colorScheme)) + .background(theme.colors.colorBgSecondary.color(for: colorScheme)) } } @@ -122,7 +122,7 @@ struct ButtonConfiguration: View { // MARK: Body var body: some View { - VStack(alignment: .leading, spacing: theme.spaceFixedMedium) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedMedium) { Toggle("Enabled", isOn: $model.enabled) TextField("Button text", text: $model.text) } diff --git a/Showcase/Showcase/Pages/Components/EmptyState/EmptyState.swift b/Showcase/Showcase/Pages/Components/EmptyState/EmptyState.swift index f0f6fc8638..e01307002d 100644 --- a/Showcase/Showcase/Pages/Components/EmptyState/EmptyState.swift +++ b/Showcase/Showcase/Pages/Components/EmptyState/EmptyState.swift @@ -20,21 +20,21 @@ struct EmptyState: View { var body: some View { ScrollView { - VStack(alignment: .center, spacing: theme.spaceFixedMedium) { + VStack(alignment: .center, spacing: theme.spaces.spaceFixedMedium) { Image("il_empty_screen") .accessibilityHidden(true) .frame(width: 160, height: 160, alignment: .center) - VStack(alignment: .center, spacing: theme.spaceFixedShorter) { + VStack(alignment: .center, spacing: theme.spaces.spaceFixedShorter) { Text("app_component_emptyContent_text") .typeHeadingMedium(theme) Text("app_component_emptyContent_description_text") .typeBodyDefaultSmall(theme) } - .padding(.vertical, theme.spaceFixedMedium) + .padding(.vertical, theme.spaces.spaceFixedMedium) } - .padding(.top, theme.spaceFixedJumbo) - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.top, theme.spaces.spaceFixedJumbo) + .padding(.horizontal, theme.spaces.spaceFixedMedium) } } } diff --git a/Showcase/Showcase/Pages/Components/Utils/ComponentPage.swift b/Showcase/Showcase/Pages/Components/Utils/ComponentPage.swift index 46a1f067bc..4cfbc7df80 100644 --- a/Showcase/Showcase/Pages/Components/Utils/ComponentPage.swift +++ b/Showcase/Showcase/Pages/Components/Utils/ComponentPage.swift @@ -43,18 +43,18 @@ struct ComponentConfigurationView: View where Componen // MARK: Body var body: some View { - VStack(alignment: .leading, spacing: theme.spaceFixedMedium) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedMedium) { componentView(configuration) // No padding here, the component erea keep all the frame horizontaly ShowcaseConfiguration { configurationView(configuration) } - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.horizontal, theme.spaces.spaceFixedMedium) ShowcaseCode(code: configuration.code) - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.horizontal, theme.spaces.spaceFixedMedium) } - .padding(.bottom, theme.spaceFixedMedium) + .padding(.bottom, theme.spaces.spaceFixedMedium) } } diff --git a/Showcase/Showcase/Pages/ThemeSelection/ThemeSelection.swift b/Showcase/Showcase/Pages/ThemeSelection/ThemeSelection.swift index b3e6bec979..41e4c96b15 100644 --- a/Showcase/Showcase/Pages/ThemeSelection/ThemeSelection.swift +++ b/Showcase/Showcase/Pages/ThemeSelection/ThemeSelection.swift @@ -121,6 +121,6 @@ struct ThemeSelectionButton: View { .accessibilityLabel("app_topBar_theme_button_a11y") .accessibilityHint("app_topBar_theme_button_hint_a11y") } - .foregroundColor(themeProvider.currentTheme.colorContentBrandPrimary.color(for: colorScheme)) + .foregroundColor(themeProvider.currentTheme.colors.colorContentBrandPrimary.color(for: colorScheme)) } } diff --git a/Showcase/Showcase/Pages/Tokens/Border/BorderTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Border/BorderTokenPage.swift index 1ca14bd4ae..7b9c4d882a 100644 --- a/Showcase/Showcase/Pages/Tokens/Border/BorderTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Border/BorderTokenPage.swift @@ -21,14 +21,14 @@ struct BorderTokenPage: View { @Environment(\.colorScheme) private var colorScheme var body: some View { - VStack(alignment: .leading, spacing: theme.spaceFixedMedium) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedMedium) { Section { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { - ShowcaseCode(code: "theme.borderWidthDefault") + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { + ShowcaseCode(code: "theme.borders.borderWidthDefault") } } Section { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedBorderWidth.allCases, id: \.rawValue) { namedWidth in IllustrationWidth(namedWidth: namedWidth) } @@ -37,11 +37,11 @@ struct BorderTokenPage: View { } header: { Text("app_tokens_border_width_label") .typeHeadingLarge(theme) - .foregroundStyle(theme.colorContentDefault.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentDefault.color(for: colorScheme)) } Section { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedBorderRadius.allCases, id: \.rawValue) { namedRadius in IllustrationRadius(namedRadius: namedRadius) } @@ -50,11 +50,11 @@ struct BorderTokenPage: View { } header: { Text("app_tokens_border_radius_label") .typeHeadingLarge(theme) - .foregroundStyle(theme.colorContentDefault.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentDefault.color(for: colorScheme)) } Section { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedBorderStyle.allCases, id: \.rawValue) { namedStyle in IllustrationStyle(namedStyle: namedStyle) } @@ -63,10 +63,10 @@ struct BorderTokenPage: View { } header: { Text("app_tokens_border_style_label") .typeHeadingLarge(theme) - .foregroundStyle(theme.colorContentDefault.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentDefault.color(for: colorScheme)) } } - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.horizontal, theme.spaces.spaceFixedMedium) } struct RectangleBackground: View { @@ -75,7 +75,7 @@ struct BorderTokenPage: View { var body: some View { Rectangle() - .fill(theme.colorBgSecondary.color(for: colorScheme)) + .fill(theme.colors.colorBgSecondary.color(for: colorScheme)) .frame(width: 64, height: 64) } } @@ -93,10 +93,10 @@ struct BorderTokenPage: View { ShowcaseTokenIllustration(tokenName: name, tokenValue: value) { RectangleBackground() - .oudsBorder(style: theme.borderStyleDefault, + .oudsBorder(style: theme.borders.borderStyleDefault, width: token, - radius: theme.borderRadiusNone, - color: theme.colorBorderDefault) + radius: theme.borders.borderRadiusNone, + color: theme.colors.colorBorderDefault) } } } @@ -114,10 +114,10 @@ struct BorderTokenPage: View { ShowcaseTokenIllustration(tokenName: name, tokenValue: value) { RectangleBackground() - .oudsBorder(style: theme.borderStyleDefault, - width: theme.borderWidthDefault, + .oudsBorder(style: theme.borders.borderStyleDefault, + width: theme.borders.borderWidthDefault, radius: token, - color: theme.colorBorderDefault) + color: theme.colors.colorBorderDefault) } } } @@ -136,9 +136,9 @@ struct BorderTokenPage: View { ShowcaseTokenIllustration(tokenName: name, tokenValue: value) { RectangleBackground() .oudsBorder(style: token, - width: theme.borderWidthDefault, - radius: theme.borderRadiusNone, - color: theme.colorBorderDefault) + width: theme.borders.borderWidthDefault, + radius: theme.borders.borderRadiusNone, + color: theme.colors.colorBorderDefault) } } } @@ -154,15 +154,15 @@ enum NamedBorderRadius: String, CaseIterable { func token(from theme: OUDSTheme) -> BorderRadiusSemanticToken { switch self { case .borderRadiusNone: - return theme.borderRadiusNone + return theme.borders.borderRadiusNone case .borderRadiusDefault: - return theme.borderRadiusDefault + return theme.borders.borderRadiusDefault case .borderRadiusShort: - return theme.borderRadiusShort + return theme.borders.borderRadiusShort case .borderRadiusMedium: - return theme.borderRadiusMedium + return theme.borders.borderRadiusMedium case .borderRadiusTall: - return theme.borderRadiusTall + return theme.borders.borderRadiusTall } } } @@ -180,21 +180,21 @@ enum NamedBorderWidth: String, CaseIterable { func token(from theme: OUDSTheme) -> BorderWidthSemanticToken { switch self { case .borderWidthNone: - return theme.borderWidthNone + return theme.borders.borderWidthNone case .borderWidthDefault: - return theme.borderWidthDefault + return theme.borders.borderWidthDefault case .borderWidthThin: - return theme.borderWidthThin + return theme.borders.borderWidthThin case .borderWidthMedium: - return theme.borderWidthMedium + return theme.borders.borderWidthMedium case .borderWidthThick: - return theme.borderWidthThick + return theme.borders.borderWidthThick case .borderWidthThicker: - return theme.borderWidthThicker + return theme.borders.borderWidthThicker case .borderWidthFocus: - return theme.borderWidthFocus + return theme.borders.borderWidthFocus case .borderWidthFocusInset: - return theme.borderWidthFocusInset + return theme.borders.borderWidthFocusInset } } } @@ -206,9 +206,9 @@ enum NamedBorderStyle: String, CaseIterable { func token(from theme: OUDSTheme) -> BorderStyleSemanticToken { switch self { case .borderStyleDefault: - return theme.borderStyleDefault + return theme.borders.borderStyleDefault case .borderStyleDrag: - return theme.borderStyleDrag + return theme.borders.borderStyleDrag } } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/ColorTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Color/ColorTokenPage.swift index a8d1367cc8..d00f9fec67 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/ColorTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/ColorTokenPage.swift @@ -26,7 +26,7 @@ struct ColorTokenPage: View { var body: some View { Group { Section { - ShowcaseCode(code: "theme.colorBgPrimary.color(for: colorScheme)") + ShowcaseCode(code: "theme.colors.colorBgPrimary.color(for: colorScheme)") } Section { illustrationForAction() } header: { header("Action") } Section { illustrationForAlways() } header: { header("Always") } @@ -40,7 +40,7 @@ struct ColorTokenPage: View { Section { illustrationForRepository() } header: { header("Repository") } Section { illustrationForSurface() } header: { header("Surface") } } - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.horizontal, theme.spaces.spaceFixedMedium) } // MARK: Private helpers @@ -50,7 +50,7 @@ struct ColorTokenPage: View { } private func illustrationForBackground() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedColor.Background.allCases, id: \.rawValue) { namedColorToken in Illustration(token: namedColorToken.token(from: theme), name: namedColorToken.rawValue) } @@ -58,7 +58,7 @@ struct ColorTokenPage: View { } private func illustrationForAction() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedColor.Action.allCases, id: \.rawValue) { namedColorToken in Illustration(token: namedColorToken.token(from: theme), name: namedColorToken.rawValue) } @@ -66,7 +66,7 @@ struct ColorTokenPage: View { } private func illustrationForAlways() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedColor.Always.allCases, id: \.rawValue) { namedColorToken in Illustration(token: namedColorToken.token(from: theme), name: namedColorToken.rawValue) } @@ -74,7 +74,7 @@ struct ColorTokenPage: View { } private func illustrationForChart() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedColor.Chart.allCases, id: \.rawValue) { namedColorToken in Illustration(token: namedColorToken.token(from: theme), name: namedColorToken.rawValue) } @@ -82,7 +82,7 @@ struct ColorTokenPage: View { } private func illustrationForBorder() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedColor.Border.allCases, id: \.rawValue) { namedColorToken in Illustration(token: namedColorToken.token(from: theme), name: namedColorToken.rawValue) } @@ -90,7 +90,7 @@ struct ColorTokenPage: View { } private func illustrationForContent() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedColor.Content.allCases, id: \.rawValue) { namedColorToken in Illustration(token: namedColorToken.token(from: theme), name: namedColorToken.rawValue) } @@ -98,7 +98,7 @@ struct ColorTokenPage: View { } private func illustrationForDecorative() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedColor.Decorative.allCases, id: \.rawValue) { namedColorToken in Illustration(token: namedColorToken.token(from: theme), name: namedColorToken.rawValue) } @@ -106,7 +106,7 @@ struct ColorTokenPage: View { } private func illustrationForOverlay() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedColor.Overlay.allCases, id: \.rawValue) { namedColorToken in Illustration(token: namedColorToken.token(from: theme), name: namedColorToken.rawValue) } @@ -114,7 +114,7 @@ struct ColorTokenPage: View { } private func illustrationForSurface() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedColor.Surface.allCases, id: \.rawValue) { namedColorToken in Illustration(token: namedColorToken.token(from: theme), name: namedColorToken.rawValue) } @@ -122,7 +122,7 @@ struct ColorTokenPage: View { } private func illustrationForOpacity() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedColor.Opacity.allCases, id: \.rawValue) { namedColorToken in Illustration(token: namedColorToken.token(from: theme), name: namedColorToken.rawValue) } @@ -130,7 +130,7 @@ struct ColorTokenPage: View { } private func illustrationForRepository() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedColor.Repository.allCases, id: \.rawValue) { namedColorToken in Illustration(token: namedColorToken.token(from: theme), name: namedColorToken.rawValue) } @@ -153,10 +153,10 @@ struct ColorTokenPage: View { .fill(colorRawToken.color) .frame(width: 64, height: 64) .oudsBorder( - style: theme.borderStyleDefault, - width: theme.borderWidthThin, - radius: theme.borderRadiusNone, - color: theme.colorBorderDefault + style: theme.borders.borderStyleDefault, + width: theme.borders.borderWidthThin, + radius: theme.borders.borderRadiusNone, + color: theme.colors.colorBorderDefault ) } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Action.swift b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Action.swift index 5bd3de6815..d80912c451 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Action.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Action.swift @@ -40,43 +40,43 @@ extension NamedColor { func token(from theme: OUDSTheme) -> MultipleColorSemanticTokens { switch self { case .colorActionDisabled: - return theme.colorActionDisabled + return theme.colors.colorActionDisabled case .colorActionEnabled: - return theme.colorActionEnabled + return theme.colors.colorActionEnabled case .colorActionFocus: - return theme.colorActionFocus + return theme.colors.colorActionFocus case .colorActionHighlighted: - return theme.colorActionHighlighted + return theme.colors.colorActionHighlighted case .colorActionHover: - return theme.colorActionHover + return theme.colors.colorActionHover case .colorActionLoading: - return theme.colorActionLoading + return theme.colors.colorActionLoading case .colorActionNegativeEnabled: - return theme.colorActionNegativeEnabled + return theme.colors.colorActionNegativeEnabled case .colorActionNegativeFocus: - return theme.colorActionNegativeFocus + return theme.colors.colorActionNegativeFocus case .colorActionNegativeHover: - return theme.colorActionNegativeHover + return theme.colors.colorActionNegativeHover case .colorActionNegativeLoading: - return theme.colorActionNegativeLoading + return theme.colors.colorActionNegativeLoading case .colorActionNegativePressed: - return theme.colorActionNegativePressed + return theme.colors.colorActionNegativePressed case .colorActionPressed: - return theme.colorActionPressed + return theme.colors.colorActionPressed case .colorActionSelected: - return theme.colorActionSelected + return theme.colors.colorActionSelected case .colorActionSupportEnabled: - return theme.colorActionSupportEnabled + return theme.colors.colorActionSupportEnabled case .colorActionSupportFocus: - return theme.colorActionSupportFocus + return theme.colors.colorActionSupportFocus case .colorActionSupportHover: - return theme.colorActionSupportHover + return theme.colors.colorActionSupportHover case .colorActionSupportLoading: - return theme.colorActionSupportLoading + return theme.colors.colorActionSupportLoading case .colorActionSupportPressed: - return theme.colorActionSupportPressed + return theme.colors.colorActionSupportPressed case .colorActionVisited: - return theme.colorActionVisited + return theme.colors.colorActionVisited } } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Always.swift b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Always.swift index 8fe506fa81..d77f4ef3f1 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Always.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Always.swift @@ -25,13 +25,13 @@ extension NamedColor { func token(from theme: OUDSTheme) -> MultipleColorSemanticTokens { switch self { case .colorAlwaysBlack: - return theme.colorAlwaysBlack + return theme.colors.colorAlwaysBlack case .colorAlwaysOnBlack: - return theme.colorAlwaysOnBlack + return theme.colors.colorAlwaysOnBlack case .colorAlwaysOnWhite: - return theme.colorAlwaysOnWhite + return theme.colors.colorAlwaysOnWhite case .colorAlwaysWhite: - return theme.colorAlwaysWhite + return theme.colors.colorAlwaysWhite } } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Background.swift b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Background.swift index c386e44b8a..a2d3f21908 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Background.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Background.swift @@ -25,13 +25,13 @@ extension NamedColor { func token(from theme: OUDSTheme) -> MultipleColorSemanticTokens { switch self { case .colorBgEmphasized: - return theme.colorBgEmphasized + return theme.colors.colorBgEmphasized case .colorBgPrimary: - return theme.colorBgPrimary + return theme.colors.colorBgPrimary case .colorBgSecondary: - return theme.colorBgSecondary + return theme.colors.colorBgSecondary case .colorBgTertiary: - return theme.colorBgTertiary + return theme.colors.colorBgTertiary } } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Border.swift b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Border.swift index a4bdd5b31a..ea6325d2ad 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Border.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Border.swift @@ -27,17 +27,17 @@ extension NamedColor { func token(from theme: OUDSTheme) -> MultipleColorSemanticTokens { switch self { case .colorBorderBrandPrimary: - return theme.colorBorderBrandPrimary + return theme.colors.colorBorderBrandPrimary case .colorBorderDefault: - return theme.colorBorderDefault + return theme.colors.colorBorderDefault case .colorBorderEmphasized: - return theme.colorBorderEmphasized + return theme.colors.colorBorderEmphasized case .colorBorderFocus: - return theme.colorBorderFocus + return theme.colors.colorBorderFocus case .colorBorderFocusInset: - return theme.colorBorderFocusInset + return theme.colors.colorBorderFocusInset case .colorBorderOnBrandPrimary: - return theme.colorBorderOnBrandPrimary + return theme.colors.colorBorderOnBrandPrimary } } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Chart.swift b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Chart.swift index e07e1ad1b2..cd0261008b 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Chart.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Chart.swift @@ -38,39 +38,39 @@ extension NamedColor { func token(from theme: OUDSTheme) -> MultipleColorSemanticTokens { switch self { case .colorChartCategoricalTier1: - return theme.colorChartCategoricalTier1 + return theme.colors.colorChartCategoricalTier1 case .colorChartCategoricalTier2: - return theme.colorChartCategoricalTier2 + return theme.colors.colorChartCategoricalTier2 case .colorChartCategoricalTier3: - return theme.colorChartCategoricalTier3 + return theme.colors.colorChartCategoricalTier3 case .colorChartCategoricalTier4: - return theme.colorChartCategoricalTier4 + return theme.colors.colorChartCategoricalTier4 case .colorChartCategoricalTier5: - return theme.colorChartCategoricalTier5 + return theme.colors.colorChartCategoricalTier5 case .colorChartCategoricalTier6: - return theme.colorChartCategoricalTier6 + return theme.colors.colorChartCategoricalTier6 case .colorChartCategoricalTier7: - return theme.colorChartCategoricalTier7 + return theme.colors.colorChartCategoricalTier7 case .colorChartCategoricalTier8: - return theme.colorChartCategoricalTier8 + return theme.colors.colorChartCategoricalTier8 case .colorChartCategoricalTier9: - return theme.colorChartCategoricalTier9 + return theme.colors.colorChartCategoricalTier9 case .colorChartCategoricalTier10: - return theme.colorChartCategoricalTier10 + return theme.colors.colorChartCategoricalTier10 case .colorChartFunctionalInformation: - return theme.colorChartFunctionalInformation + return theme.colors.colorChartFunctionalInformation case .colorChartFunctionalNegative: - return theme.colorChartFunctionalNegative + return theme.colors.colorChartFunctionalNegative case .colorChartFunctionalPositive: - return theme.colorChartFunctionalPositive + return theme.colors.colorChartFunctionalPositive case .colorChartFunctionalWarning: - return theme.colorChartFunctionalWarning + return theme.colors.colorChartFunctionalWarning case .colorChartGridlines: - return theme.colorChartGridlines + return theme.colors.colorChartGridlines case .colorChartHighlight: - return theme.colorChartHighlight + return theme.colors.colorChartHighlight case .colorChartNeutral: - return theme.colorChartNeutral + return theme.colors.colorChartNeutral } } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Content.swift b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Content.swift index 7b66d603f0..c9214c047e 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Content.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Content.swift @@ -42,47 +42,47 @@ extension NamedColor { func token(from theme: OUDSTheme) -> MultipleColorSemanticTokens { switch self { case .colorContentBrandPrimary: - return theme.colorContentBrandPrimary + return theme.colors.colorContentBrandPrimary case .colorContentDefault: - return theme.colorContentDefault + return theme.colors.colorContentDefault case .colorContentDisabled: - return theme.colorContentDisabled + return theme.colors.colorContentDisabled case .colorContentMuted: - return theme.colorContentMuted + return theme.colors.colorContentMuted case .colorContentOnActionDisabled: - return theme.colorContentOnActionDisabled + return theme.colors.colorContentOnActionDisabled case .colorContentOnActionEnabled: - return theme.colorContentOnActionEnabled + return theme.colors.colorContentOnActionEnabled case .colorContentOnActionFocus: - return theme.colorContentOnActionFocus + return theme.colors.colorContentOnActionFocus case .colorContentOnActionHighlighted: - return theme.colorContentOnActionHighlighted + return theme.colors.colorContentOnActionHighlighted case .colorContentOnActionHover: - return theme.colorContentOnActionHover + return theme.colors.colorContentOnActionHover case .colorContentOnActionLoading: - return theme.colorContentOnActionLoading + return theme.colors.colorContentOnActionLoading case .colorContentOnActionNegative: - return theme.colorContentOnActionNegative + return theme.colors.colorContentOnActionNegative case .colorContentOnActionPressed: - return theme.colorContentOnActionPressed + return theme.colors.colorContentOnActionPressed case .colorContentOnBrandPrimary: - return theme.colorContentOnBrandPrimary + return theme.colors.colorContentOnBrandPrimary case .colorContentOnOverlayEmphasized: - return theme.colorContentOnOverlayEmphasized + return theme.colors.colorContentOnOverlayEmphasized case .colorContentOnStatusEmphasized: - return theme.colorContentOnStatusEmphasized + return theme.colors.colorContentOnStatusEmphasized case .colorContentOnStatusEmphasizedNeutral: - return theme.colorContentOnStatusEmphasizedNeutral + return theme.colors.colorContentOnStatusEmphasizedNeutral case .colorContentOnStatusMuted: - return theme.colorContentOnStatusMuted + return theme.colors.colorContentOnStatusMuted case .colorContentStatusInfo: - return theme.colorContentStatusInfo + return theme.colors.colorContentStatusInfo case .colorContentStatusNegative: - return theme.colorContentStatusNegative + return theme.colors.colorContentStatusNegative case .colorContentStatusPositive: - return theme.colorContentStatusPositive + return theme.colors.colorContentStatusPositive case .colorContentStatusWarning: - return theme.colorContentStatusWarning + return theme.colors.colorContentStatusWarning } } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Decorative.swift b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Decorative.swift index 8ecd35c1b4..326265cd6d 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Decorative.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Decorative.swift @@ -53,65 +53,65 @@ extension NamedColor { func token(from theme: OUDSTheme) -> MultipleColorSemanticTokens { switch self { case .colorDecorativeAccent1Default: - return theme.colorDecorativeAccent1Default + return theme.colors.colorDecorativeAccent1Default case .colorDecorativeAccent1Emphasized: - return theme.colorDecorativeAccent1Emphasized + return theme.colors.colorDecorativeAccent1Emphasized case .colorDecorativeAccent1Muted: - return theme.colorDecorativeAccent1Muted + return theme.colors.colorDecorativeAccent1Muted case .colorDecorativeAccent2Default: - return theme.colorDecorativeAccent2Default + return theme.colors.colorDecorativeAccent2Default case .colorDecorativeAccent2Emphasized: - return theme.colorDecorativeAccent2Emphasized + return theme.colors.colorDecorativeAccent2Emphasized case .colorDecorativeAccent2Muted: - return theme.colorDecorativeAccent2Muted + return theme.colors.colorDecorativeAccent2Muted case .colorDecorativeAccent3Default: - return theme.colorDecorativeAccent3Default + return theme.colors.colorDecorativeAccent3Default case .colorDecorativeAccent3Emphasized: - return theme.colorDecorativeAccent3Emphasized + return theme.colors.colorDecorativeAccent3Emphasized case .colorDecorativeAccent3Muted: - return theme.colorDecorativeAccent3Muted + return theme.colors.colorDecorativeAccent3Muted case .colorDecorativeAccent4Default: - return theme.colorDecorativeAccent4Default + return theme.colors.colorDecorativeAccent4Default case .colorDecorativeAccent4Emphasized: - return theme.colorDecorativeAccent4Emphasized + return theme.colors.colorDecorativeAccent4Emphasized case .colorDecorativeAccent4Muted: - return theme.colorDecorativeAccent4Muted + return theme.colors.colorDecorativeAccent4Muted case .colorDecorativeAccent5Default: - return theme.colorDecorativeAccent5Default + return theme.colors.colorDecorativeAccent5Default case .colorDecorativeAccent5Emphasized: - return theme.colorDecorativeAccent5Emphasized + return theme.colors.colorDecorativeAccent5Emphasized case .colorDecorativeAccent5Muted: - return theme.colorDecorativeAccent5Muted + return theme.colors.colorDecorativeAccent5Muted case .colorDecorativeBrandPrimary: - return theme.colorDecorativeBrandPrimary + return theme.colors.colorDecorativeBrandPrimary case .colorDecorativeBrandSecondary: - return theme.colorDecorativeBrandSecondary + return theme.colors.colorDecorativeBrandSecondary case .colorDecorativeBrandTertiary: - return theme.colorDecorativeBrandTertiary + return theme.colors.colorDecorativeBrandTertiary case .colorDecorativeNeutralDefault: - return theme.colorDecorativeNeutralDefault + return theme.colors.colorDecorativeNeutralDefault case .colorDecorativeNeutralEmphasized: - return theme.colorDecorativeNeutralEmphasized + return theme.colors.colorDecorativeNeutralEmphasized case .colorDecorativeNeutralMuted: - return theme.colorDecorativeNeutralMuted + return theme.colors.colorDecorativeNeutralMuted case .colorDecorativeSkinTint100: - return theme.colorDecorativeSkinTint100 + return theme.colors.colorDecorativeSkinTint100 case .colorDecorativeSkinTint200: - return theme.colorDecorativeSkinTint200 + return theme.colors.colorDecorativeSkinTint200 case .colorDecorativeSkinTint300: - return theme.colorDecorativeSkinTint300 + return theme.colors.colorDecorativeSkinTint300 case .colorDecorativeSkinTint400: - return theme.colorDecorativeSkinTint400 + return theme.colors.colorDecorativeSkinTint400 case .colorDecorativeSkinTint500: - return theme.colorDecorativeSkinTint500 + return theme.colors.colorDecorativeSkinTint500 case .colorDecorativeSkinTint600: - return theme.colorDecorativeSkinTint600 + return theme.colors.colorDecorativeSkinTint600 case .colorDecorativeSkinTint700: - return theme.colorDecorativeSkinTint700 + return theme.colors.colorDecorativeSkinTint700 case .colorDecorativeSkinTint800: - return theme.colorDecorativeSkinTint800 + return theme.colors.colorDecorativeSkinTint800 case .colorDecorativeSkinTint900: - return theme.colorDecorativeSkinTint900 + return theme.colors.colorDecorativeSkinTint900 } } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Opacity.swift b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Opacity.swift index 5d8b9fd767..909b05f746 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Opacity.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Opacity.swift @@ -23,9 +23,9 @@ extension NamedColor { func token(from theme: OUDSTheme) -> MultipleColorSemanticTokens { switch self { case .colorOpacityInvisibleBlack: - return theme.colorOpacityInvisibleBlack + return theme.colors.colorOpacityInvisibleBlack case .colorOpacityInvisibleWhite: - return theme.colorOpacityInvisibleWhite + return theme.colors.colorOpacityInvisibleWhite } } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Overlay.swift b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Overlay.swift index 9143d998b1..b563a5419a 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Overlay.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Overlay.swift @@ -25,13 +25,13 @@ extension NamedColor { func token(from theme: OUDSTheme) -> MultipleColorSemanticTokens { switch self { case .colorOverlayDefault: - return theme.colorOverlayDefault + return theme.colors.colorOverlayDefault case .colorOverlayDrag: - return theme.colorOverlayDrag + return theme.colors.colorOverlayDrag case .colorOverlayEmphasized: - return theme.colorOverlayEmphasized + return theme.colors.colorOverlayEmphasized case .colorOverlayModal: - return theme.colorOverlayModal + return theme.colors.colorOverlayModal } } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Repository.swift b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Repository.swift index 0bff14c548..b7416ed4b9 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Repository.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Repository.swift @@ -74,107 +74,107 @@ extension NamedColor { func token(from theme: OUDSTheme) -> MultipleColorSemanticTokens { switch self { case .colorRepositoryAccentDefault: - return theme.colorRepositoryAccentDefault + return theme.colors.colorRepositoryAccentDefault case .colorRepositoryAccentHighest: - return theme.colorRepositoryAccentHighest + return theme.colors.colorRepositoryAccentHighest case .colorRepositoryAccentLow: - return theme.colorRepositoryAccentLow + return theme.colors.colorRepositoryAccentLow case .colorRepositoryAccentLowest: - return theme.colorRepositoryAccentLowest + return theme.colors.colorRepositoryAccentLowest case .colorRepositoryInfoDefault: - return theme.colorRepositoryInfoDefault + return theme.colors.colorRepositoryInfoDefault case .colorRepositoryInfoHighest: - return theme.colorRepositoryInfoHighest + return theme.colors.colorRepositoryInfoHighest case .colorRepositoryInfoLow: - return theme.colorRepositoryInfoLow + return theme.colors.colorRepositoryInfoLow case .colorRepositoryInfoLowest: - return theme.colorRepositoryInfoLowest + return theme.colors.colorRepositoryInfoLowest case .colorRepositoryNegativeDefault: - return theme.colorRepositoryNegativeDefault + return theme.colors.colorRepositoryNegativeDefault case .colorRepositoryNegativeHigh: - return theme.colorRepositoryNegativeHigh + return theme.colors.colorRepositoryNegativeHigh case .colorRepositoryNegativeHigher: - return theme.colorRepositoryNegativeHigher + return theme.colors.colorRepositoryNegativeHigher case .colorRepositoryNegativeHighest: - return theme.colorRepositoryNegativeHighest + return theme.colors.colorRepositoryNegativeHighest case .colorRepositoryNegativeLow: - return theme.colorRepositoryNegativeLow + return theme.colors.colorRepositoryNegativeLow case .colorRepositoryNegativeLower: - return theme.colorRepositoryNegativeLower + return theme.colors.colorRepositoryNegativeLower case .colorRepositoryNegativeLowest: - return theme.colorRepositoryNegativeLowest + return theme.colors.colorRepositoryNegativeLowest case .colorRepositoryNeutralEmphasizedBlack: - return theme.colorRepositoryNeutralEmphasizedBlack + return theme.colors.colorRepositoryNeutralEmphasizedBlack case .colorRepositoryNeutralEmphasizedHigh: - return theme.colorRepositoryNeutralEmphasizedHigh + return theme.colors.colorRepositoryNeutralEmphasizedHigh case .colorRepositoryNeutralEmphasizedHigher: - return theme.colorRepositoryNeutralEmphasizedHigher + return theme.colors.colorRepositoryNeutralEmphasizedHigher case .colorRepositoryNeutralEmphasizedHighest: - return theme.colorRepositoryNeutralEmphasizedHighest + return theme.colors.colorRepositoryNeutralEmphasizedHighest case .colorRepositoryNeutralEmphasizedMedium: - return theme.colorRepositoryNeutralEmphasizedMedium + return theme.colors.colorRepositoryNeutralEmphasizedMedium case .colorRepositoryNeutralMutedLower: - return theme.colorRepositoryNeutralMutedLower + return theme.colors.colorRepositoryNeutralMutedLower case .colorRepositoryNeutralMutedLowest: - return theme.colorRepositoryNeutralMutedLowest + return theme.colors.colorRepositoryNeutralMutedLowest case .colorRepositoryNeutralMutedWhite: - return theme.colorRepositoryNeutralMutedWhite + return theme.colors.colorRepositoryNeutralMutedWhite case .colorRepositoryOpacityBlackHigher: - return theme.colorRepositoryOpacityBlackHigher + return theme.colors.colorRepositoryOpacityBlackHigher case .colorRepositoryOpacityBlackHighest: - return theme.colorRepositoryOpacityBlackHighest + return theme.colors.colorRepositoryOpacityBlackHighest case .colorRepositoryOpacityBlackLow: - return theme.colorRepositoryOpacityBlackLow + return theme.colors.colorRepositoryOpacityBlackLow case .colorRepositoryOpacityBlackLower: - return theme.colorRepositoryOpacityBlackLower + return theme.colors.colorRepositoryOpacityBlackLower case .colorRepositoryOpacityBlackLowest: - return theme.colorRepositoryOpacityBlackLowest + return theme.colors.colorRepositoryOpacityBlackLowest case .colorRepositoryOpacityBlackMedium: - return theme.colorRepositoryOpacityBlackMedium + return theme.colors.colorRepositoryOpacityBlackMedium case .colorRepositoryOpacityBlackTransparent: - return theme.colorRepositoryOpacityBlackTransparent + return theme.colors.colorRepositoryOpacityBlackTransparent case .colorRepositoryOpacityInfo: - return theme.colorRepositoryOpacityInfo + return theme.colors.colorRepositoryOpacityInfo case .colorRepositoryOpacityNegative: - return theme.colorRepositoryOpacityNegative + return theme.colors.colorRepositoryOpacityNegative case .colorRepositoryOpacityPositive: - return theme.colorRepositoryOpacityPositive + return theme.colors.colorRepositoryOpacityPositive case .colorRepositoryOpacityWarning: - return theme.colorRepositoryOpacityWarning + return theme.colors.colorRepositoryOpacityWarning case .colorRepositoryOpacityWhiteHigh: - return theme.colorRepositoryOpacityWhiteHigh + return theme.colors.colorRepositoryOpacityWhiteHigh case .colorRepositoryOpacityWhiteHigher: - return theme.colorRepositoryOpacityWhiteHigher + return theme.colors.colorRepositoryOpacityWhiteHigher case .colorRepositoryOpacityWhiteHighest: - return theme.colorRepositoryOpacityWhiteHighest + return theme.colors.colorRepositoryOpacityWhiteHighest case .colorRepositoryOpacityWhiteLow: - return theme.colorRepositoryOpacityWhiteLow + return theme.colors.colorRepositoryOpacityWhiteLow case .colorRepositoryOpacityWhiteLower: - return theme.colorRepositoryOpacityWhiteLower + return theme.colors.colorRepositoryOpacityWhiteLower case .colorRepositoryOpacityWhiteLowest: - return theme.colorRepositoryOpacityWhiteLowest + return theme.colors.colorRepositoryOpacityWhiteLowest case .colorRepositoryOpacityWhiteTransparent: - return theme.colorRepositoryOpacityWhiteTransparent + return theme.colors.colorRepositoryOpacityWhiteTransparent case .colorRepositoryPositiveDefault: - return theme.colorRepositoryPositiveDefault + return theme.colors.colorRepositoryPositiveDefault case .colorRepositoryPositiveHighest: - return theme.colorRepositoryPositiveHighest + return theme.colors.colorRepositoryPositiveHighest case .colorRepositoryPositiveLow: - return theme.colorRepositoryPositiveLow + return theme.colors.colorRepositoryPositiveLow case .colorRepositoryPositiveLowest: - return theme.colorRepositoryPositiveLowest + return theme.colors.colorRepositoryPositiveLowest case .colorRepositoryPrimaryDefault: - return theme.colorRepositoryPrimaryDefault + return theme.colors.colorRepositoryPrimaryDefault case .colorRepositoryPrimaryLow: - return theme.colorRepositoryPrimaryLow + return theme.colors.colorRepositoryPrimaryLow case .colorRepositoryWarningDefault: - return theme.colorRepositoryWarningDefault + return theme.colors.colorRepositoryWarningDefault case .colorRepositoryWarningHighest: - return theme.colorRepositoryWarningHighest + return theme.colors.colorRepositoryWarningHighest case .colorRepositoryWarningLow: - return theme.colorRepositoryWarningLow + return theme.colors.colorRepositoryWarningLow case .colorRepositoryWarningLowest: - return theme.colorRepositoryWarningLowest + return theme.colors.colorRepositoryWarningLowest } } } diff --git a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Surface.swift b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Surface.swift index 16464bee4e..9500e28dda 100644 --- a/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Surface.swift +++ b/Showcase/Showcase/Pages/Tokens/Color/NamedColor/NamedColor+Surface.swift @@ -34,31 +34,31 @@ extension NamedColor { func token(from theme: OUDSTheme) -> MultipleColorSemanticTokens { switch self { case .colorSurfaceBrandPrimary: - return theme.colorSurfaceBrandPrimary + return theme.colors.colorSurfaceBrandPrimary case .colorSurfaceStatusAccentEmphasized: - return theme.colorSurfaceStatusAccentEmphasized + return theme.colors.colorSurfaceStatusAccentEmphasized case .colorSurfaceStatusAccentMuted: - return theme.colorSurfaceStatusAccentMuted + return theme.colors.colorSurfaceStatusAccentMuted case .colorSurfaceStatusInfoEmphasized: - return theme.colorSurfaceStatusInfoEmphasized + return theme.colors.colorSurfaceStatusInfoEmphasized case .colorSurfaceStatusInfoMuted: - return theme.colorSurfaceStatusInfoMuted + return theme.colors.colorSurfaceStatusInfoMuted case .colorSurfaceStatusNegativeEmphasized: - return theme.colorSurfaceStatusNegativeEmphasized + return theme.colors.colorSurfaceStatusNegativeEmphasized case .colorSurfaceStatusNegativeMuted: - return theme.colorSurfaceStatusNegativeMuted + return theme.colors.colorSurfaceStatusNegativeMuted case .colorSurfaceStatusNeutralEmphasized: - return theme.colorSurfaceStatusNeutralEmphasized + return theme.colors.colorSurfaceStatusNeutralEmphasized case .colorSurfaceStatusNeutralMuted: - return theme.colorSurfaceStatusNeutralMuted + return theme.colors.colorSurfaceStatusNeutralMuted case .colorSurfaceStatusPositiveEmphasized: - return theme.colorSurfaceStatusPositiveEmphasized + return theme.colors.colorSurfaceStatusPositiveEmphasized case .colorSurfaceStatusPositiveMuted: - return theme.colorSurfaceStatusPositiveMuted + return theme.colors.colorSurfaceStatusPositiveMuted case .colorSurfaceStatusWarningEmphasized: - return theme.colorSurfaceStatusWarningEmphasized + return theme.colors.colorSurfaceStatusWarningEmphasized case .colorSurfaceStatusWarningMuted: - return theme.colorSurfaceStatusWarningMuted + return theme.colors.colorSurfaceStatusWarningMuted } } } diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Size/NamedSize/NamedSize+IconDecorative.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Size/NamedSize/NamedSize+IconDecorative.swift index c78fcc3b12..bcbee8af23 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Size/NamedSize/NamedSize+IconDecorative.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Size/NamedSize/NamedSize+IconDecorative.swift @@ -27,19 +27,19 @@ extension NamedSize { func token(from theme: OUDSTheme) -> SizeSemanticToken { switch self { case .sizeIconDecorative2xs: - return theme.sizeIconDecorative2xs + return theme.sizes.sizeIconDecorative2xs case .sizeIconDecorativeXs: - return theme.sizeIconDecorativeXs + return theme.sizes.sizeIconDecorativeXs case .sizeIconDecorativeSm: - return theme.sizeIconDecorativeSm + return theme.sizes.sizeIconDecorativeSm case .sizeIconDecorativeMd: - return theme.sizeIconDecorativeMd + return theme.sizes.sizeIconDecorativeMd case .sizeIconDecorativeLg: - return theme.sizeIconDecorativeLg + return theme.sizes.sizeIconDecorativeLg case .sizeIconDecorativeXl: - return theme.sizeIconDecorativeXl + return theme.sizes.sizeIconDecorativeXl case .sizeIconDecorative2xl: - return theme.sizeIconDecorative2xl + return theme.sizes.sizeIconDecorative2xl } } } diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Size/NamedSize/NamedSize+IconWithTypography.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Size/NamedSize/NamedSize+IconWithTypography.swift index c7a4753242..04ba80018d 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Size/NamedSize/NamedSize+IconWithTypography.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Size/NamedSize/NamedSize+IconWithTypography.swift @@ -133,75 +133,75 @@ extension NamedSize { func token(fot theme: OUDSTheme, userInterfaceSizeClass: UserInterfaceSizeClass) -> SizeSemanticToken { switch self { case .sizeIconWithHeadingXlargeShort: - return theme.sizeIconWithHeadingXlargeSizeSm.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingXlargeSizeSm.dimension(for: userInterfaceSizeClass) case .sizeIconWithHeadingXlargeMedium: - return theme.sizeIconWithHeadingXlargeSizeMd.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingXlargeSizeMd.dimension(for: userInterfaceSizeClass) case .sizeIconWithHeadingXlargeTall: - return theme.sizeIconWithHeadingXlargeSizeLg.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingXlargeSizeLg.dimension(for: userInterfaceSizeClass) case .sizeIconWithHeadingLargeShort: - return theme.sizeIconWithHeadingLargeSizeSm.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingLargeSizeSm.dimension(for: userInterfaceSizeClass) case .sizeIconWithHeadingLargeMedium: - return theme.sizeIconWithHeadingLargeSizeMd.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingLargeSizeMd.dimension(for: userInterfaceSizeClass) case .sizeIconWithHeadingLargeTall: - return theme.sizeIconWithHeadingLargeSizeLg.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingLargeSizeLg.dimension(for: userInterfaceSizeClass) case .sizeIconWithHeadingMediumShort: - return theme.sizeIconWithHeadingMediumSizeSm.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingMediumSizeSm.dimension(for: userInterfaceSizeClass) case .sizeIconWithHeadingMediumMedium: - return theme.sizeIconWithHeadingMediumSizeMd.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingMediumSizeMd.dimension(for: userInterfaceSizeClass) case .sizeIconWithHeadingMediumTall: - return theme.sizeIconWithHeadingMediumSizeLg.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingMediumSizeLg.dimension(for: userInterfaceSizeClass) case .sizeIconWithHeadingSmallShort: - return theme.sizeIconWithHeadingSmallSizeSm.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingSmallSizeSm.dimension(for: userInterfaceSizeClass) case .sizeIconWithHeadingSmallMedium: - return theme.sizeIconWithHeadingSmallSizeMd.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingSmallSizeMd.dimension(for: userInterfaceSizeClass) case .sizeIconWithHeadingSmallTall: - return theme.sizeIconWithHeadingSmallSizeLg.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithHeadingSmallSizeLg.dimension(for: userInterfaceSizeClass) case .sizeIconWithBodyLargeShort: - return theme.sizeIconWithBodyLargeSizeSm.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithBodyLargeSizeSm.dimension(for: userInterfaceSizeClass) case .sizeIconWithBodyLargeMedium: - return theme.sizeIconWithBodyLargeSizeMd.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithBodyLargeSizeMd.dimension(for: userInterfaceSizeClass) case .sizeIconWithBodyLargeTall: - return theme.sizeIconWithBodyLargeSizeLg.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithBodyLargeSizeLg.dimension(for: userInterfaceSizeClass) case .sizeIconWithBodyMediumShort: - return theme.sizeIconWithBodyMediumSizeSm.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithBodyMediumSizeSm.dimension(for: userInterfaceSizeClass) case .sizeIconWithBodyMediumMedium: - return theme.sizeIconWithBodyMediumSizeMd.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithBodyMediumSizeMd.dimension(for: userInterfaceSizeClass) case .sizeIconWithBodyMediumTall: - return theme.sizeIconWithBodyMediumSizeLg.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithBodyMediumSizeLg.dimension(for: userInterfaceSizeClass) case .sizeIconWithBodySmallShort: - return theme.sizeIconWithBodySmallSizeSm.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithBodySmallSizeSm.dimension(for: userInterfaceSizeClass) case .sizeIconWithBodySmallMedium: - return theme.sizeIconWithBodySmallSizeMd.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithBodySmallSizeMd.dimension(for: userInterfaceSizeClass) case .sizeIconWithBodySmallTall: - return theme.sizeIconWithBodySmallSizeLg.dimension(for: userInterfaceSizeClass) + return theme.sizes.sizeIconWithBodySmallSizeLg.dimension(for: userInterfaceSizeClass) case .sizeIconWithLabelXlargeSizeSm: - return theme.sizeIconWithLabelXlargeSizeSm + return theme.sizes.sizeIconWithLabelXlargeSizeSm case .sizeIconWithLabelXlargeSizeMd: - return theme.sizeIconWithLabelXlargeSizeMd + return theme.sizes.sizeIconWithLabelXlargeSizeMd case .sizeIconWithLabelXlargeSizeLg: - return theme.sizeIconWithLabelXlargeSizeLg + return theme.sizes.sizeIconWithLabelXlargeSizeLg case .sizeIconWithLabelLargeSizeXs: - return theme.sizeIconWithLabelLargeSizeXs + return theme.sizes.sizeIconWithLabelLargeSizeXs case .sizeIconWithLabelLargeSizeSm: - return theme.sizeIconWithLabelLargeSizeSm + return theme.sizes.sizeIconWithLabelLargeSizeSm case .sizeIconWithLabelLargeSizeMd: - return theme.sizeIconWithLabelLargeSizeMd + return theme.sizes.sizeIconWithLabelLargeSizeMd case .sizeIconWithLabelLargeSizeLg: - return theme.sizeIconWithLabelLargeSizeLg + return theme.sizes.sizeIconWithLabelLargeSizeLg case .sizeIconWithLabelLargeSizeXl: - return theme.sizeIconWithLabelLargeSizeXl + return theme.sizes.sizeIconWithLabelLargeSizeXl case .sizeIconWithLabelMediumSizeSm: - return theme.sizeIconWithLabelMediumSizeSm + return theme.sizes.sizeIconWithLabelMediumSizeSm case .sizeIconWithLabelMediumSizeMd: - return theme.sizeIconWithLabelMediumSizeMd + return theme.sizes.sizeIconWithLabelMediumSizeMd case .sizeIconWithLabelMediumSizeLg: - return theme.sizeIconWithLabelMediumSizeLg + return theme.sizes.sizeIconWithLabelMediumSizeLg case .sizeIconWithLabelSmallSizeSm: - return theme.sizeIconWithLabelSmallSizeSm + return theme.sizes.sizeIconWithLabelSmallSizeSm case .sizeIconWithLabelSmallSizeMd: - return theme.sizeIconWithLabelSmallSizeMd + return theme.sizes.sizeIconWithLabelSmallSizeMd case .sizeIconWithLabelSmallSizeLg: - return theme.sizeIconWithLabelSmallSizeLg + return theme.sizes.sizeIconWithLabelSmallSizeLg } } // swiftlint:enable function_body_length diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Size/SizeTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Size/SizeTokenPage.swift index 616930b28f..4bb5370073 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Size/SizeTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Size/SizeTokenPage.swift @@ -39,7 +39,7 @@ struct SizeTokenPage: View { header("app_tokens_dimension_size_iconWithLabel_label") } } - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.horizontal, theme.spaces.spaceFixedMedium) } struct IllustrationIconDecorative: View { @@ -56,13 +56,13 @@ struct SizeTokenPage: View { ShowcaseTokenIllustration(tokenName: name, tokenValue: value) { ZStack { Rectangle() - .fill(theme.colorBgEmphasized.color(for: colorScheme)) + .fill(theme.colors.colorBgEmphasized.color(for: colorScheme)) .frame(width: 82, height: 82, alignment: .center) Image("ic_token") .resizable() .renderingMode(.template) - .foregroundColor(theme.colorContentStatusInfo.color(for: colorScheme)) + .foregroundColor(theme.colors.colorContentStatusInfo.color(for: colorScheme)) .frame(width: token, height: token, alignment: .center) .accessibilityHidden(true) } @@ -90,16 +90,16 @@ struct SizeTokenPage: View { Image("ic_token") .resizable() .renderingMode(.template) - .foregroundColor(theme.colorContentStatusInfo.color(for: colorScheme)) + .foregroundColor(theme.colors.colorContentStatusInfo.color(for: colorScheme)) .frame(width: token, height: token, alignment: .center) .accessibilityHidden(true) VStack(alignment: .leading) { illustration(for: namedFont, in: theme) - .foregroundStyle(theme.colorContentDefault.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentDefault.color(for: colorScheme)) Text(value) .typeBodyDefaultMedium(theme) - .foregroundStyle(theme.colorContentMuted.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentMuted.color(for: colorScheme)) } .accessibilityElement(children: .combine) } diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+GapInline.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+GapInline.swift index 2cdbc3d4ef..7e496e2ae3 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+GapInline.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+GapInline.swift @@ -29,17 +29,17 @@ extension NamedSpace { func token(from theme: OUDSTheme) -> SpaceSemanticToken { switch self { case .spaceColumnGapNone: - return theme.spaceColumnGapNone + return theme.spaces.spaceColumnGapNone case .spaceColumnGapShorter: - return theme.spaceColumnGapShorter + return theme.spaces.spaceColumnGapShorter case .spaceColumnGapShort: - return theme.spaceColumnGapShort + return theme.spaces.spaceColumnGapShort case .spaceColumnGapMedium: - return theme.spaceColumnGapMedium + return theme.spaces.spaceColumnGapMedium case .spaceColumnGapTall: - return theme.spaceColumnGapTall + return theme.spaces.spaceColumnGapTall case .spaceColumnGapTaller: - return theme.spaceColumnGapTaller + return theme.spaces.spaceColumnGapTaller } } } diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+GapStack.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+GapStack.swift index d383b58b6c..cef68cf069 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+GapStack.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+GapStack.swift @@ -29,17 +29,17 @@ extension NamedSpace { func token(from theme: OUDSTheme) -> SpaceSemanticToken { switch self { case .spaceRowGapNone: - return theme.spaceRowGapNone + return theme.spaces.spaceRowGapNone case .spaceRowGapShortest: - return theme.spaceRowGapShortest + return theme.spaces.spaceRowGapShortest case .spaceRowGapShorter: - return theme.spaceRowGapShorter + return theme.spaces.spaceRowGapShorter case .spaceRowGapShort: - return theme.spaceRowGapShort + return theme.spaces.spaceRowGapShort case .spaceRowGapMedium: - return theme.spaceRowGapMedium + return theme.spaces.spaceRowGapMedium case .spaceRowGapTall: - return theme.spaceRowGapTall + return theme.spaces.spaceRowGapTall } } } diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingInline.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingInline.swift index 86d736dacc..6bbca1ed1b 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingInline.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingInline.swift @@ -30,19 +30,19 @@ extension NamedSpace { func token(from theme: OUDSTheme) -> SpaceSemanticToken { switch self { case .spacePaddingInlineNone: - return theme.spacePaddingInlineNone + return theme.spaces.spacePaddingInlineNone case .spacePaddingInlineShorter: - return theme.spacePaddingInlineShorter + return theme.spaces.spacePaddingInlineShorter case .spacePaddingInlineShort: - return theme.spacePaddingInlineShort + return theme.spaces.spacePaddingInlineShort case .spacePaddingInlineMedium: - return theme.spacePaddingInlineMedium + return theme.spaces.spacePaddingInlineMedium case .spacePaddingInlineTall: - return theme.spacePaddingInlineTall + return theme.spaces.spacePaddingInlineTall case .spacePaddingInlineTaller: - return theme.spacePaddingInlineTaller + return theme.spaces.spacePaddingInlineTaller case .spacePaddingInlineTallest: - return theme.spacePaddingInlineTallest + return theme.spaces.spacePaddingInlineTallest } } } diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingInset.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingInset.swift index d5bb108067..631802cade 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingInset.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingInset.swift @@ -33,25 +33,25 @@ extension NamedSpace { func token(from theme: OUDSTheme) -> SpaceSemanticToken { switch self { case .spaceInsetNone: - return theme.spaceInsetNone + return theme.spaces.spaceInsetNone case .spaceInsetSmash: - return theme.spaceInsetSmash + return theme.spaces.spaceInsetSmash case .spaceInsetShortest: - return theme.spaceInsetShortest + return theme.spaces.spaceInsetShortest case .spaceInsetShorter: - return theme.spaceInsetShorter + return theme.spaces.spaceInsetShorter case .spaceInsetShort: - return theme.spaceInsetShort + return theme.spaces.spaceInsetShort case .spaceInsetMedium: - return theme.spaceInsetMedium + return theme.spaces.spaceInsetMedium case .spaceInsetTall: - return theme.spaceInsetTall + return theme.spaces.spaceInsetTall case .spaceInsetTaller: - return theme.spaceInsetTaller + return theme.spaces.spaceInsetTaller case .spaceInsetTallest: - return theme.spaceInsetTallest + return theme.spaces.spaceInsetTallest case .spaceInsetSpacious: - return theme.spaceInsetSpacious + return theme.spaces.spaceInsetSpacious } } } diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingStack.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingStack.swift index 6a0da9ec7d..e80caca65c 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingStack.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NameSpace+PaddingStack.swift @@ -30,19 +30,19 @@ extension NamedSpace { func token(from theme: OUDSTheme) -> SpaceSemanticToken { switch self { case .spacePaddingBlockNone: - return theme.spacePaddingBlockNone + return theme.spaces.spacePaddingBlockNone case .spacePaddingBlockShorter: - return theme.spacePaddingBlockShorter + return theme.spaces.spacePaddingBlockShorter case .spacePaddingBlockShort: - return theme.spacePaddingBlockShort + return theme.spaces.spacePaddingBlockShort case .spacePaddingBlockMedium: - return theme.spacePaddingBlockMedium + return theme.spaces.spacePaddingBlockMedium case .spacePaddingBlockTall: - return theme.spacePaddingBlockTall + return theme.spaces.spacePaddingBlockTall case .spacePaddingBlockTaller: - return theme.spacePaddingBlockTaller + return theme.spaces.spacePaddingBlockTaller case .spacePaddingBlockTallest: - return theme.spacePaddingBlockTallest + return theme.spaces.spacePaddingBlockTallest } } } diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NamedSpace+Fixed.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NamedSpace+Fixed.swift index cc68c65be6..98c64ba9c3 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NamedSpace+Fixed.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NamedSpace+Fixed.swift @@ -36,29 +36,29 @@ extension NamedSpace { func token(from theme: OUDSTheme) -> SpaceSemanticToken { switch self { case .spaceFixedNone: - return theme.spaceFixedNone + return theme.spaces.spaceFixedNone case .spaceFixedSmash: - return theme.spaceFixedSmash + return theme.spaces.spaceFixedSmash case .spaceFixedShortest: - return theme.spaceFixedShortest + return theme.spaces.spaceFixedShortest case .spaceFixedShorter: - return theme.spaceFixedShorter + return theme.spaces.spaceFixedShorter case .spaceFixedShort: - return theme.spaceFixedShort + return theme.spaces.spaceFixedShort case .spaceFixedMedium: - return theme.spaceFixedMedium + return theme.spaces.spaceFixedMedium case .spaceFixedTall: - return theme.spaceFixedTall + return theme.spaces.spaceFixedTall case .spaceFixedTaller: - return theme.spaceFixedTaller + return theme.spaces.spaceFixedTaller case .spaceFixedTallest: - return theme.spaceFixedTallest + return theme.spaces.spaceFixedTallest case .spaceFixedSpacious: - return theme.spaceFixedSpacious + return theme.spaces.spaceFixedSpacious case .spaceFixedHuge: - return theme.spaceFixedHuge + return theme.spaces.spaceFixedHuge case .spaceFixedJumbo: - return theme.spaceFixedJumbo + return theme.spaces.spaceFixedJumbo } } } diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NamedSpace+Scaled.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NamedSpace+Scaled.swift index 11764d6ba4..f3490bb749 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NamedSpace+Scaled.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Space/NamedSpace/NamedSpace+Scaled.swift @@ -31,25 +31,25 @@ extension NamedSpace { func token(from theme: OUDSTheme) -> MultipleSpaceSemanticTokens { switch self { case .spaceScaledNone: - return theme.spaceScaledNone + return theme.spaces.spaceScaledNone case .spaceScaledSmash: - return theme.spaceScaledSmash + return theme.spaces.spaceScaledSmash case .spaceScaledShortest: - return theme.spaceScaledShortest + return theme.spaces.spaceScaledShortest case .spaceScaledShorter: - return theme.spaceScaledShorter + return theme.spaces.spaceScaledShorter case .spaceScaledShort: - return theme.spaceScaledShort + return theme.spaces.spaceScaledShort case .spaceScaledMedium: - return theme.spaceScaledMedium + return theme.spaces.spaceScaledMedium case .spaceScaledTall: - return theme.spaceScaledTall + return theme.spaces.spaceScaledTall case .spaceScaledTaller: - return theme.spaceScaledTaller + return theme.spaces.spaceScaledTaller case .spaceScaledTallest: - return theme.spaceScaledTallest + return theme.spaces.spaceScaledTallest case .spaceScaledSpacious: - return theme.spaceScaledSpacious + return theme.spaces.spaceScaledSpacious } } } diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceBasicTokenIllustrations.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceBasicTokenIllustrations.swift index b610183ea8..be90908c2b 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceBasicTokenIllustrations.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceBasicTokenIllustrations.swift @@ -45,9 +45,9 @@ struct ScaledSpaceProperty: View { @Environment(\.colorScheme) private var colorScheme var body: some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { SpaceHeaderDescription(text: "app_tokens_dimension_space_header_text", paddings: EdgeInsets(top: 4, leading: 8, bottom: 0, trailing: 0)) - .padding(.bottom, theme.spaceFixedMedium) + .padding(.bottom, theme.spaces.spaceFixedMedium) ForEach(NamedSpace.Scaled.allCases, id: \.rawValue) { namedSpaceToken in Illustration(for: namedSpaceToken) diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceTokenCommonIllustration.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceTokenCommonIllustration.swift index eeeba8c73a..68354e04d6 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceTokenCommonIllustration.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceTokenCommonIllustration.swift @@ -43,8 +43,8 @@ struct SpaceTokenProperty: View where Head } var body: some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { - header().padding(.bottom, theme.spaceFixedMedium) + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { + header().padding(.bottom, theme.spaces.spaceFixedMedium) ForEach(namedTokens, id: \.name) { namedSpaceToken in SpaceTokenVariant(namedSpaceToken: namedSpaceToken, illustration: illustration) @@ -114,19 +114,19 @@ struct SpaceCommonIllustration: View { ShowcaseTokenIllustrationBackground() .padding(.top, dimension) .padding(.leading, dimension) - .background(theme.colorContentStatusInfo.color(for: colorScheme)) + .background(theme.colors.colorContentStatusInfo.color(for: colorScheme)) case .leading(let asset): // ZStack alignment leading - HStack(alignment: .center, spacing: theme.spaceFixedNone) { + HStack(alignment: .center, spacing: theme.spaces.spaceFixedNone) { SpaceIllustrationRectangle(width: dimension) SpaceIllustrationIcon(asset: asset) } case .bottom(let asset): // ZStack alignment bottom - VStack(alignment: .center, spacing: theme.spaceFixedNone) { + VStack(alignment: .center, spacing: theme.spaces.spaceFixedNone) { SpaceIllustrationIcon(asset: asset) SpaceIllustrationRectangle(height: dimension) } case .top(let asset): // ZStack alignment top - VStack(alignment: .center, spacing: theme.spaceFixedNone) { + VStack(alignment: .center, spacing: theme.spaces.spaceFixedNone) { SpaceIllustrationRectangle(height: dimension) SpaceIllustrationIcon(asset: asset) } @@ -223,7 +223,7 @@ struct SpaceIllustrationIcon: View { .resizable() .renderingMode(.template) .aspectRatio(contentMode: .fit) - .foregroundColor(theme.colorContentStatusInfo.color(for: colorScheme)) + .foregroundColor(theme.colors.colorContentStatusInfo.color(for: colorScheme)) .padding(.horizontal, asset.extraPadding) .padding(.vertical, asset.extraPadding) .frame(width: 24) @@ -255,7 +255,7 @@ private struct SpaceIllustrationRectangle: View { var body: some View { Rectangle() - .foregroundColor(theme.colorContentStatusInfo.color(for: colorScheme)) + .foregroundColor(theme.colors.colorContentStatusInfo.color(for: colorScheme)) .frame(width: width, height: height) } } @@ -316,9 +316,9 @@ struct SpaceHeaderDescription: View { var body: some View { content - .oudsBorder(style: theme.borderStyleDrag, width: theme.borderWidthThin, radius: theme.borderRadiusNone, color: theme.colorBgEmphasized) - .padding(.all, theme.spaceFixedMedium) - .background(theme.colorBgEmphasized.color(for: colorScheme)) + .oudsBorder(style: theme.borders.borderStyleDrag, width: theme.borders.borderWidthThin, radius: theme.borders.borderRadiusNone, color: theme.colors.colorBgEmphasized) + .padding(.all, theme.spaces.spaceFixedMedium) + .background(theme.colors.colorBgEmphasized.color(for: colorScheme)) } @ViewBuilder private var content: some View { @@ -336,30 +336,30 @@ struct SpaceHeaderDescription: View { private func texts(_ orientation: TextsOrientation) -> some View { switch orientation { case .horizontal: - HStack(spacing: theme.spaceFixedNone) { + HStack(spacing: theme.spaces.spaceFixedNone) { Text(firstText) - .foregroundStyle(theme.colorContentOnOverlayEmphasized.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentOnOverlayEmphasized.color(for: colorScheme)) .typeBodyDefaultMedium(theme) SpaceIllustrationRectangle(width: 8) if let secondText { Text(secondText) - .foregroundStyle(theme.colorContentOnOverlayEmphasized.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentOnOverlayEmphasized.color(for: colorScheme)) .typeBodyDefaultMedium(theme) } } case .verical: - VStack(spacing: theme.spaceFixedNone) { + VStack(spacing: theme.spaces.spaceFixedNone) { Text(firstText) - .foregroundStyle(theme.colorContentOnOverlayEmphasized.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentOnOverlayEmphasized.color(for: colorScheme)) .typeBodyDefaultMedium(theme) SpaceIllustrationRectangle(height: 8) if let secondText { Text(secondText) - .foregroundStyle(theme.colorContentOnOverlayEmphasized.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentOnOverlayEmphasized.color(for: colorScheme)) .typeBodyDefaultMedium(theme) } } @@ -369,25 +369,25 @@ struct SpaceHeaderDescription: View { private func text(_ paddings: EdgeInsets) -> some View { HStack { Text(firstText) - .foregroundStyle(theme.colorContentOnOverlayEmphasized.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentOnOverlayEmphasized.color(for: colorScheme)) .typeBodyDefaultMedium(theme) } - .background(theme.colorBgEmphasized.color(for: colorScheme)) + .background(theme.colors.colorBgEmphasized.color(for: colorScheme)) .padding(paddings) - .background(theme.colorContentStatusInfo.color(for: colorScheme)) + .background(theme.colors.colorContentStatusInfo.color(for: colorScheme)) } @ViewBuilder private func asset(_ paddings: AssetPadding) -> some View { switch paddings { case .top, .bottom: - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { if let iconAsset, paddings == .top { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { SpaceIllustrationRectangle(height: 8) SpaceIllustrationIcon(asset: iconAsset) } - .padding(.trailing, theme.spaceFixedShorter) + .padding(.trailing, theme.spaces.spaceFixedShorter) } if let iconAsset, paddings == .bottom { SpaceIllustrationIcon(asset: iconAsset) @@ -395,19 +395,19 @@ struct SpaceHeaderDescription: View { } Text(firstText) - .foregroundStyle(theme.colorContentOnStatusEmphasized.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentOnStatusEmphasized.color(for: colorScheme)) .typeBodyDefaultMedium(theme) } - .background(theme.colorBgEmphasized.color(for: colorScheme)) + .background(theme.colors.colorBgEmphasized.color(for: colorScheme)) case .leading, .trailing: - HStack(alignment: .center, spacing: theme.spaceFixedNone) { + HStack(alignment: .center, spacing: theme.spaces.spaceFixedNone) { if let iconAsset, paddings == .leading { - HStack(alignment: .center, spacing: theme.spaceFixedNone) { + HStack(alignment: .center, spacing: theme.spaces.spaceFixedNone) { SpaceIllustrationRectangle(width: 8) SpaceIllustrationIcon(asset: iconAsset) } - .padding(.trailing, theme.spaceFixedShorter) + .padding(.trailing, theme.spaces.spaceFixedShorter) } if let iconAsset, paddings == .trailing { SpaceIllustrationIcon(asset: iconAsset) @@ -415,10 +415,10 @@ struct SpaceHeaderDescription: View { } Text(firstText) - .foregroundStyle(theme.colorContentOnStatusEmphasized.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentOnStatusEmphasized.color(for: colorScheme)) .typeBodyDefaultMedium(theme) } - .background(theme.colorBgEmphasized.color(for: colorScheme)) + .background(theme.colors.colorBgEmphasized.color(for: colorScheme)) } } } diff --git a/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceTokenPage.swift index 2e1d7c2496..cbb282bdfb 100644 --- a/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceTokenPage.swift @@ -55,7 +55,7 @@ struct SpaceTokenPage: View { header("app_tokens_dimension_space_gapStack_label") } } - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.horizontal, theme.spaces.spaceFixedMedium) } // MARK: Common helpers diff --git a/Showcase/Showcase/Pages/Tokens/Elevation/ElevationTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Elevation/ElevationTokenPage.swift index c6f84027b7..0b031a2a22 100644 --- a/Showcase/Showcase/Pages/Tokens/Elevation/ElevationTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Elevation/ElevationTokenPage.swift @@ -24,19 +24,19 @@ struct ElevationTokenPage: View { @Environment(\.colorScheme) private var colorScheme var body: some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { Section { - ShowcaseCode(code: "theme.elevationNone.elevation(for: colorScheme)") + ShowcaseCode(code: "theme.elevations.elevationNone.elevation(for: colorScheme)") } - Spacer().frame(height: theme.spaceFixedMedium) + Spacer().frame(height: theme.spaces.spaceFixedMedium) ForEach(NamedElevation.allCases, id: \.rawValue) { elevationName in IllustrationElevation(namedElevation: elevationName) } } .frame(maxWidth: .infinity) - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.horizontal, theme.spaces.spaceFixedMedium) } struct IllustrationElevation: View { @@ -52,8 +52,8 @@ struct ElevationTokenPage: View { ShowcaseTokenIllustration(tokenName: name, tokenValue: value) { Rectangle() - .frame(width: theme.sizeIconDecorative2xl, height: theme.sizeIconDecorative2xl) - .foregroundColor(theme.colorBgSecondary.color(for: colorScheme)) + .frame(width: theme.sizes.sizeIconDecorative2xl, height: theme.sizes.sizeIconDecorative2xl) + .foregroundColor(theme.colors.colorBgSecondary.color(for: colorScheme)) .shadow(elevation: token) .padding(.bottom, 2) } @@ -76,21 +76,21 @@ enum NamedElevation: String, CaseIterable { func token(from theme: OUDSTheme) -> ElevationCompositeSemanticToken { switch self { case .elevationNone: - return theme.elevationNone + return theme.elevations.elevationNone case .elevationRaised: - return theme.elevationRaised + return theme.elevations.elevationRaised case .elevationStickyNavigationScrolled: - return theme.elevationStickyNavigationScrolled + return theme.elevations.elevationStickyNavigationScrolled case .elevationOverlayDefault: - return theme.elevationOverlayDefault + return theme.elevations.elevationOverlayDefault case .elevationStickyDefault: - return theme.elevationStickyDefault + return theme.elevations.elevationStickyDefault case .elevationStickyEmphasized: - return theme.elevationStickyEmphasized + return theme.elevations.elevationStickyEmphasized case .elevationDrag: - return theme.elevationDrag + return theme.elevations.elevationDrag case .elevationOverlayEmphasized: - return theme.elevationOverlayEmphasized + return theme.elevations.elevationOverlayEmphasized } } } diff --git a/Showcase/Showcase/Pages/Tokens/Font/FontTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Font/FontTokenPage.swift index 57e64fe513..0b7f75a8e8 100644 --- a/Showcase/Showcase/Pages/Tokens/Font/FontTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Font/FontTokenPage.swift @@ -24,7 +24,7 @@ struct FontTokenPage: View { @Environment(\.horizontalSizeClass) private var horizontalSizeClass var body: some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { Section { ShowcaseCode(code: "theme.typeBodyStrongLarge(theme)") } @@ -35,7 +35,7 @@ struct FontTokenPage: View { IllustrationFont(namedFont: fontName) } } - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.horizontal, theme.spaces.spaceFixedMedium) .navigationTitle(LocalizedStringKey("app_tokens_typography_label")) } @@ -49,12 +49,12 @@ struct FontTokenPage: View { var body: some View { let token = namedFont.token(from: theme).fontToken(for: horizontalSizeClass ?? .regular) - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { illustration(for: namedFont, in: theme) - .foregroundStyle(theme.colorContentDefault.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentDefault.color(for: colorScheme)) Group { - Text("family (\(theme.customFontFamily ?? "system")), ") + Text("family (\(theme.fontFamily ?? "system")), ") + Text("weight (\(token.weight)), ") + Text("size (\(token.size, specifier: "%.2f")), ") + Text("lineHeight (\(token.lineHeight, specifier: "%.2f")), ") @@ -62,10 +62,10 @@ struct FontTokenPage: View { } .typeBodyDefaultMedium(theme) .fixedSize(horizontal: false, vertical: true) - .foregroundStyle(theme.colorContentMuted.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentMuted.color(for: colorScheme)) } .frame(maxWidth: .infinity, alignment: .leading) - .padding(.vertical, theme.spaceFixedShorter) + .padding(.vertical, theme.spaces.spaceFixedShorter) .accessibilityElement(children: .combine) } } diff --git a/Showcase/Showcase/Pages/Tokens/Font/NamedFont/NamedFont.swift b/Showcase/Showcase/Pages/Tokens/Font/NamedFont/NamedFont.swift index 21d3819407..92981c91e3 100644 --- a/Showcase/Showcase/Pages/Tokens/Font/NamedFont/NamedFont.swift +++ b/Showcase/Showcase/Pages/Tokens/Font/NamedFont/NamedFont.swift @@ -47,51 +47,51 @@ enum NamedFont: String, CaseIterable { func token(from theme: OUDSTheme) -> MultipleFontCompositeRawTokens { switch self { case .displayLarge: - return theme.typeDisplayLarge + return theme.fonts.typeDisplayLarge case .displayMedium: - return theme.typeDisplayMedium + return theme.fonts.typeDisplayMedium case .displaySmall: - return theme.typeDisplaySmall + return theme.fonts.typeDisplaySmall case .headingXLarge: - return theme.typeHeadingXLarge + return theme.fonts.typeHeadingXLarge case .headingLarge: - return theme.typeHeadingLarge + return theme.fonts.typeHeadingLarge case .headingMedium: - return theme.typeHeadingMedium + return theme.fonts.typeHeadingMedium case .headingSmall: - return theme.typeHeadingSmall + return theme.fonts.typeHeadingSmall case .bodyDefaultLarge: - return theme.typeBodyDefaultLarge + return theme.fonts.typeBodyDefaultLarge case .bodyDefaultMedium: - return theme.typeBodyDefaultMedium + return theme.fonts.typeBodyDefaultMedium case .bodyDefaultSmall: - return theme.typeBodyDefaultSmall + return theme.fonts.typeBodyDefaultSmall case .bodyStrongLarge: - return theme.typeBodyStrongLarge + return theme.fonts.typeBodyStrongLarge case .bodyStrongMedium: - return theme.typeBodyStrongMedium + return theme.fonts.typeBodyStrongMedium case .bodyStrongSmall: - return theme.typeBodyStrongSmall + return theme.fonts.typeBodyStrongSmall case .labelDefaultXLarge: - return theme.typeLabelDefaultXLarge + return theme.fonts.typeLabelDefaultXLarge case .labelDefaultLarge: - return theme.typeLabelDefaultLarge + return theme.fonts.typeLabelDefaultLarge case .labelDefaultMedium: - return theme.typeLabelDefaultMedium + return theme.fonts.typeLabelDefaultMedium case .labelDefaultSmall: - return theme.typeLabelDefaultSmall + return theme.fonts.typeLabelDefaultSmall case .labelStrongXLarge: - return theme.typeLabelStrongXLarge + return theme.fonts.typeLabelStrongXLarge case .labelStrongLarge: - return theme.typeLabelStrongLarge + return theme.fonts.typeLabelStrongLarge case .labelStrongMedium: - return theme.typeLabelStrongMedium + return theme.fonts.typeLabelStrongMedium case .labelStrongSmall: - return theme.typeLabelStrongSmall + return theme.fonts.typeLabelStrongSmall case .codeSmall: - return theme.typeCodeSmall + return theme.fonts.typeCodeSmall case .codeMedium: - return theme.typeCodeMedium + return theme.fonts.typeCodeMedium } } } diff --git a/Showcase/Showcase/Pages/Tokens/Grid/GrisTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Grid/GrisTokenPage.swift index 73aa286f76..420830fa5a 100644 --- a/Showcase/Showcase/Pages/Tokens/Grid/GrisTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Grid/GrisTokenPage.swift @@ -26,19 +26,19 @@ struct GridTokenPage: View { var body: some View { Group { - VStack(alignment: .leading, spacing: theme.spaceFixedMedium) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedMedium) { Image(decorative: "il_tokens_grid_column_margin") .resizable() .aspectRatio(contentMode: .fit) - .background(theme.colorBgEmphasized.color(for: colorScheme)) + .background(theme.colors.colorBgEmphasized.color(for: colorScheme)) Image(decorative: "il_tokens_grid_min_width") .resizable() .aspectRatio(contentMode: .fit) - .background(theme.colorBgEmphasized.color(for: colorScheme)) + .background(theme.colors.colorBgEmphasized.color(for: colorScheme)) Image(decorative: "il_tokens_grid_max_width") .resizable() .aspectRatio(contentMode: .fit) - .background(theme.colorBgEmphasized.color(for: colorScheme)) + .background(theme.colors.colorBgEmphasized.color(for: colorScheme)) } Section { @@ -50,13 +50,13 @@ struct GridTokenPage: View { .showcaseSectionHeaderStyle() } } - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.horizontal, theme.spaces.spaceFixedMedium) } // MARK: Private helpers private func illustrationForGridTokens() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { ForEach(NamedGrid.allCases, id: \.rawValue) { namedGrid in illustration(for: namedGrid) } diff --git a/Showcase/Showcase/Pages/Tokens/Opacity/OpacityTokenPage.swift b/Showcase/Showcase/Pages/Tokens/Opacity/OpacityTokenPage.swift index 01e278382f..7391b82a13 100644 --- a/Showcase/Showcase/Pages/Tokens/Opacity/OpacityTokenPage.swift +++ b/Showcase/Showcase/Pages/Tokens/Opacity/OpacityTokenPage.swift @@ -23,19 +23,19 @@ struct OpacityTokenPage: View { @Environment(\.colorScheme) private var colorScheme var body: some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { Section { - ShowcaseCode(code: "theme.opacityInvisible") + ShowcaseCode(code: "theme.opacities.opacityInvisible") } - Spacer() .frame(height: theme.spaceFixedMedium) + Spacer() .frame(height: theme.spaces.spaceFixedMedium) ForEach(NamedOpacity.allCases, id: \.rawValue) { opacityName in IllustrationOpacity(opacityName: opacityName) } } .frame(maxWidth: .infinity, alignment: .leading) - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.horizontal, theme.spaces.spaceFixedMedium) } struct IllustrationOpacity: View { @@ -54,18 +54,18 @@ struct OpacityTokenPage: View { Image(decorative: "ic_union") .resizable() .renderingMode(.template) - .foregroundColor(theme.colorContentStatusInfo.color(for: colorScheme)) + .foregroundColor(theme.colors.colorContentStatusInfo.color(for: colorScheme)) .frame(width: 48, height: 48) .accessibilityHidden(true) Rectangle() - .fill(theme.colorBgEmphasized.color(for: colorScheme)) + .fill(theme.colors.colorBgEmphasized.color(for: colorScheme)) .opacity(token) .frame(width: 48, height: 48) - .oudsBorder(style: theme.borderStyleDefault, - width: theme.borderWidthThin, - radius: theme.borderRadiusNone, - color: theme.colorBorderEmphasized) + .oudsBorder(style: theme.borders.borderStyleDefault, + width: theme.borders.borderWidthThin, + radius: theme.borders.borderRadiusNone, + color: theme.colors.colorBorderEmphasized) .padding(.top, 24) .padding(.leading, 24) } @@ -88,17 +88,17 @@ enum NamedOpacity: String, CaseIterable { func token(from theme: OUDSTheme) -> OpacitySemanticToken { switch self { case .opacityInvisible: - return theme.opacityInvisible + return theme.opacities.opacityInvisible case .opacityWeaker: - return theme.opacityWeaker + return theme.opacities.opacityWeaker case .opacityWeak: - return theme.opacityWeak + return theme.opacities.opacityWeak case .opacityMedium: - return theme.opacityMedium + return theme.opacities.opacityMedium case .opacityStrong: - return theme.opacityStrong + return theme.opacities.opacityStrong case .opacityOpaque: - return theme.opacityOpaque + return theme.opacities.opacityOpaque } } } diff --git a/Showcase/Showcase/Pages/Tokens/Utils/ShowcaseTokenIllustration.swift b/Showcase/Showcase/Pages/Tokens/Utils/ShowcaseTokenIllustration.swift index c43790fe00..3a1e62b26d 100644 --- a/Showcase/Showcase/Pages/Tokens/Utils/ShowcaseTokenIllustration.swift +++ b/Showcase/Showcase/Pages/Tokens/Utils/ShowcaseTokenIllustration.swift @@ -40,23 +40,23 @@ struct ShowcaseTokenIllustration: View where TokenIllustratio var body: some View { - HStack(alignment: .top, spacing: theme.spaceFixedMedium) { + HStack(alignment: .top, spacing: theme.spaces.spaceFixedMedium) { tokenIllustration() VStack(alignment: .leading) { Text(tokenName) .typeBodyStrongLarge(theme) - .foregroundStyle(theme.colorContentDefault.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentDefault.color(for: colorScheme)) if let tokenValue { Text(tokenValue) .typeBodyDefaultMedium(theme) - .foregroundStyle(theme.colorContentMuted.color(for: colorScheme)) + .foregroundStyle(theme.colors.colorContentMuted.color(for: colorScheme)) } } .frame(maxWidth: .infinity, alignment: .leading) .accessibilityElement(children: .combine) } - .padding(.vertical, theme.spaceFixedShorter) + .padding(.vertical, theme.spaces.spaceFixedShorter) } } diff --git a/Showcase/Showcase/Pages/Tokens/Utils/ShowcaseTokkenIllustrationBackground.swift b/Showcase/Showcase/Pages/Tokens/Utils/ShowcaseTokkenIllustrationBackground.swift index 3d0121239c..77ffb3d781 100644 --- a/Showcase/Showcase/Pages/Tokens/Utils/ShowcaseTokkenIllustrationBackground.swift +++ b/Showcase/Showcase/Pages/Tokens/Utils/ShowcaseTokkenIllustrationBackground.swift @@ -23,6 +23,6 @@ struct ShowcaseTokenIllustrationBackground: View { @Environment(\.colorScheme) private var colorScheme var body: some View { - Rectangle().fill(theme.colorBgEmphasized.color(for: colorScheme)) + Rectangle().fill(theme.colors.colorBgEmphasized.color(for: colorScheme)) } } diff --git a/Showcase/Showcase/Pages/Utils/Elements/ShowcaseElementPage.swift b/Showcase/Showcase/Pages/Utils/Elements/ShowcaseElementPage.swift index bf85f332d1..c4045ee054 100644 --- a/Showcase/Showcase/Pages/Utils/Elements/ShowcaseElementPage.swift +++ b/Showcase/Showcase/Pages/Utils/Elements/ShowcaseElementPage.swift @@ -37,7 +37,7 @@ struct ShowcaseElementPage: View { var body: some View { ScrollView { - VStack(alignment: .leading, spacing: theme.spaceFixedMedium) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedMedium) { if let imageName { CardIllustration(icon: Image(imageName)) .accessibilityHidden(true) @@ -46,24 +46,24 @@ struct ShowcaseElementPage: View { Text(LocalizedStringKey(description)) .typeBodyDefaultLarge(theme) .accessibilityFocused($requestFocus) - .padding(.horizontal, theme.spaceFixedMedium) + .padding(.horizontal, theme.spaces.spaceFixedMedium) } .listRowInsets(EdgeInsets()) .listRowSeparator(Visibility.hidden) - .padding(.horizontal, theme.spaceFixedNone) - .padding(.bottom, theme.spaceFixedMedium) - .background(theme.colorBgPrimary.color(for: colorScheme)) + .padding(.horizontal, theme.spaces.spaceFixedNone) + .padding(.bottom, theme.spaces.spaceFixedMedium) + .background(theme.colors.colorBgPrimary.color(for: colorScheme)) illustration .listRowInsets(EdgeInsets()) .listRowSeparator(Visibility.hidden) - .padding(.bottom, theme.spaceFixedMedium) - .background(theme.colorBgPrimary.color(for: colorScheme)) + .padding(.bottom, theme.spaces.spaceFixedMedium) + .background(theme.colors.colorBgPrimary.color(for: colorScheme)) } .listStyle(.plain) - .padding(.top, theme.spaceFixedNone) - .padding(.horizontal, theme.spaceFixedNone) - .background(theme.colorBgPrimary.color(for: colorScheme)) + .padding(.top, theme.spaces.spaceFixedNone) + .padding(.horizontal, theme.spaces.spaceFixedNone) + .background(theme.colors.colorBgPrimary.color(for: colorScheme)) .navigationTitle(LocalizedStringKey(name)) .navigationbarMenuForThemeSelection() .oudsRequestAccessibleFocus(_requestFocus) diff --git a/Showcase/Showcase/Pages/Utils/Elements/ShowcaseElementsPage.swift b/Showcase/Showcase/Pages/Utils/Elements/ShowcaseElementsPage.swift index 8a9c41415d..eb43997049 100644 --- a/Showcase/Showcase/Pages/Utils/Elements/ShowcaseElementsPage.swift +++ b/Showcase/Showcase/Pages/Utils/Elements/ShowcaseElementsPage.swift @@ -32,7 +32,7 @@ struct ShowcaseElementsPage: View { var body: some View { NavigationView { ScrollView { - LazyVGrid(columns: [GridItem(.flexible(), alignment: .topLeading)], spacing: theme.spaceFixedShortest) { + LazyVGrid(columns: [GridItem(.flexible(), alignment: .topLeading)], spacing: theme.spaces.spaceFixedShortest) { ForEach(elements, id: \.id) { element in NavigationLink { element.pageDescription @@ -45,10 +45,10 @@ struct ShowcaseElementsPage: View { } } } - .padding(.all, theme.spaceFixedMedium) + .padding(.all, theme.spaces.spaceFixedMedium) .navigationbarMenuForThemeSelection() } - .background(theme.colorBgPrimary.color(for: colorScheme)) + .background(theme.colors.colorBgPrimary.color(for: colorScheme)) } .navigationViewStyle(.stack) } diff --git a/Showcase/Showcase/Pages/Utils/Elements/ShowcaseVariantElement.swift b/Showcase/Showcase/Pages/Utils/Elements/ShowcaseVariantElement.swift index 5259b993bf..869df72c4a 100644 --- a/Showcase/Showcase/Pages/Utils/Elements/ShowcaseVariantElement.swift +++ b/Showcase/Showcase/Pages/Utils/Elements/ShowcaseVariantElement.swift @@ -34,13 +34,13 @@ struct ShowcaseVariantElement: View { HStack { Text(LocalizedStringKey(element.name)) .typeHeadingMedium(theme) - .foregroundStyle(theme.colorContentDefault.color(for: colorScheme)) - .padding(.vertical, theme.spaceFixedShorter) - .padding(.leading, theme.spaceFixedMedium) + .foregroundStyle(theme.colors.colorContentDefault.color(for: colorScheme)) + .padding(.vertical, theme.spaces.spaceFixedShorter) + .padding(.leading, theme.spaces.spaceFixedMedium) Spacer() Image(systemName: "chevron.right") - .foregroundColor(theme.colorContentDefault.color(for: colorScheme)) - .padding(.trailing, theme.spaceFixedMedium) + .foregroundColor(theme.colors.colorContentDefault.color(for: colorScheme)) + .padding(.trailing, theme.spaces.spaceFixedMedium) .accessibilityHidden(true) } } diff --git a/Showcase/Showcase/Pages/Utils/ShowcaseCode.swift b/Showcase/Showcase/Pages/Utils/ShowcaseCode.swift index b2ff57fd3a..1ee08a917a 100644 --- a/Showcase/Showcase/Pages/Utils/ShowcaseCode.swift +++ b/Showcase/Showcase/Pages/Utils/ShowcaseCode.swift @@ -30,7 +30,7 @@ struct ShowcaseCode: View { // MARK: Body var body: some View { - VStack(spacing: theme.spaceFixedNone) { + VStack(spacing: theme.spaces.spaceFixedNone) { toggleButtonSection() if isCodeVisible { codeTokenDisplayCodeSection() @@ -41,35 +41,35 @@ struct ShowcaseCode: View { // MARK: Private helpers private func toggleButtonSection() -> some View { - VStack(alignment: .leading, spacing: theme.spaceFixedNone) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) { Button(action: toggle) { HStack { Text("app_tokens_code_title_label") .typeBodyStrongLarge(theme) - .foregroundStyle(theme.colorContentDefault.color(for: colorScheme)) - .padding(.vertical, theme.spacePaddingInlineShort) + .foregroundStyle(theme.colors.colorContentDefault.color(for: colorScheme)) + .padding(.vertical, theme.spaces.spacePaddingInlineShort) Image("ic_chevron-up") .resizable() .renderingMode(.template) .rotationEffect(Angle.degrees(isCodeVisible ? 0 : 180)) - .foregroundColor(theme.colorSurfaceBrandPrimary.color(for: colorScheme)) + .foregroundColor(theme.colors.colorSurfaceBrandPrimary.color(for: colorScheme)) .frame(width: 20, height: 20) - .padding(.trailing, theme.spacePaddingInlineMedium) + .padding(.trailing, theme.spaces.spacePaddingInlineMedium) .accessibilityLabel("app_tokens_code_visibility_button_a11y") } } .buttonStyle(PlainButtonStyle()) } .frame(maxWidth: .infinity, alignment: .leading) - .padding(.bottom, theme.spacePaddingBlockShort) + .padding(.bottom, theme.spaces.spacePaddingBlockShort) } private func codeTokenDisplayCodeSection() -> some View { - HStack(alignment: .firstTextBaseline, spacing: theme.spacePaddingBlockMedium) { + HStack(alignment: .firstTextBaseline, spacing: theme.spaces.spacePaddingBlockMedium) { Text(code) .font(.system(.body, design: .monospaced)) - .foregroundStyle(theme.colorContentDefault.color(for: colorScheme)) - .padding(.vertical, theme.spacePaddingInlineShort) + .foregroundStyle(theme.colors.colorContentDefault.color(for: colorScheme)) + .padding(.vertical, theme.spaces.spacePaddingInlineShort) Button(action: { UIPasteboard.general.string = code @@ -81,28 +81,28 @@ struct ShowcaseCode: View { Image("ic_copy") .resizable() .renderingMode(.template) - .foregroundColor(theme.colorSurfaceStatusPositiveMuted.color(for: colorScheme)) + .foregroundColor(theme.colors.colorSurfaceStatusPositiveMuted.color(for: colorScheme)) .frame(width: 24, height: 24) - .padding(.trailing, theme.spacePaddingInlineMedium) + .padding(.trailing, theme.spaces.spacePaddingInlineMedium) .alignmentGuide(.firstTextBaseline) { $0[.bottom] * 0.7 } .accessibilityLabel("app_tokens_code_copy_button_a11y") } }) } .frame(minWidth: 72, maxWidth: .infinity, alignment: .leading) - .padding(.vertical, theme.spacePaddingInlineShort) - .padding(.leading, theme.spacePaddingInlineMedium) - .background(theme.colorBgSecondary.color(for: colorScheme)) + .padding(.vertical, theme.spaces.spacePaddingInlineShort) + .padding(.leading, theme.spaces.spacePaddingInlineMedium) + .background(theme.colors.colorBgSecondary.color(for: colorScheme)) .accessibilityElement(children: .combine) .accessibilityHint("app_tokens_code_copy_button_a11y") .overlay( Rectangle() - .opacity(theme.opacityInvisible) + .opacity(theme.opacities.opacityInvisible) .frame(minWidth: 40, maxWidth: .infinity, alignment: .leading) - .oudsBorder(style: theme.borderStyleDefault, - width: theme.borderWidthThin, - radius: theme.borderRadiusDefault, - color: theme.colorBorderDefault) + .oudsBorder(style: theme.borders.borderStyleDefault, + width: theme.borders.borderWidthThin, + radius: theme.borders.borderRadiusDefault, + color: theme.colors.colorBorderDefault) ) } diff --git a/Showcase/Showcase/Pages/Utils/ShowcaseConfiguration.swift b/Showcase/Showcase/Pages/Utils/ShowcaseConfiguration.swift index 5624d44996..5c42994714 100644 --- a/Showcase/Showcase/Pages/Utils/ShowcaseConfiguration.swift +++ b/Showcase/Showcase/Pages/Utils/ShowcaseConfiguration.swift @@ -28,7 +28,7 @@ struct ShowcaseConfiguration: View where Configuration: View { // MARK: Body var body: some View { - VStack(alignment: .leading, spacing: theme.spaceFixedMedium) { + VStack(alignment: .leading, spacing: theme.spaces.spaceFixedMedium) { Text("Configuration") .typeHeadingMedium(theme) .frame(maxWidth: .infinity, alignment: .leading) @@ -37,10 +37,10 @@ struct ShowcaseConfiguration: View where Configuration: View { configuration() } - .padding(.all, theme.spaceFixedMedium) - .oudsBorder(style: theme.borderStyleDefault, - width: theme.borderWidthThin, - radius: theme.borderRadiusMedium, - color: theme.colorBorderDefault) + .padding(.all, theme.spaces.spaceFixedMedium) + .oudsBorder(style: theme.borders.borderStyleDefault, + width: theme.borders.borderWidthThin, + radius: theme.borders.borderRadiusMedium, + color: theme.colors.colorBorderDefault) } } diff --git a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensBorderUITests/OUDSTokenBorderUITests.swift b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensBorderUITests/OUDSTokenBorderUITests.swift index 33d9c156c5..7220c8a5cb 100644 --- a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensBorderUITests/OUDSTokenBorderUITests.swift +++ b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensBorderUITests/OUDSTokenBorderUITests.swift @@ -81,7 +81,7 @@ final class OUDSTokensBorderUITests: XCTestCase { // Use the `IllustrationWidth` struct to test a single illustration let illustration = OUDSThemeableView(theme: theme) { BorderTokenPage.IllustrationWidth(namedWidth: namedToken) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the element in a UIHostingController for snapshot testing @@ -107,7 +107,7 @@ final class OUDSTokensBorderUITests: XCTestCase { // Use the `IllustrationWidth` struct to test a single illustration let illustration = OUDSThemeableView(theme: theme) { BorderTokenPage.IllustrationRadius(namedRadius: namedToken) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the element in a UIHostingController for snapshot testing @@ -133,7 +133,7 @@ final class OUDSTokensBorderUITests: XCTestCase { // Use the `IllustrationWidth` struct to test a single illustration let illustration = OUDSThemeableView(theme: theme) { BorderTokenPage.IllustrationStyle(namedStyle: namedToken) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the element in a UIHostingController for snapshot testing diff --git a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensColorUITests/OUDSTokensColorUITests.swift b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensColorUITests/OUDSTokensColorUITests.swift index 921be2f1e9..b1dec3fda9 100644 --- a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensColorUITests/OUDSTokensColorUITests.swift +++ b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensColorUITests/OUDSTokensColorUITests.swift @@ -132,7 +132,7 @@ final class OUDSTokensColorUITests: XCTestCase { // Generate the illustration for the specified color token let illustration = OUDSThemeableView(theme: theme) { ColorTokenPage.Illustration(token: token, name: color.rawValue) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -161,7 +161,7 @@ final class OUDSTokensColorUITests: XCTestCase { // Generate the illustration for the specified color token let illustration = OUDSThemeableView(theme: theme) { ColorTokenPage.Illustration(token: token, name: color.rawValue) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -190,7 +190,7 @@ final class OUDSTokensColorUITests: XCTestCase { // Generate the illustration for the specified color token let illustration = OUDSThemeableView(theme: theme) { ColorTokenPage.Illustration(token: token, name: color.rawValue) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -219,7 +219,7 @@ final class OUDSTokensColorUITests: XCTestCase { // Generate the illustration for the specified color token let illustration = OUDSThemeableView(theme: theme) { ColorTokenPage.Illustration(token: token, name: color.rawValue) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -248,7 +248,7 @@ final class OUDSTokensColorUITests: XCTestCase { // Generate the illustration for the specified color token let illustration = OUDSThemeableView(theme: theme) { ColorTokenPage.Illustration(token: token, name: color.rawValue) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -277,7 +277,7 @@ final class OUDSTokensColorUITests: XCTestCase { // Generate the illustration for the specified color token let illustration = OUDSThemeableView(theme: theme) { ColorTokenPage.Illustration(token: token, name: color.rawValue) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -306,7 +306,7 @@ final class OUDSTokensColorUITests: XCTestCase { // Generate the illustration for the specified color token let illustration = OUDSThemeableView(theme: theme) { ColorTokenPage.Illustration(token: token, name: color.rawValue) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -335,7 +335,7 @@ final class OUDSTokensColorUITests: XCTestCase { // Generate the illustration for the specified color token let illustration = OUDSThemeableView(theme: theme) { ColorTokenPage.Illustration(token: token, name: color.rawValue) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -364,7 +364,7 @@ final class OUDSTokensColorUITests: XCTestCase { // Generate the illustration for the specified color token let illustration = OUDSThemeableView(theme: theme) { ColorTokenPage.Illustration(token: token, name: color.rawValue) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -393,7 +393,7 @@ final class OUDSTokensColorUITests: XCTestCase { // Generate the illustration for the specified color token let illustration = OUDSThemeableView(theme: theme) { ColorTokenPage.Illustration(token: token, name: color.rawValue) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -422,7 +422,7 @@ final class OUDSTokensColorUITests: XCTestCase { // Generate the illustration for the specified color token let illustration = OUDSThemeableView(theme: theme) { ColorTokenPage.Illustration(token: token, name: color.rawValue) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing diff --git a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensDimensionUITests/Size/OUDSTokensSizeUITests.swift b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensDimensionUITests/Size/OUDSTokensSizeUITests.swift index e88ea663a2..756c827fa4 100644 --- a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensDimensionUITests/Size/OUDSTokensSizeUITests.swift +++ b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensDimensionUITests/Size/OUDSTokensSizeUITests.swift @@ -85,7 +85,7 @@ final class OUDSTokensSizeUITests: XCTestCase { // Use the `IllustrationWidth` struct to test a single illustration let illustration = OUDSThemeableView(theme: theme) { SizeTokenPage.IllustrationIconDecorative(namedSize: namedToken) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the element in a UIHostingController for snapshot testing @@ -111,7 +111,7 @@ final class OUDSTokensSizeUITests: XCTestCase { // Use the `IllustrationWidth` struct to test a single illustration let illustration = OUDSThemeableView(theme: theme) { SizeTokenPage.IllustrationIconWithLabel(namedSize: namedToken) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the element in a UIHostingController for snapshot testing diff --git a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensDimensionUITests/Space/OUDSTokensSpaceUITests.swift b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensDimensionUITests/Space/OUDSTokensSpaceUITests.swift index 666b83124c..90cfa2b908 100644 --- a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensDimensionUITests/Space/OUDSTokensSpaceUITests.swift +++ b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensDimensionUITests/Space/OUDSTokensSpaceUITests.swift @@ -107,7 +107,7 @@ final class OUDSTokensSpaceUITests: XCTestCase { // Generate the illustration for the specified space token let illustration = OUDSThemeableView(theme: theme) { ScaledSpaceProperty.Illustration(for: namedToken) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -135,7 +135,7 @@ final class OUDSTokensSpaceUITests: XCTestCase { SpaceTokenVariant(namedSpaceToken: namedToken) { token in FixedSpaceProperty.Illustration(token: token) } - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -162,7 +162,7 @@ final class OUDSTokensSpaceUITests: XCTestCase { SpaceTokenVariant(namedSpaceToken: namedToken) { token in PaddingInlineProperty.Illustration(token: token) } - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -190,7 +190,7 @@ final class OUDSTokensSpaceUITests: XCTestCase { SpaceTokenVariant(namedSpaceToken: namedToken) { token in PaddingInsetProperty.Illustration(token: token) } - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -218,7 +218,7 @@ final class OUDSTokensSpaceUITests: XCTestCase { SpaceTokenVariant(namedSpaceToken: namedToken) { token in PaddingStackProperty.Illustration(token: token) } - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -246,7 +246,7 @@ final class OUDSTokensSpaceUITests: XCTestCase { SpaceTokenVariant(namedSpaceToken: namedToken) { token in GapInlineProperty.Illustration(token: token) } - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing @@ -274,7 +274,7 @@ final class OUDSTokensSpaceUITests: XCTestCase { SpaceTokenVariant(namedSpaceToken: namedToken) { token in GapStackProperty.Illustration(token: token) } - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the generated illustration in a UIHostingController for snapshot testing diff --git a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensElevationUITests/OUDSTokensElevationUITests.swift b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensElevationUITests/OUDSTokensElevationUITests.swift index c7275db5a5..f57ea18843 100644 --- a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensElevationUITests/OUDSTokensElevationUITests.swift +++ b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensElevationUITests/OUDSTokensElevationUITests.swift @@ -81,7 +81,7 @@ final class OUDSTokensElevationUITests: XCTestCase { // Use the `IllustrationWidth` struct to test a single illustration let illustration = OUDSThemeableView(theme: theme) { ElevationTokenPage.IllustrationElevation(namedElevation: namedToken) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the element in a UIHostingController for snapshot testing diff --git a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensFontUITests/OUDSTokensFontUITests.swift b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensFontUITests/OUDSTokensFontUITests.swift index 87e215f0d4..70037005b9 100644 --- a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensFontUITests/OUDSTokensFontUITests.swift +++ b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensFontUITests/OUDSTokensFontUITests.swift @@ -81,7 +81,7 @@ final class OUDSTokensFontUITests: XCTestCase { // Use the `IllustrationWidth` struct to test a single illustration let illustration = OUDSThemeableView(theme: theme) { FontTokenPage.IllustrationFont(namedFont: namedToken) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the element in a UIHostingController for snapshot testing diff --git a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensOpacityUITests/OUDSTokensOpacityUITests.swift b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensOpacityUITests/OUDSTokensOpacityUITests.swift index 6a6d597608..8cf3114bc7 100644 --- a/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensOpacityUITests/OUDSTokensOpacityUITests.swift +++ b/Showcase/ShowcaseTests/__Snapshots__/OUDSTokensOpacityUITests/OUDSTokensOpacityUITests.swift @@ -81,7 +81,7 @@ final class OUDSTokensOpacityUITests: XCTestCase { // Use the `IllustrationWidth` struct to test a single illustration let illustration = OUDSThemeableView(theme: theme) { OpacityTokenPage.IllustrationOpacity(opacityName: namedToken) - .background(theme.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) + .background(theme.colors.colorBgPrimary.color(for: interfaceStyle == .light ? .light : .dark)) } // Encapsulate the element in a UIHostingController for snapshot testing