Skip to content

Commit a3ee886

Browse files
style: refine blog search input and filter chips to match Vercel monochrome design system
1 parent 43a3744 commit a3ee886

1 file changed

Lines changed: 26 additions & 6 deletions

File tree

src/pages/blog/index.astro

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,19 @@ const categoriesList = ['All', 'Agentic AI & LLMs', 'Kubernetes', 'Observability
250250
gap: 0.75rem;
251251
padding: 0.75rem 1.25rem;
252252
border-radius: 12px;
253-
background: rgba(15, 23, 42, 0.6);
253+
background: var(--bg-card);
254+
border: 1px solid var(--border-glass);
255+
transition: border-color 0.2s ease, box-shadow 0.2s ease;
256+
}
257+
258+
.search-box:focus-within {
259+
border-color: var(--border-hover);
260+
box-shadow: 0 0 0 2px var(--glow-blue);
254261
}
255262

256263
.search-icon {
257264
font-size: 1.1rem;
258-
opacity: 0.7;
265+
opacity: 0.6;
259266
}
260267

261268
.search-box input {
@@ -270,7 +277,7 @@ const categoriesList = ['All', 'Agentic AI & LLMs', 'Kubernetes', 'Observability
270277

271278
.search-box input::placeholder {
272279
color: var(--text-muted);
273-
opacity: 0.7;
280+
opacity: 0.6;
274281
}
275282

276283
.clear-btn {
@@ -288,6 +295,10 @@ const categoriesList = ['All', 'Agentic AI & LLMs', 'Kubernetes', 'Observability
288295
transition: all 0.2s ease;
289296
}
290297

298+
[data-theme="light"] .clear-btn {
299+
background: rgba(0, 0, 0, 0.08);
300+
}
301+
291302
.clear-btn:hover {
292303
background: rgba(239, 68, 68, 0.2);
293304
color: #ef4444;
@@ -312,15 +323,24 @@ const categoriesList = ['All', 'Agentic AI & LLMs', 'Kubernetes', 'Observability
312323
transition: all 0.2s ease;
313324
}
314325

326+
[data-theme="light"] .filter-chip {
327+
background: rgba(0, 0, 0, 0.03);
328+
}
329+
315330
.filter-chip:hover {
316331
background: rgba(255, 255, 255, 0.08);
317332
color: var(--text-main);
333+
border-color: var(--border-hover);
334+
}
335+
336+
[data-theme="light"] .filter-chip:hover {
337+
background: rgba(0, 0, 0, 0.06);
318338
}
319339

320340
.filter-chip.active {
321-
background: rgba(56, 189, 248, 0.15);
322-
border-color: rgba(56, 189, 248, 0.4);
323-
color: var(--accent-blue);
341+
background: var(--text-main);
342+
border-color: var(--text-main);
343+
color: var(--bg-primary);
324344
font-weight: 600;
325345
}
326346

0 commit comments

Comments
 (0)