Skip to content

Commit

Permalink
refactor(navbar): update indigo and material colors (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonoff authored Sep 13, 2024
1 parent a7842df commit 646130d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 26 deletions.
36 changes: 22 additions & 14 deletions sass/themes/schemas/components/dark/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
/// @prop {Map} background [color: ('primary', 800)] - The navbar background color.
/// @prop {Color} border-color [transparent] - The navbar border color.
/// @prop {Map} text-color [contrast-color: ('primary', 800)] - The navbar text color.
/// @prop {Map} idle-icon-color [contrast-color: ('primary', 800)] - The navbar idle icon color.
/// @prop {Map} hover-icon-color [contrast-color: ('primary', 800)] - The navbar hover icon color.
/// @requires $material-navbar
$dark-material-navbar: extend(
$material-navbar,
Expand All @@ -30,18 +28,6 @@ $dark-material-navbar: extend(
800,
),
),
idle-icon-color: (
contrast-color: (
'primary',
800,
),
),
hover-icon-color: (
contrast-color: (
'primary',
800,
),
),
)
);

Expand All @@ -57,11 +43,33 @@ $dark-bootstrap-navbar: $bootstrap-navbar;

/// Generates a dark indigo navbar schema.
/// @type {Map}
/// @prop {Map} text-color [contrast-color: ('gray', 100)] - The navbar text color.
/// @prop {Map} idle-icon-color [contrast-color: ('gray', 100, 0.8)] - The navbar idle icon color.
/// @prop {Map} hover-icon-color [contrast-color: ('gray', 100)] - The navbar hover icon color.
/// @prop {Color} border-color [color: ('primary', 200)] - The navbar border color.
/// @requires $indigo-navbar
$dark-indigo-navbar: extend(
$indigo-navbar,
(
text-color: (
contrast-color: (
'gray',
100,
),
),
idle-icon-color: (
contrast-color: (
'gray',
100,
0.8,
),
),
hover-icon-color: (
contrast-color: (
'gray',
100,
),
),
border-color: (
color: (
'primary',
Expand Down
24 changes: 12 additions & 12 deletions sass/themes/schemas/components/light/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
/// @prop {Map} background [color: ('primary', 400)] - The navbar background color.
/// @prop {Color} border-color [transparent] - The navbar border color.
/// @prop {Map} text-color [contrast-color: ('primary', 400)] - The navbar text color.
/// @prop {Map} idle-icon-color [contrast-color: ('primary', 400)] - The navbar idle icon color.
/// @prop {Map} hover-icon-color [contrast-color: ('primary', 400)] - The navbar hover icon color.
/// @prop {Map} idle-icon-color [color: ('gray', 900)] - The navbar idle icon color.
/// @prop {Map} hover-icon-color [color: ('gray', 900)] - The navbar hover icon color.
/// @prop {Number} elevation [4] - The elevation level, between 0-24, to be used for the navbar.
/// @requires {Map} $default-elevation-navbar
$light-navbar: extend(
Expand All @@ -33,15 +33,15 @@ $light-navbar: extend(
),
),
idle-icon-color: (
contrast-color: (
'primary',
400,
color: (
'gray',
900,
),
),
hover-icon-color: (
contrast-color: (
'primary',
400,
color: (
'gray',
900,
),
),
border-color: transparent,
Expand Down Expand Up @@ -126,8 +126,8 @@ $bootstrap-navbar: extend(
/// @type {Map}
/// @prop {Map} background [color: ('surface', 500)] - The navbar background color.
/// @prop {Map} text-color [color: ('gray', 800)] - The navbar text color.
/// @prop {Map} idle-icon-color [color: ('gray', 800)] - The navbar idle icon color.
/// @prop {Map} hover-icon-color [color: ('gray', 800)] - The navbar hover icon color.
/// @prop {Map} idle-icon-color [color: ('gray', 600)] - The navbar idle icon color.
/// @prop {Map} hover-icon-color [color: ('gray', 700)] - The navbar hover icon color.
/// @prop {Color} border-color [color: ('primary', 500)] - The navbar border color.
/// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used for the navbar.
/// @requires {Map} $light-navbar
Expand All @@ -149,13 +149,13 @@ $indigo-navbar: extend(
idle-icon-color: (
color: (
'gray',
800,
600,
),
),
hover-icon-color: (
color: (
'gray',
800,
700,
),
),
border-color: (
Expand Down

0 comments on commit 646130d

Please sign in to comment.