Skip to content

Commit 8dd1164

Browse files
zlyfunctionclaude
andcommitted
Make dark mode Google-branded instead of YouTube-branded
The dark theme was a YouTube pastiche: red accents, near-black surfaces, and applyTheme() swapped the Google wordmarks for the YouTube logo pointing at youtube.com. Drop the swap so the bio logos stay Google in both themes, and recolour the palette to Google's Material dark values (#8ab4f8 on #202124), including lightened red/yellow/green so the four-colour section bar and the rotating academic dots read on dark instead of being overridden to #ff0000. youtube_logo.svg had no other references, so it goes with it. The YouTube link under Publications is a real talk recording and stays. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 7f80a32 commit 8dd1164

2 files changed

Lines changed: 26 additions & 48 deletions

File tree

index.html

Lines changed: 26 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -51,50 +51,43 @@
5151
--radius-pill: 999px;
5252
}
5353

54-
/* ── YouTube-style dark theme ── */
54+
/* ── Google-style dark theme ── */
5555
[data-theme="dark"] {
56-
/* YouTube red theme — softer, low-saturation red for links/accents */
57-
--google-blue: #e08a83;
58-
--google-blue-hover: #ee9f98;
59-
--google-blue-light: rgba(224, 138, 131, 0.16);
60-
61-
--color-bg: #0f0f0f;
62-
--color-surface: #181818;
63-
--color-surface-variant: #212121;
64-
--color-surface-tonal: #272727;
65-
--color-text: #f1f1f1;
66-
--color-text-secondary: #aaaaaa;
67-
--color-text-tertiary: #717171;
68-
--color-accent: #e08a83;
69-
--color-accent-light: #ee9f98;
70-
--color-border: #3f3f3f;
71-
--color-border-light: #272727;
72-
--color-highlight: rgba(224, 138, 131, 0.16);
73-
--color-award: #ffd24d;
74-
--color-award-bg: rgba(255, 210, 77, 0.14);
56+
/* Google brand colors, lightened for dark surfaces */
57+
--google-blue: #8ab4f8;
58+
--google-blue-hover: #aecbfa;
59+
--google-blue-light: rgba(138, 180, 248, 0.16);
60+
--google-red: #f28b82;
61+
--google-yellow: #fdd663;
62+
--google-green: #81c995;
63+
64+
--color-bg: #202124;
65+
--color-surface: #202124;
66+
--color-surface-variant: #28292c;
67+
--color-surface-tonal: #303134;
68+
--color-text: #e8eaed;
69+
--color-text-secondary: #9aa0a6;
70+
--color-text-tertiary: #80868b;
71+
--color-accent: #8ab4f8;
72+
--color-accent-light: #aecbfa;
73+
--color-border: #3c4043;
74+
--color-border-light: #2d2e31;
75+
--color-highlight: rgba(138, 180, 248, 0.16);
76+
--color-award: #fdd663;
77+
--color-award-bg: rgba(253, 214, 99, 0.14);
7578
--color-card-shadow: rgba(0, 0, 0, 0.6);
7679
--color-card-shadow-soft: rgba(0, 0, 0, 0.4);
7780
}
7881

7982
[data-theme="dark"] nav {
80-
background: rgba(15, 15, 15, 0.92);
81-
border-bottom-color: #272727;
82-
}
83-
84-
/* YouTube red accent bar in place of the Google four-color gradient */
85-
[data-theme="dark"] .section-title::before {
86-
background: #ff0000;
87-
}
88-
89-
/* YouTube red dot before the first academic group (Teaching Assistant) */
90-
[data-theme="dark"] .academic-group:nth-of-type(1) .academic-subtitle::before {
91-
background: #ff0000;
83+
background: rgba(32, 33, 36, 0.92);
84+
border-bottom-color: #2d2e31;
9285
}
9386

9487
/* Neutral dark chips behind the colorful illustration icons */
9588
[data-theme="dark"] .funfact-icon,
9689
[data-theme="dark"] .misc-card-icon {
97-
background: #272727;
90+
background: #303134;
9891
}
9992

10093
/* Brighten Go-board lines so they read on dark */
@@ -1359,16 +1352,6 @@
13591352
function applyTheme(theme) {
13601353
var dark = theme === 'dark';
13611354
document.documentElement.setAttribute('data-theme', dark ? 'dark' : 'light');
1362-
// Swap Google branding for YouTube branding in dark mode
1363-
document.querySelectorAll('.bio-logo-google').forEach(function (img) {
1364-
img.src = dark ? './youtube_logo.svg' : './google_logo.png';
1365-
img.alt = dark ? 'YouTube' : 'Google';
1366-
var link = img.closest('a.logo-link');
1367-
if (link) {
1368-
link.href = dark ? 'https://www.youtube.com/' : 'https://about.google/';
1369-
link.setAttribute('aria-label', dark ? 'YouTube' : 'Google');
1370-
}
1371-
});
13721355
// Swap the thesis illustration for its dark-mode version
13731356
var thesis = document.getElementById('thesis-img');
13741357
if (thesis) {

youtube_logo.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)