Skip to content

Commit 3871d63

Browse files
jmacotclaude
andcommitted
feat: apply neumorphic style to search input
Replace flat bordered search with neumorphic box-shadow design (elevated on rest, inset on focus) with dark mode support. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b2991b4 commit 3871d63

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

index.html

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,16 +251,18 @@
251251
font-family: 'DM Sans', sans-serif;
252252
font-size: 14px;
253253
color: var(--ink);
254-
background: var(--surface);
255-
border: 1.5px solid var(--border);
254+
background: var(--bg);
255+
border: none;
256256
border-radius: 999px;
257257
outline: none;
258-
box-shadow: var(--shadow-sm);
259-
transition: border-color 0.2s, box-shadow 0.2s;
258+
box-shadow: 5px 5px 12px #ccd1db,
259+
-5px -5px 12px #edf2f8;
260+
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
260261
}
261262
#buscar:focus {
262-
border-color: var(--ink-muted);
263-
box-shadow: 0 0 0 3px rgb(15 23 42 / 0.06);
263+
background: var(--bg);
264+
box-shadow: inset 4px 4px 10px #ccd1db,
265+
inset -4px -4px 10px #edf2f8;
264266
}
265267
#buscar::placeholder { color: var(--ink-muted); opacity: 0.6; }
266268

@@ -562,6 +564,14 @@
562564
border-color: rgba(245,158,11,0.3);
563565
color: #fbbf24;
564566
}
567+
[data-theme="dark"] #buscar {
568+
background: var(--surface);
569+
box-shadow: 5px 5px 12px rgba(0,0,0,0.35), -5px -5px 12px rgba(55,65,81,0.25);
570+
}
571+
[data-theme="dark"] #buscar:focus {
572+
background: var(--surface);
573+
box-shadow: inset 4px 4px 10px rgba(0,0,0,0.35), inset -4px -4px 10px rgba(55,65,81,0.25);
574+
}
565575

566576
@media (max-width: 600px) {
567577
header { padding: 56px 24px 36px; }

0 commit comments

Comments
 (0)