Skip to content

Commit 3d9d8fb

Browse files
pja-antclaude
andauthored
Fix dark mode styling for About page (modelcontextprotocol#1438)
* Fix dark mode styling for About page - Added comprehensive dark mode styles for all landing page elements - Fixed background colors, text colors, and borders for dark mode - Added filter to invert MCP logo in dark mode for visibility - Ensured consistent dark mode experience across the About page Fixes modelcontextprotocol#1431 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Switch to use light-dark, more targeted changes * Final tweaks based on feedback --------- Co-authored-by: Claude <[email protected]>
1 parent 14ec41c commit 3d9d8fb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/style.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ body:has(#schema-reference) {
225225
margin-top: 4rem;
226226
}
227227

228-
background: #ffffff;
229-
color: #111827;
228+
color: light-dark(#111827, #e5e7eb);
230229
--highlight-color: #6366f1;
231230
}
232231

@@ -356,7 +355,7 @@ body:has(#schema-reference) {
356355
font-weight: 700;
357356
margin-bottom: 1.5rem;
358357
text-align: center;
359-
color: #111827;
358+
color: light-dark(#111827, #e5e7eb);
360359
}
361360

362361
/* Intro video section */
@@ -377,7 +376,7 @@ body:has(#schema-reference) {
377376
font-size: 2.5rem;
378377
font-weight: 700;
379378
line-height: 1.2;
380-
color: #111827;
379+
color: light-dark(#111827, #e5e7eb);
381380
}
382381

383382
.intro-description {
@@ -579,8 +578,7 @@ body:has(#schema-reference) {
579578
border-radius: 9999px;
580579

581580
border: 6px solid var(--highlight-color);
582-
background: #111827;
583-
color: white;
581+
color: white
584582

585583
font-size: 1.5rem;
586584
font-weight: 700;
@@ -593,6 +591,10 @@ body:has(#schema-reference) {
593591
}
594592
}
595593

594+
.dark .intro-logo img {
595+
filter: invert(1);
596+
}
597+
596598
@media (max-width: 768px) {
597599
.features-grid {
598600
grid-template-columns: 1fr;

0 commit comments

Comments
 (0)