Skip to content

Commit a314d19

Browse files
committed
logo color change dark mode
1 parent 9316346 commit a314d19

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

styles.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
:root {
33
--bg-color: #fafafa;
44
--text-color: #333;
5+
--logo-color: #010101;
56
--card-bg: white;
67
--grid-color: rgba(0,0,0,0.03);
78
--shadow-color: rgba(0,0,0,0.05);
@@ -11,6 +12,7 @@
1112
[data-theme="dark"] {
1213
--bg-color: #1a1a1a;
1314
--text-color: #e1e1e1;
15+
--logo-color: #ffffff;
1416
--card-bg: #2a2a2a;
1517
--grid-color: rgba(255,255,255,0.03);
1618
--shadow-color: rgba(0,0,0,0.2);
@@ -56,7 +58,11 @@ h1 {
5658
.logo {
5759
height: 24px;
5860
width: auto;
59-
color: var(--text-color);
61+
transition: filter 0.3s ease;
62+
}
63+
64+
[data-theme="dark"] .logo {
65+
filter: invert(1);
6066
}
6167

6268
/* Dark mode toggle */
@@ -89,7 +95,7 @@ h1 {
8995
display: flex;
9096
align-items: center;
9197
justify-content: center;
92-
background-image: url("svg/sun-icon.svg");
98+
background-image: url("images/sun-icon.svg");
9399
background-size: 16px;
94100
background-position: center;
95101
background-repeat: no-repeat;
@@ -102,7 +108,7 @@ h1 {
102108
.theme-toggle[aria-checked="true"]::before {
103109
transform: translateX(32px);
104110
background-color: #2d3748;
105-
background-image: url("svg/moon-icon.svg");
111+
background-image: url("images/moon-icon.svg");
106112
}
107113

108114
/* Product list */

0 commit comments

Comments
 (0)