Skip to content

Commit

Permalink
update colors
Browse files Browse the repository at this point in the history
Signed-off-by: Viraj Sanghvi <[email protected]>
  • Loading branch information
virajsanghvi authored and bandinib-amzn committed Aug 26, 2024
1 parent 311e743 commit 79a6aea
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
6 changes: 4 additions & 2 deletions src/themes/v9/global_styling/variables/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ $ouiButtonHeight: $ouiSizeXXL !default;
$ouiButtonHeightSmall: $ouiSizeXL !default;
$ouiButtonHeightXSmall: $ouiSizeL !default;

$ouiButtonColorDisabled: #AFAFAF !default;
// sass-lint:disable no-color-literals
$ouiButtonColorDisabled: lightOrDarkTheme(#AFAFAF, #595F64) !default;
// Only increase the contrast of background color to text to 2.0 for disabled
$ouiButtonColorDisabledText: #8E8E8E !default;
$ouiButtonColorGhostDisabled: lightOrDarkTheme($ouiColorDarkShade, $ouiColorDarkShade) !default;
// sass-lint:disable no-color-literals
$ouiButtonColorGhostDisabled: lightOrDarkTheme($ouiColorDarkShade, #585858) !default;

$ouiButtonBorderRadius: 0 !default;

Expand Down
8 changes: 4 additions & 4 deletions src/themes/v9/global_styling/variables/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ouiColorInk: #131313 !default;

// Core
$ouiColorPrimary: #003B5C !default;
$ouiColorSecondary: #0249D8 !default;
$ouiColorSecondary: #199863 !default;
$ouiColorAccent: #B92FC5 !default;

// Status
Expand Down Expand Up @@ -49,11 +49,11 @@ $ouiColorDisabled: #CDCDCD !default;
$ouiColorPrimaryText: $ouiColorPrimary !default;
$ouiColorSecondaryText: #117F6A !default;
$ouiColorAccentText: #B92FC5 !default;
$ouiColorWarningText: #986600 !default;
$ouiColorDangerText: #973A2E !default;
$ouiColorWarningText: #C48600 !default;
$ouiColorDangerText: #C84133 !default;
$ouiColorDisabledText: #AFAFAF !default;
$ouiColorSuccessText: #0D6453 !default;
$ouiLinkColor: #2452AD !default;
$ouiLinkColor: $ouiColorPrimaryText !default;

// Visualization colors

Expand Down
40 changes: 20 additions & 20 deletions src/themes/v9/v9_colors_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,45 +16,45 @@ $ouiColorGhost: #FCFEFF;
$ouiColorInk: #0A121A;

// Core
$ouiColorPrimary: #0249D8;
$ouiColorSecondary: #00A3E0;
$ouiColorPrimary: #005EB8;
$ouiColorSecondary: #199863;
$ouiColorAccent: #B92FC5;

// Status
$ouiColorSuccess: #117F6A !default;
$ouiColorWarning: #ED9F00 !default;
$ouiColorDanger: #C84133 !default;
$ouiColorDanger: #E42C19 !default;

// Grays
$ouiColorEmptyShade: #131313;
$ouiColorLightestShade: #2A2A2A;
$ouiColorLightShade: #585858;
$ouiColorMediumShade: #AFAFAF;
$ouiColorDarkShade: #CDCDCD;
$ouiColorDarkestShade: #E5E5E5;
$ouiColorFullShade: #FFFFFF;
$ouiColorEmptyShade: #212324;
$ouiColorLightestShade: #303234;
$ouiColorLightShade: #4B4E51;
$ouiColorMediumShade: #616C72;
$ouiColorDarkShade: #778388;
$ouiColorDarkestShade: #8C9BA2;
$ouiColorFullShade: #F3F8FF;

// Backgrounds
$ouiPageBackgroundColor: #181818;
$ouiColorHighlight: #2E2D25;
$ouiPageBackgroundColor: #131313;
$ouiColorHighlight: #494735;

// Variations from core
$ouiTextColor: #FFFFFF;
$ouiTextColor: #F3F8FF;
$ouiTitleColor: $ouiTextColor;
// Ensure contrast between subdued text and the page background
// Should not be shaded as much as $ouiColorDisabled
$ouiTextSubduedColor: makeHighContrastColor(shade($ouiTextColor, 30%), $ouiPageBackgroundColor);
$ouiColorDisabled: shade($ouiTextColor, 70%);
$ouiTextSubduedColor: #A0A9B5;
$ouiColorDisabled: #AFAFAF;

// Contrasty text variants
$ouiColorPrimaryText: #0249D8;
$ouiColorPrimaryText: #005EB8;
$ouiColorSecondaryText: #117F6A;
$ouiColorAccentText: #B92FC5;
$ouiColorWarningText: makeHighContrastColor($ouiColorWarning);
$ouiColorDangerText: makeHighContrastColor($ouiColorDanger);
$ouiColorDisabledText: makeDisabledContrastColor($ouiColorDisabled);
$ouiColorWarningText: #C48600;
$ouiColorDangerText: #C84133;
$ouiColorDisabledText: #60656B;
$ouiColorSuccessText: $ouiColorSecondaryText;
$ouiLinkColor: $ouiColorSecondary;
$ouiLinkColor: $ouiColorPrimaryText;

// Charts
$ouiColorChartLines: $ouiColorLightShade;
Expand Down

0 comments on commit 79a6aea

Please sign in to comment.