feat(ui): 카드 그라디언트 헤어라인 + 앰비언트 글로우 (레퍼런스 #5)

- glass.borderGradient: 좌상단 발광→우하단 소멸 1px 링 (mask exclude 기법 —
  반투명 글래스 표면에서도 정확)
- glow.card/cardHover: 블루 앰비언트 상단 글로우 + 깊이 그림자 결합
- sheen 재정의: 좌상단 라디얼 앰비언트 + 수직 시인 레이어
- 6개 테마 전부 액센트색 파생, MetalCard/InstrumentPanel/MuiCard 적용
This commit is contained in:
Yun Chan 2026-07-21 20:36:25 +09:00
parent 082ed2ef02
commit e0a1864e60
4 changed files with 102 additions and 23 deletions

View file

@ -30,20 +30,33 @@ export function InstrumentPanel({
bgcolor: d3roPalette.glass.surface,
backdropFilter: `blur(${d3roPalette.glass.blur})`,
borderRadius: d3roRadius.outer,
border: `1px solid ${d3roPalette.glass.hairline}`,
p: 3,
boxShadow: d3roShadow.card,
boxShadow: d3roShadow.glowCard,
overflow: 'hidden',
// 앰비언트 액센트 글로우 (좌상단 은은한 빛)
// 앰비언트 시인 (좌상단 라디얼 + 상단 광택 — theme sheen 토큰)
'&::before': {
content: '""',
position: 'absolute',
inset: 0,
borderRadius: 'inherit',
background: `radial-gradient(ellipse 60% 40% at 18% 0%, ${d3roPalette.accent.dim} 0%, transparent 60%)`,
background: d3roPalette.glass.sheen,
pointerEvents: 'none',
zIndex: 1,
},
// 그라디언트 헤어라인 링
'&::after': {
content: '""',
position: 'absolute',
inset: 0,
borderRadius: 'inherit',
padding: '1px',
background: d3roPalette.glass.borderGradient,
WebkitMask: 'linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)',
WebkitMaskComposite: 'xor',
maskComposite: 'exclude',
pointerEvents: 'none',
zIndex: 2,
},
}}
>
{/* 모서리 메타 라벨 */}