"매 한 코드베이스, 매 device-aware rendering". 2026 modern web 은 매 mobile/desktop 분리 코드 X — 매 container query + adaptive component + capability-based fork 로 매 한 React/Svelte/Solid app 이 매 모든 viewport, 매 input modality (touch/mouse/pen), 매 connection (5G/3G) 에 매 최적화. Responsive(rule-based) 에서 Adaptive(behavior-based) 로 진화.
.modal{block-size:100dvh;/* 매 dynamic viewport — keyboard 등장 시 reflow */padding-inline:clamp(16px,4vw,32px);padding-block:env(safe-area-inset-top)env(safe-area-inset-bottom);}
Input-aware interaction
functionTooltip({children,label}:Props){constcanHover=useMediaQuery('(hover: hover)');// 매 touch 에선 hover X — long-press 로 fallback
returncanHover?<HoverTooltiplabel={label}>{children}</HoverTooltip>:<LongPressTooltiplabel={label}>{children}</LongPressTooltip>;}
언제: design spec → component variant 자동 생성, breakpoint heuristic 추천, accessibility audit.
언제 X: 매 actual visual layout 결정 — designer 의 감각 + user testing 의 사용.
❌ 안티패턴
User-agent sniffing 만: 매 brittle, 매 future-proof X — Client Hints + capability query 의 사용.
Mobile-only / desktop-only fork 코드 2배: 매 maintenance 폭발 — adaptive component 우선.
Fixed vh: mobile address bar / keyboard 시 깨짐 — dvh/svh 의 사용.
Hover 전제 design: 매 touch user 에 매 hidden interaction.