-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split color semantic tokens file in several files
- Loading branch information
Showing
13 changed files
with
614 additions
and
452 deletions.
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
...ract/src/main/java/com/orange/ouds/theme/tokens/semantic/OudsColorActionSemanticTokens.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/* | ||
* Software Name: OUDS Android | ||
* 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. | ||
* | ||
* Software description: Android library of reusable graphical components | ||
*/ | ||
|
||
package com.orange.ouds.theme.tokens.semantic | ||
|
||
import androidx.compose.ui.graphics.Color | ||
import com.orange.ouds.tokens.global.raw.ColorRawTokens | ||
import com.orange.ouds.tokens.global.raw.OrangeBrandColorRawTokens | ||
|
||
data class OudsColorActionSemanticTokens( | ||
val actionDisabledLight: Color = ColorRawTokens.colorFunctionalLightGray400, | ||
val actionDisabledOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalDarkGray400, | ||
val actionNegativeEnabledLight: Color = ColorRawTokens.colorFunctionalScarlet600, | ||
val actionNegativeFocusLight: Color = ColorRawTokens.colorFunctionalScarlet700, | ||
val actionNegativeHoverLight: Color = ColorRawTokens.colorFunctionalScarlet700, | ||
val actionNegativeLoadingLight: Color = ColorRawTokens.colorFunctionalScarlet800, | ||
val actionNegativePressedLight: Color = ColorRawTokens.colorFunctionalScarlet800, | ||
val actionPrimaryEnabledLight: Color = ColorRawTokens.colorFunctionalBlack, | ||
val actionPrimaryEnabledOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val actionPrimaryFocusLight: Color = ColorRawTokens.colorFunctionalDarkGray400, | ||
val actionPrimaryFocusOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalLightGray560, | ||
val actionPrimaryHoverLight: Color = ColorRawTokens.colorFunctionalDarkGray400, | ||
val actionPrimaryHoverOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalLightGray560, | ||
val actionPrimaryLoadingLight: Color = OrangeBrandColorRawTokens.colorOrange550, | ||
val actionPrimaryLoadingOnBgEmphasizedLight: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val actionPrimaryPressedLight: Color = OrangeBrandColorRawTokens.colorOrange550, | ||
val actionPrimaryPressedOnBgEmphasizedLight: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val actionSecondaryEnabledLight: Color = ColorRawTokens.colorFunctionalLightGray80, | ||
val actionSecondaryEnabledOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalDarkGray720, | ||
val actionSecondaryFocusLight: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val actionSecondaryFocusOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSecondaryHoverLight: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val actionSecondaryHoverOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSecondaryLoadingLight: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val actionSecondaryLoadingOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSecondaryPressedLight: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val actionSecondaryPressedOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSelectedLight: Color = OrangeBrandColorRawTokens.colorOrange550, | ||
val actionSelectedOnBgEmphasizedLight: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val actionVisitedLight: Color = ColorRawTokens.colorDecorativeAmethyst600, | ||
val actionVisitedOnBgEmphasizedLight: Color = ColorRawTokens.colorDecorativeAmethyst400, | ||
val actionDisabledDark: Color = ColorRawTokens.colorFunctionalDarkGray400, | ||
val actionDisabledOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalDarkGray400, | ||
val actionNegativeEnabledDark: Color = ColorRawTokens.colorFunctionalScarlet600, | ||
val actionNegativeFocusDark: Color = ColorRawTokens.colorFunctionalScarlet700, | ||
val actionNegativeHoverDark: Color = ColorRawTokens.colorFunctionalScarlet700, | ||
val actionNegativeLoadingDark: Color = ColorRawTokens.colorFunctionalScarlet800, | ||
val actionNegativePressedDark: Color = ColorRawTokens.colorFunctionalScarlet800, | ||
val actionPrimaryEnabledDark: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val actionPrimaryEnabledOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val actionPrimaryFocusDark: Color = ColorRawTokens.colorFunctionalLightGray560, | ||
val actionPrimaryFocusOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalLightGray560, | ||
val actionPrimaryHoverDark: Color = ColorRawTokens.colorFunctionalLightGray560, | ||
val actionPrimaryHoverOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalLightGray560, | ||
val actionPrimaryLoadingDark: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val actionPrimaryLoadingOnBgEmphasizedDark: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val actionPrimaryPressedDark: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val actionPrimaryPressedOnBgEmphasizedDark: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val actionSecondaryEnabledDark: Color = ColorRawTokens.colorFunctionalDarkGray720, | ||
val actionSecondaryEnabledOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalDarkGray720, | ||
val actionSecondaryFocusDark: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSecondaryFocusOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSecondaryHoverDark: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSecondaryHoverOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSecondaryLoadingDark: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSecondaryLoadingOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSecondaryPressedDark: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSecondaryPressedOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val actionSelectedDark: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val actionSelectedOnBgEmphasizedDark: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val actionVisitedDark: Color = ColorRawTokens.colorDecorativeAmethyst400, | ||
val actionVisitedOnBgEmphasizedDark: Color = ColorRawTokens.colorDecorativeAmethyst400, | ||
) |
47 changes: 47 additions & 0 deletions
47
...ract/src/main/java/com/orange/ouds/theme/tokens/semantic/OudsColorAlwaysSemanticTokens.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Software Name: OUDS Android | ||
* 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. | ||
* | ||
* Software description: Android library of reusable graphical components | ||
*/ | ||
|
||
package com.orange.ouds.theme.tokens.semantic | ||
|
||
import androidx.compose.ui.graphics.Color | ||
import com.orange.ouds.tokens.global.raw.ColorRawTokens | ||
|
||
data class OudsColorAlwaysSemanticTokens( | ||
val alwaysAccentLight: Color = ColorRawTokens.colorFunctionalSun500, | ||
val alwaysBlackLight: Color = ColorRawTokens.colorFunctionalBlack, | ||
val alwaysInfoLight: Color = ColorRawTokens.colorFunctionalDodgerBlue500, | ||
val alwaysNegativeLight: Color = ColorRawTokens.colorFunctionalScarlet600, | ||
val alwaysOnAccentLight: Color = ColorRawTokens.colorFunctionalBlack, | ||
val alwaysOnBlackLight: Color = ColorRawTokens.colorFunctionalWhite, | ||
val alwaysOnInfoLight: Color = ColorRawTokens.colorFunctionalBlack, | ||
val alwaysOnNegativeLight: Color = ColorRawTokens.colorFunctionalWhite, | ||
val alwaysOnPositiveLight: Color = ColorRawTokens.colorFunctionalBlack, | ||
val alwaysOnWarningLight: Color = ColorRawTokens.colorFunctionalBlack, | ||
val alwaysOnWhiteLight: Color = ColorRawTokens.colorFunctionalBlack, | ||
val alwaysPositiveLight: Color = ColorRawTokens.colorFunctionalMalachite500, | ||
val alwaysWarningLight: Color = ColorRawTokens.colorFunctionalSun500, | ||
val alwaysWhiteLight: Color = ColorRawTokens.colorFunctionalWhite, | ||
val alwaysAccentDark: Color = ColorRawTokens.colorFunctionalSun500, | ||
val alwaysBlackDark: Color = ColorRawTokens.colorFunctionalBlack, | ||
val alwaysInfoDark: Color = ColorRawTokens.colorFunctionalDodgerBlue500, | ||
val alwaysNegativeDark: Color = ColorRawTokens.colorFunctionalScarlet600, | ||
val alwaysOnAccentDark: Color = ColorRawTokens.colorFunctionalDarkGray880, | ||
val alwaysOnBlackDark: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val alwaysOnInfoDark: Color = ColorRawTokens.colorFunctionalDarkGray880, | ||
val alwaysOnNegativeDark: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val alwaysOnPositiveDark: Color = ColorRawTokens.colorFunctionalDarkGray880, | ||
val alwaysOnWarningDark: Color = ColorRawTokens.colorFunctionalDarkGray880, | ||
val alwaysOnWhiteDark: Color = ColorRawTokens.colorFunctionalDarkGray880, | ||
val alwaysPositiveDark: Color = ColorRawTokens.colorFunctionalMalachite500, | ||
val alwaysWarningDark: Color = ColorRawTokens.colorFunctionalSun500, | ||
val alwaysWhiteDark: Color = ColorRawTokens.colorFunctionalWhite, | ||
) |
64 changes: 64 additions & 0 deletions
64
...contract/src/main/java/com/orange/ouds/theme/tokens/semantic/OudsColorBgSemanticTokens.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Software Name: OUDS Android | ||
* 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. | ||
* | ||
* Software description: Android library of reusable graphical components | ||
*/ | ||
|
||
package com.orange.ouds.theme.tokens.semantic | ||
|
||
import androidx.compose.ui.graphics.Color | ||
import com.orange.ouds.tokens.global.raw.ColorRawTokens | ||
import com.orange.ouds.tokens.global.raw.OrangeBrandColorRawTokens | ||
|
||
data class OudsColorBgSemanticTokens( | ||
val bgBrandPrimaryLight: Color = OrangeBrandColorRawTokens.colorOrange550, | ||
val bgEmphasizedLight: Color = ColorRawTokens.colorFunctionalDarkGray880, | ||
val bgPrimaryLight: Color = ColorRawTokens.colorFunctionalWhite, | ||
val bgSecondaryLight: Color = ColorRawTokens.colorFunctionalLightGray80, | ||
val bgStatusAccentEmphasizedLight: Color = ColorRawTokens.colorFunctionalSun500, | ||
val bgStatusAccentMutedLight: Color = OrangeBrandColorRawTokens.colorWarmGray100, | ||
val bgStatusAccentMutedOnBgEmphasizedLight: Color = OrangeBrandColorRawTokens.colorWarmGray900, | ||
val bgStatusInfoEmphasizedLight: Color = ColorRawTokens.colorFunctionalDodgerBlue500, | ||
val bgStatusInfoMutedLight: Color = ColorRawTokens.colorFunctionalDodgerBlue100, | ||
val bgStatusInfoMutedOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalDodgerBlue900, | ||
val bgStatusNegativeEmphasizedLight: Color = ColorRawTokens.colorFunctionalScarlet600, | ||
val bgStatusNegativeMutedLight: Color = ColorRawTokens.colorFunctionalScarlet100, | ||
val bgStatusNegativeMutedOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalScarlet900, | ||
val bgStatusNeutralLight: Color = ColorRawTokens.colorFunctionalLightGray80, | ||
val bgStatusNeutralOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalDarkGray720, | ||
val bgStatusPositiveEmphasizedLight: Color = ColorRawTokens.colorFunctionalMalachite500, | ||
val bgStatusPositiveMutedLight: Color = ColorRawTokens.colorFunctionalMalachite100, | ||
val bgStatusPositiveMutedOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalMalachite900, | ||
val bgStatusWarningEmphasizedLight: Color = ColorRawTokens.colorFunctionalSun500, | ||
val bgStatusWarningMutedLight: Color = ColorRawTokens.colorFunctionalSun100, | ||
val bgStatusWarningMutedOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalSun900, | ||
val bgTertiaryLight: Color = OrangeBrandColorRawTokens.colorWarmGray100, | ||
val bgBrandPrimaryDark: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val bgEmphasizedDark: Color = ColorRawTokens.colorFunctionalDarkGray640, | ||
val bgPrimaryDark: Color = ColorRawTokens.colorFunctionalDarkGray880, | ||
val bgSecondaryDark: Color = ColorRawTokens.colorFunctionalDarkGray800, | ||
val bgStatusAccentEmphasizedDark: Color = ColorRawTokens.colorFunctionalSun500, | ||
val bgStatusAccentMutedDark: Color = OrangeBrandColorRawTokens.colorWarmGray900, | ||
val bgStatusAccentMutedOnBgEmphasizedDark: Color = OrangeBrandColorRawTokens.colorWarmGray900, | ||
val bgStatusInfoEmphasizedDark: Color = ColorRawTokens.colorFunctionalDodgerBlue500, | ||
val bgStatusInfoMutedDark: Color = ColorRawTokens.colorFunctionalDodgerBlue900, | ||
val bgStatusInfoMutedOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalDodgerBlue900, | ||
val bgStatusNegativeEmphasizedDark: Color = ColorRawTokens.colorFunctionalScarlet600, | ||
val bgStatusNegativeMutedDark: Color = ColorRawTokens.colorFunctionalScarlet900, | ||
val bgStatusNegativeMutedOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalScarlet900, | ||
val bgStatusNeutralDark: Color = ColorRawTokens.colorFunctionalDarkGray720, | ||
val bgStatusNeutralOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalDarkGray720, | ||
val bgStatusPositiveEmphasizedDark: Color = ColorRawTokens.colorFunctionalMalachite500, | ||
val bgStatusPositiveMutedDark: Color = ColorRawTokens.colorFunctionalMalachite900, | ||
val bgStatusPositiveMutedOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalMalachite900, | ||
val bgStatusWarningEmphasizedDark: Color = ColorRawTokens.colorFunctionalSun500, | ||
val bgStatusWarningMutedDark: Color = ColorRawTokens.colorFunctionalSun900, | ||
val bgStatusWarningMutedOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalSun900, | ||
val bgTertiaryDark: Color = OrangeBrandColorRawTokens.colorWarmGray900, | ||
) |
42 changes: 42 additions & 0 deletions
42
...ract/src/main/java/com/orange/ouds/theme/tokens/semantic/OudsColorBorderSemanticTokens.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Software Name: OUDS Android | ||
* 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. | ||
* | ||
* Software description: Android library of reusable graphical components | ||
*/ | ||
|
||
package com.orange.ouds.theme.tokens.semantic | ||
|
||
import androidx.compose.ui.graphics.Color | ||
import com.orange.ouds.tokens.global.raw.ColorRawTokens | ||
import com.orange.ouds.tokens.global.raw.OrangeBrandColorRawTokens | ||
|
||
data class OudsColorBorderSemanticTokens( | ||
val borderBrandPrimaryLight: Color = OrangeBrandColorRawTokens.colorOrange550, | ||
val borderBrandPrimaryOnBgEmphasizedLight: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val borderDefaultLight: Color = ColorRawTokens.colorFunctionalLightGray400, | ||
val borderDefaultOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalDarkGray400, | ||
val borderEmphasizedLight: Color = ColorRawTokens.colorFunctionalBlack, | ||
val borderEmphasizedOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val borderFocusLight: Color = ColorRawTokens.colorFunctionalBlack, | ||
val borderFocusInsetLight: Color = ColorRawTokens.colorFunctionalWhite, | ||
val borderFocusInsetOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalDarkGray880, | ||
val borderFocusOnBgEmphasizedLight: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val borderOnBrandPrimaryLight: Color = ColorRawTokens.colorFunctionalWhite, | ||
val borderBrandPrimaryDark: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val borderBrandPrimaryOnBgEmphasizedDark: Color = OrangeBrandColorRawTokens.colorOrange500, | ||
val borderDefaultDark: Color = ColorRawTokens.colorFunctionalDarkGray400, | ||
val borderDefaultOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalDarkGray400, | ||
val borderEmphasizedDark: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val borderEmphasizedOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val borderFocusDark: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val borderFocusInsetDark: Color = ColorRawTokens.colorFunctionalDarkGray880, | ||
val borderFocusInsetOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalLightGray160, | ||
val borderFocusOnBgEmphasizedDark: Color = ColorRawTokens.colorFunctionalDarkGray880, | ||
val borderOnBrandPrimaryDark: Color = ColorRawTokens.colorFunctionalBlack, | ||
) |
Oops, something went wrong.