Skip to content

Commit

Permalink
fix dark mode colors
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Feb 22, 2024
1 parent d7aef7e commit 3d8dbb4
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 16 deletions.
25 changes: 20 additions & 5 deletions client/src/curriculum/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
--cur-bg-color-list-item-header: var(
--cur-bg-color-list-item-topic-standards
);
--cur-bg-color-topic-icon: var(--cur-bg-color-topic-icon-topic-standards);
--cur-color-list-item-icon: var(--cur-color-list-item-icon-topic-standards);
--cur-bg-color-list-item-icon: var(
--cur-bg-color-list-item-icon-topic-standards
);
}

.topic-styling {
Expand All @@ -22,7 +25,10 @@
--cur-bg-color-list-item-header: var(
--cur-bg-color-list-item-topic-styling
);
--cur-bg-color-topic-icon: var(--cur-bg-color-topic-icon-topic-styling);
--cur-color-list-item-icon: var(--cur-color-list-item-icon-topic-styling);
--cur-bg-color-list-item-icon: var(
--cur-bg-color-list-item-icon-topic-styling
);
}

.topic-scripting {
Expand All @@ -31,7 +37,10 @@
--cur-bg-color-list-item-header: var(
--cur-bg-color-list-item-topic-scripting
);
--cur-bg-color-topic-icon: var(--cur-bg-color-topic-icon-topic-scripting);
--cur-color-list-item-icon: var(--cur-color-list-item-icon-topic-scripting);
--cur-bg-color-list-item-icon: var(
--cur-bg-color-list-item-icon-topic-scripting
);
}

.topic-tooling {
Expand All @@ -40,7 +49,10 @@
--cur-bg-color-list-item-header: var(
--cur-bg-color-list-item-topic-tooling
);
--cur-bg-color-topic-icon: var(--cur-bg-color-topic-icon-topic-tooling);
--cur-color-list-item-icon: var(--cur-color-list-item-icon-topic-tooling);
--cur-bg-color-list-item-icon: var(
--cur-bg-color-list-item-icon-topic-tooling
);
}

.topic-practices {
Expand All @@ -49,7 +61,10 @@
--cur-bg-color-list-item-header: var(
--cur-bg-color-list-item-topic-practices
);
--cur-bg-color-topic-icon: var(--cur-bg-color-topic-icon-topic-practices);
--cur-color-list-item-icon: var(--cur-color-list-item-icon-topic-practices);
--cur-bg-color-list-item-icon: var(
--cur-bg-color-list-item-icon-topic-practices
);
}

.curriculum-content {
Expand Down
8 changes: 8 additions & 0 deletions client/src/curriculum/modules-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,14 @@
svg.topic-icon {
height: 4rem;
width: 4rem;

circle {
fill: var(--cur-bg-color-list-item-icon);
}

path {
fill: var(--cur-color-list-item-icon);
}
}

> span {
Expand Down
2 changes: 1 addition & 1 deletion client/src/curriculum/topic-icon.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
svg.topic-icon {
circle {
fill: var(--cur-bg-color-topic-icon);
fill: var(--background-primary);
}

path {
Expand Down
30 changes: 20 additions & 10 deletions client/src/ui/base/_themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,16 @@
--cur-border-color-list-item: #f2f1f1;
--cur-border-color-list-item-hover: rgba(227, 100, 42, 0.7);
--cur-bg-color-list-item-body: #fff;
--cur-bg-color-topic-icon-topic-standards: #fff;
--cur-bg-color-topic-icon-topic-styling: #fff;
--cur-bg-color-topic-icon-topic-scripting: #fff;
--cur-bg-color-topic-icon-topic-tooling: #fff;
--cur-bg-color-topic-icon-topic-practices: #fff;
--cur-color-list-item-icon-topic-standards: #{$mdn-color-light-theme-red-60};
--cur-color-list-item-icon-topic-styling: #{$mdn-color-light-theme-blue-60};
--cur-color-list-item-icon-topic-scripting: #{$mdn-color-light-theme-yellow-60};
--cur-color-list-item-icon-topic-tooling: #{$mdn-color-light-theme-green-60};
--cur-color-list-item-icon-topic-practices: #{$mdn-color-light-theme-violet-60};
--cur-bg-color-list-item-icon-topic-standards: #fff;
--cur-bg-color-list-item-icon-topic-styling: #fff;
--cur-bg-color-list-item-icon-topic-scripting: #fff;
--cur-bg-color-list-item-icon-topic-tooling: #fff;
--cur-bg-color-list-item-icon-topic-practices: #fff;
--cur-bg-color-list-item-topic-standards: #{$mdn-color-light-theme-red-50}30;
--cur-bg-color-list-item-topic-styling: #{$mdn-color-light-theme-blue-50}30;
--cur-bg-color-list-item-topic-scripting: #{$mdn-color-light-theme-yellow-50}30;
Expand Down Expand Up @@ -504,11 +509,16 @@
--cur-bg-color-list-item-topic-scripting: #343434;
--cur-bg-color-list-item-topic-tooling: #343434;
--cur-bg-color-list-item-topic-practices: #343434;
--cur-bg-color-topic-icon-topic-standards: #804248;
--cur-bg-color-topic-icon-topic-styling: #425080;
--cur-bg-color-topic-icon-topic-scripting: #806a42;
--cur-bg-color-topic-icon-topic-tooling: #428050;
--cur-bg-color-topic-icon-topic-practices: #584280;
--cur-color-list-item-icon-topic-standards: #f2919c;
--cur-color-list-item-icon-topic-styling: #91a6f2;
--cur-color-list-item-icon-topic-scripting: #f2cf8f;
--cur-color-list-item-icon-topic-tooling: #8ff2a4;
--cur-color-list-item-icon-topic-practices: #c891f2;
--cur-bg-color-list-item-icon-topic-standards: #804248;
--cur-bg-color-list-item-icon-topic-styling: #425080;
--cur-bg-color-list-item-icon-topic-scripting: #806a42;
--cur-bg-color-list-item-icon-topic-tooling: #428050;
--cur-bg-color-list-item-icon-topic-practices: #584280;
--cur-shadow: 2px 2px 5px 0 rgba(36, 36, 36, 0.15),
-2px 2px 8px 0 rgba(87, 87, 87, 0.15);
--cur-shadow-landing-about-ul: 0 4px 10px 0 rgba(227, 100, 42, 0.06),
Expand Down

0 comments on commit 3d8dbb4

Please sign in to comment.