Skip to content

Commit fdb1000

Browse files
committed
Theme: Updating the color scheme based on user feedback
1 parent 1ac9423 commit fdb1000

4 files changed

Lines changed: 53 additions & 30 deletions

File tree

‎assets/scss/_header.scss‎

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,35 +40,57 @@
4040
.logo-img--light { display: none; }
4141

4242
.theme-toggle {
43-
background: none;
44-
border: 1px solid $dark-border;
45-
border-radius: 8px;
46-
width: 36px;
47-
height: 36px;
43+
background: rgba(255, 210, 40, 0.08);
44+
border: 1px solid rgba(255, 210, 40, 0.3);
45+
border-radius: 50%;
46+
width: 40px;
47+
height: 40px;
4848
display: flex;
4949
align-items: center;
5050
justify-content: center;
5151
cursor: pointer;
52-
color: $muted;
53-
transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
52+
color: #ffd028;
53+
transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
5454
flex-shrink: 0;
5555
padding: 0;
56+
position: relative;
57+
58+
// Glow effect in dark mode — wide, soft
59+
box-shadow:
60+
0 0 10px rgba(255, 210, 40, 0.2),
61+
0 0 40px rgba(255, 210, 40, 0.1),
62+
0 0 80px rgba(255, 210, 40, 0.05);
63+
64+
// Radial light spill behind the button
65+
&::before {
66+
content: '';
67+
position: absolute;
68+
inset: -40px;
69+
border-radius: 50%;
70+
background: radial-gradient(circle, rgba(255, 210, 40, 0.07) 0%, transparent 70%);
71+
pointer-events: none;
72+
z-index: -1;
73+
}
5674

5775
&:hover {
58-
border-color: rgba($accent, 0.4);
59-
color: $accent;
60-
background: $accent-glow;
76+
background: rgba(255, 210, 40, 0.12);
77+
border-color: rgba(255, 210, 40, 0.5);
78+
box-shadow:
79+
0 0 14px rgba(255, 210, 40, 0.3),
80+
0 0 60px rgba(255, 210, 40, 0.15),
81+
0 0 120px rgba(255, 210, 40, 0.06);
6182
}
62-
63-
.icon-moon { display: none; }
64-
svg { display: flex; }
6583
}
6684

6785
.header-right {
6886
display: flex;
6987
align-items: center;
7088
gap: 0.5rem;
7189
margin-left: auto;
90+
91+
@media (max-width: $break-md) {
92+
gap: 1rem;
93+
}
7294
}
7395

7496
.site-nav {

‎assets/scss/_light-theme.scss‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,21 @@
2828
.logo-img--dark { display: none; }
2929
.logo-img--light { display: block; }
3030

31-
// Theme toggle button
31+
// Theme toggle button — unlit bulb in light mode
3232
.theme-toggle {
33+
background: #f1f5f9;
3334
border-color: #dde3ed;
34-
color: #64748b;
35+
color: #94a3b8;
36+
box-shadow: none;
37+
38+
&::before { display: none; }
3539

3640
&:hover {
37-
border-color: rgba(0, 200, 255, 0.5);
38-
color: #0272a5;
39-
background: rgba(0, 200, 255, 0.06);
41+
background: #e2e8f0;
42+
border-color: #cbd5e1;
43+
color: #64748b;
44+
box-shadow: none;
4045
}
41-
42-
.icon-sun { display: none; }
43-
.icon-moon { display: flex; }
4446
}
4547

4648
// Hero

‎assets/scss/_variables.scss‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Colors
22
$black: #000000;
3-
$dark-bg: #0a0a0f;
4-
$dark-surface: #111118;
5-
$dark-card: #16161f;
6-
$dark-border: #1e1e2a;
3+
$dark-bg: #0d0f1a;
4+
$dark-surface: #141629;
5+
$dark-card: #1a1d30;
6+
$dark-border: #252840;
77
$white: #ffffff;
88
$off-white: #e8e8f0;
99
$muted: #6b6b80;

‎layouts/partials/header.html‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
<span></span>
1919
</button>
2020
<button class="theme-toggle" id="theme-toggle" aria-label="Toggle colour theme">
21-
<svg class="icon-sun" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
22-
<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/>
23-
</svg>
24-
<svg class="icon-moon" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
25-
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
21+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
22+
<path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/>
23+
<path d="M9 18h6"/>
24+
<path d="M10 22h4"/>
2625
</svg>
2726
</button>
2827
</div>

0 commit comments

Comments
 (0)