Skip to content

Commit ba0a546

Browse files
committed
fix dark mode
1 parent 18345f4 commit ba0a546

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

src/components/Navigation/AccentButton.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
inset 0 0 0.27rem rgba(255, 255, 255, 0.5);
124124

125125
@media (prefers-color-scheme: dark) {
126-
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 90%);
126+
background-color: oklch(from var(--accent-color) 0.25 0.02 h / 90%);
127127
box-shadow:
128128
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
129129
0 0 1rem rgba(0, 0, 0, 0.05),

src/components/Navigation/BackButton.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
inset 0 0 0.27rem rgba(255, 255, 255, 0.5);
2828

2929
@media (prefers-color-scheme: dark) {
30-
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 90%);
30+
background-color: oklch(from var(--accent-color) 0.25 0.02 h / 90%);
3131
box-shadow:
3232
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
3333
0 0 1rem rgba(0, 0, 0, 0.05),

src/components/Navigation/Headerbar.astro

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const showBackButton = Astro.url.pathname !== "/";
4444
font-weight: 590;
4545
text-align: center;
4646
background-color: oklch(from var(--accent-color) 0.98 0.03 h / 90%);
47+
4748
padding: 4px 16px;
4849
border-radius: 100px;
4950
backdrop-filter: blur(2px);
@@ -58,6 +59,15 @@ const showBackButton = Astro.url.pathname !== "/";
5859
0 0 1rem rgba(0, 0, 0, 0.05),
5960
inset 0 1px 1px rgba(255, 255, 255, 0.5),
6061
inset 0 0 0.27rem rgba(255, 255, 255, 0.5);
62+
63+
@media (prefers-color-scheme: dark) {
64+
background-color: oklch(from var(--accent-color) 0.25 0.02 h / 90%);
65+
box-shadow:
66+
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
67+
0 0 1rem rgba(0, 0, 0, 0.05),
68+
inset 0 1px 1px oklch(1 0 0 / 0.1),
69+
inset 0 0 0.27rem rgba(255, 255, 255, 0.1);
70+
}
6171
}
6272

6373
.headerbar-title {

src/components/Navigation/TabBarLarge.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { icons } from "./icons.js";
1717
inset 0 0 0.27rem rgba(255, 255, 255, 0.5);
1818

1919
@media (prefers-color-scheme: dark) {
20-
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 90%);
20+
background-color: oklch(from var(--accent-color) 0.25 0.02 h / 90%);
2121
box-shadow:
2222
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
2323
0 0 1rem rgba(0, 0, 0, 0.05),

src/components/Navigation/TabBarSmall.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { icons } from "./icons.js";
2121
inset 0 0 0.27rem rgba(255, 255, 255, 0.5);
2222

2323
@media (prefers-color-scheme: dark) {
24-
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 90%);
24+
background-color: oklch(from var(--accent-color) 0.25 0.02 h / 90%);
2525
box-shadow:
2626
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
2727
0 0 1rem rgba(0, 0, 0, 0.05),

src/styles/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ a[href^="http"]:not(:has(.arrow)):not(:has(img)):not(:has(svg)):not(
164164
@media (prefers-color-scheme: dark) {
165165
html,
166166
body {
167-
background: oklch(from var(--accent-color) 0.25 0.03 h);
167+
background: oklch(from var(--accent-color) 0.25 0.02 h);
168168
}
169169
}
170170
transparent html,

0 commit comments

Comments
 (0)