- Add theme-raw.ts (no MUI/DOM deps) as the one source of theme values. Each theme declares only surfaces, 3-tier text, borders, accent and overlay shadow; legacy glass/gradient/glow/crt keys are derived as flat values so existing call sites lose effects without edits. - Tertiary text now clears 4.5:1 on every surface in all six themes (label/inactive/dimLabel/muted alias it). Filled buttons use accent.solid + accent.ink (5.17:1 on dark/light, was 3.68:1). - theme-vars.ts derives popup CSS from the same raw values instead of a hand copy, and defines the previously undefined --d3-overlay-strong and --d3-accent-glow-dim. - MUI: no ripple, global focus-visible ring and reduced-motion rule, flat Card, status colors per theme, shape radius 16 -> 6. - DS: flatten MetalCard/DoubleBezelCard/ScreenPanel/TiltCard, tone-based PhysicalButton (500 weight, no lift), TactileBadge with zero tracking and keyboard support, glow-free Led/StatRing, idle wave amplitude 0. - PhosphorText drops mono/uppercase variants: mono has no Hangul glyphs, which spaced out Korean labels. - design.md: record the 2026-09-28 redesign brief, audit, IA and tokens.
20 lines
825 B
TypeScript
20 lines
825 B
TypeScript
'use client'
|
|
|
|
// packages/ui/src/components/ds/TiltCard.tsx
|
|
// v4 "조용한 계기": 3D 틸트·커서 반사를 걷어냈다. 이름과 props 는 호환용 — 평평한 MetalCard 로 렌더한다.
|
|
// 근거: 하루 종일 켜 두는 도구에서 커서를 따라 기우는 카드는 정보가 아니라 소음이다(design.md 2026-09-28).
|
|
|
|
import { type BoxProps } from '@mui/material'
|
|
import { MetalCard } from './MetalCard'
|
|
|
|
interface TiltCardProps extends Omit<BoxProps, 'component'> {
|
|
/** @deprecated v4: 틸트 없음 */
|
|
maxTilt?: number
|
|
/** @deprecated v4: 반사 없음 */
|
|
spotlight?: boolean
|
|
children?: React.ReactNode
|
|
}
|
|
|
|
export function TiltCard({ maxTilt: _maxTilt, spotlight: _spotlight, children, ...rest }: TiltCardProps): React.ReactElement {
|
|
return <MetalCard {...rest}>{children}</MetalCard>
|
|
}
|