Skip to content

Commit

Permalink
feat: customizable Alert block colors and text color
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Jan 9, 2024
1 parent abc80d2 commit 77bf2d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 6 additions & 4 deletions src/theme/ItaliaTheme/Blocks/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,28 @@

.bg-alert-danger {
background-color: $alert-danger;
color: $white;
color: $alert-danger-text;

a {
color: $white;
color: $alert-danger-text;
}
}

.bg-alert-warning {
background-color: $alert-warning;
color: $alert-warning-text;

a {
color: $body-color;
color: $alert-warning-text;
}
}

.bg-alert-info {
background-color: $alert-info;
color: $alert-info-text;

a {
color: $body-color;
color: $alert-info-text;
}
}

Expand Down
9 changes: 6 additions & 3 deletions src/theme/_site-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ $caption-text: #455b71 !default;
$primary-a0: hsl($primary-h, 62%, 97%) !default;

// ALERT-BLOCK CUSTOM COLORS
$alert-danger: #a32219;
$alert-warning: #eb973f;
$alert-info: #f0c250;
$alert-danger: #a32219 !default;
$alert-danger-text: $white !default;
$alert-warning: #eb973f !default;
$alert-warning-text: $body-color !default;
$alert-info: #f0c250 !default;
$alert-info-text: $body-color !default;

$argument-icon-color: $tertiary !default;
$argument-icon-bg: #f5f6f7 !default;
Expand Down

0 comments on commit 77bf2d1

Please sign in to comment.