Skip to content

Commit a9beea0

Browse files
feat(look): a "midnight" dark mode, with blue-black in place of each dark gray
In dark mode, the page, surface, header, footer, code, cards, tabs and background grid each take a blue-black of about the same brightness as the neutral gray they replace. Text and borders keep their neutral colors. The docs hub's home page had this palette on its own; now every site has it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 243a7cc commit a9beea0

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

‎src/nominal_sphinx_theme/static/nominal.css‎

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -158,28 +158,29 @@ html.nominal-js .yue div.highlight > pre {
158158
}
159159
}
160160

161-
/* Dark mode, as DESIGN.md's dark mapping: neutral-800 page, neutral-900 header, footer and code,
162-
neutral-700 cards, and hairline white borders. */
161+
/* Dark mode, as DESIGN.md's dark mapping (neutral-800 page, neutral-900 header, footer and code,
162+
neutral-700 cards, and hairline white borders), but in "midnight": each neutral gray is a
163+
blue-black of about the same brightness. Text and borders keep their neutral colors. */
163164
html.dark {
164165
--accent-9: #ffffff;
165166
--accent-10: #e5e5e5;
166167
--accent-a11: #ffffff;
167168
--accent-a12: #ffffff;
168169
--sy-c-link: #ffffff;
169170
--sy-c-link-hover: #a3a3a3;
170-
--sy-c-background: #1f1f1f;
171-
--sy-c-surface: #333333;
171+
--sy-c-background: #121722;
172+
--sy-c-surface: #1e2433;
172173
--sy-c-text: #d4d4d4;
173174
--sy-c-heading: #ffffff;
174175
--sy-c-bold: #ffffff;
175176
--sy-c-light: #a3a3a3;
176177
--sy-c-border: rgba(255, 255, 255, 0.1);
177178
--sy-c-divider: rgba(255, 255, 255, 0.1);
178-
--sy-c-foot-background: #121212;
179-
--nominal-header: #121212;
180-
--code-block-background: #121212;
181-
--nominal-card: #333333;
182-
--nominal-card-hover: #424242;
179+
--sy-c-foot-background: #0b0e15;
180+
--nominal-header: #0b0e15;
181+
--code-block-background: #0b0e15;
182+
--nominal-card: #1a2030;
183+
--nominal-card-hover: #232a3c;
183184
}
184185

185186
/* Header: a solid bar (--nominal-header) with a hairline border, like the landing page's (no blur). */
@@ -205,7 +206,7 @@ html.dark {
205206
--nominal-grid-line: rgba(0, 0, 0, 0.04);
206207
}
207208
html.dark {
208-
--nominal-grid-line: rgba(255, 255, 255, 0.03);
209+
--nominal-grid-line: rgba(150, 175, 255, 0.04);
209210
}
210211
:root,
211212
body,
@@ -774,9 +775,9 @@ html.light {
774775
--nominal-tab-edge: #d6d6d6;
775776
}
776777
html.dark {
777-
--nominal-tab: #191919;
778-
--nominal-tab-hover: #242424;
779-
--nominal-tab-edge: #333333;
778+
--nominal-tab: #0f131c;
779+
--nominal-tab-hover: #171c28;
780+
--nominal-tab-edge: #1e2433;
780781
}
781782
/* On narrow screens the tabs are a list in the menu: the current one is underlined. */
782783
@media (max-width: 767px) {

0 commit comments

Comments
 (0)