Skip to content

Commit 00c39d1

Browse files
Dominik Steinacherclaude
authored andcommitted
fix(aicoc-hub): lighter dark-mode cards & blend hero corners
Two visual tweaks based on dark-mode preview feedback: 1. **Lighter cards.** The previous #1a1a1c card bg was too close to the page tone — cards barely separated from the background. Bump to #2d2d33 with a #3d3d44 border so cards visibly lift. Text colors nudged slightly lighter to keep readable contrast (#f5f5f7 title, #d4d4d8 description). 2. **Blend the hero corners with the page.** The hero's border-radius was revealing the page bg (#0e0e10) at the corners, which read as lighter "white" patches next to the hero's #0b0b0d darkest gradient stop. Match the page bg to the hero's darkest tone so the rounded corners disappear into the page seamlessly. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 67a468a commit 00c39d1

2 files changed

Lines changed: 17 additions & 12 deletions

File tree

blocks/session-card/session-card.css

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,11 @@
195195
*/
196196
@media (prefers-color-scheme: dark) {
197197
.session-card {
198-
background: #1a1a1c;
199-
border-color: #2a2a2e;
198+
/* Lighter than the page bg (#0b0b0d) so cards lift visibly. The
199+
* earlier #1a1a1c was too close to the page tone and the cards
200+
* blended in. */
201+
background: #2d2d33;
202+
border-color: #3d3d44;
200203
}
201204

202205
.session-card:hover,
@@ -206,28 +209,29 @@
206209
}
207210

208211
.session-card-title {
209-
color: #f0f0f0;
212+
color: #f5f5f7;
210213
}
211214

212215
.session-card-description {
213-
color: #c5c5c9;
216+
color: #d4d4d8;
214217
}
215218

216219
.session-card-meta {
217-
color: #888;
220+
color: #9a9aa0;
218221
}
219222

220223
.session-card-presenter {
221-
color: #f0f0f0;
224+
color: #f5f5f7;
222225
}
223226

224227
.session-card-sep {
225-
color: #555;
228+
color: #666;
226229
}
227230

228-
/* Dark variant of the no-image media strip — softer border. */
231+
/* Dark variant of the no-image media strip — softer border matching the
232+
* lighter card body. */
229233
/* stylelint-disable-next-line selector-class-pattern */
230234
.session-card--no-image .session-card-media {
231-
border-bottom-color: #2a2a2e;
235+
border-bottom-color: #3d3d44;
232236
}
233237
}

styles/aicoc.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,12 @@ body.aicoc-hub main > div ~ div {
175175
background: transparent;
176176
}
177177

178-
/* Dark mode: tint the body bg so the contained dark hero still stands out
179-
* against the surrounding page (which would otherwise be pure white). */
178+
/* Dark mode: match the body bg to the hero's darkest gradient stop so the
179+
* hero's rounded corners blend seamlessly with the page instead of showing
180+
* lighter-grey corners. */
180181
@media (prefers-color-scheme: dark) {
181182
body.aicoc {
182-
background-color: #0e0e10;
183+
background-color: #0b0b0d;
183184
}
184185
}
185186

0 commit comments

Comments
 (0)