Skip to content

Commit d466234

Browse files
committed
Integrate native theme color scheme
1 parent a174c4e commit d466234

4 files changed

Lines changed: 39 additions & 3 deletions

File tree

docs/uiux-20-round-log.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,38 @@
22

33
This log tracks the repeated screenshot-led UI/UX improvement rounds for Joey's Notes.
44

5+
## Round 45 - 2026-07-10 - Native Theme Integration
6+
7+
Evidence:
8+
9+
- Browser review: homepage header at `390x844` in saved dark mode.
10+
- Screenshot: `/tmp/oiahoon-uiux-rounds/round45-before-theme-mobile.png`.
11+
- Baseline measurement: the page theme was `dark`, while the browser computed `color-scheme: normal`.
12+
13+
Findings:
14+
15+
- The site already persists light and dark themes, but native browser surfaces were not told which palette was active.
16+
- Scrollbars, form controls, and browser-provided UI should harmonize with the selected theme.
17+
- The fix should use CSS platform behavior rather than custom-skinned controls.
18+
19+
Changes:
20+
21+
- Declared light color scheme for the root theme and dark color scheme for `.dark`.
22+
- Kept the existing palette, toggle behavior, and locked-dark photography rules.
23+
- Avoided new JavaScript or custom browser chrome.
24+
- Bumped the app version to `0.0.46`.
25+
26+
Validation plan:
27+
28+
Results:
29+
30+
- Browser verification: dark mode computes `color-scheme: dark` and light mode computes `color-scheme: light`.
31+
- Browser verification: theme switching still updates the visible page with no horizontal overflow.
32+
- `npm run check:content-health` passed.
33+
- `npm run build` passed.
34+
- `git diff --check` passed.
35+
- `npm run check:security` reports the known `4 vulnerabilities (3 low, 1 moderate)`; the full fix requires a breaking Astro upgrade.
36+
537
## Round 44 - 2026-07-10 - Code Block Boundary
638

739
Evidence:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "joey-notes-astro",
33
"type": "module",
4-
"version": "0.0.45",
4+
"version": "0.0.46",
55
"scripts": {
66
"dev": "astro dev",
77
"build": "astro build",

src/styles/global.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
@tailwind utilities;
44

55
:root {
6+
color-scheme: light;
7+
68
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
79
"Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
810
--font-serif: "Iowan Old Style", "Palatino Linotype", "Times New Roman",
@@ -32,6 +34,8 @@
3234
}
3335

3436
.dark {
37+
color-scheme: dark;
38+
3539
--bg: #11100e;
3640
--surface: #191816;
3741
--text: #eee7dc;

0 commit comments

Comments
 (0)