feat(phase-4): visual polish — font stack, shadow system, transitions, micro-interactions

Phase 4: Visual Polish

4.1 Font Stack Upgrade:
- Add --font-display token for headings
- Replace all hardcoded font-family: monospace with var(--font-mono)
- Replace hardcoded 'Segoe UI' stack with var(--font-body)

4.2 Shadow Elevation System:
- Add --shadow-2xl, --shadow-card/dropdown/modal/toast/header/dark-lg tokens
- Replace hardcoded shadows in header, menu, banner, shared, recipe-modal,
  progress-panel, import-modal, alphabet-bar with semantic tokens
- Add dark theme shadow overrides with increased opacity

4.3 Transitions & Micro-interactions:
- Replace transition: all with specified properties (performance)
- Use --transition-fast/base/slow tokens instead of hardcoded 0.2s/0.3s
- Add :active scale feedback to modal buttons
- Enhance card hover with box-shadow + border-color lift

4.4 Dark Theme Refinement:
- Elevated shadow opacity for dark theme visibility

4.5 Density:
- Standardize container padding with --space-2 token

21 files changed
This commit is contained in:
Will Miao
2026-06-09 14:07:36 +08:00
parent 826f06255a
commit 5797ce9408
21 changed files with 84 additions and 49 deletions

View File

@@ -582,7 +582,7 @@
}
.priority-tags-example code {
font-family: var(--code-font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
font-family: var(--font-mono);
background-color: rgba(var(--lora-accent-rgb, 79, 70, 229), 0.12);
padding: 2px 6px;
border-radius: var(--border-radius-xs);
@@ -932,7 +932,7 @@ input:checked + .toggle-slider:before {
border-radius: var(--border-radius-xs);
padding: var(--space-1);
margin-top: 8px;
font-family: monospace;
font-family: var(--font-mono);
font-size: 0.9em;
color: var(--lora-accent);
display: none;
@@ -1146,7 +1146,7 @@ input:checked + .toggle-slider:before {
color: white;
padding: 2px 6px;
border-radius: 3px;
font-family: monospace;
font-family: var(--font-mono);
font-size: 1em;
font-weight: 500;
}
@@ -1175,7 +1175,7 @@ input:checked + .toggle-slider:before {
background-color: var(--lora-surface);
color: var(--text-color);
font-size: 0.95em;
font-family: monospace;
font-family: var(--font-mono);
height: 24px;
transition: border-color 0.2s;
}
@@ -1277,7 +1277,7 @@ input:checked + .toggle-slider:before {
border-radius: 6px;
font-size: 14px;
font-weight: normal;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
font-family: var(--font-body);
white-space: normal;
max-width: 220px;
width: max-content;