feat(ui): flat "quiet instrument" token v4 with a single raw-value SSOT

- 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.
This commit is contained in:
Yun Chan 2026-09-28 18:26:03 +09:00
parent c3367bc611
commit 2428ede03d
15 changed files with 969 additions and 1515 deletions

View file

@ -1,27 +1,25 @@
'use client'
// packages/ui/src/components/ds/DoubleBezelCard.tsx
// High-End Agency / Awwwards-Tier Double-Bezel (Doppelrand) Enclosure Component
// Outer Shell: Precision machined tray with outer radius & ambient hairline
// Inner Core: Floating glass plate with concentric inner radius, specular highlight & blur
// v4 "조용한 계기": 이중 베젤을 걷어낸 단일 카드. 이름과 props 는 호환을 위해 유지한다.
// bezelPadding 은 무시된다(바깥 틀이 없다). interactive 는 선·배경 변화만 — 떠오르지 않는다.
import React from 'react'
import { Box, type BoxProps } from '@mui/material'
import { d3roPalette, d3roShadow, d3roRadius } from '../../theme'
import { d3roPalette, d3roRadius, d3roTransition } from '../../theme'
export interface DoubleBezelCardProps extends Omit<BoxProps, 'component'> {
/** Outer padding between tray and core (default: 6px) */
/** @deprecated v4: 바깥 틀이 없어 쓰이지 않는다 */
bezelPadding?: number | string
/** Whether the card shows an interactive lift / glow on hover */
/** 누를 수 있는 카드 — hover 시 선과 배경만 바뀐다 */
interactive?: boolean
/** Inner core padding (default: 3 / 24px) */
/** 안쪽 여백 (기본 3 = 24px) */
innerPadding?: number | string
/** Content to render inside the inner core */
children?: React.ReactNode
}
export function DoubleBezelCard({
bezelPadding = '6px',
bezelPadding: _bezelPadding,
interactive = false,
innerPadding = 3,
children,
@ -33,69 +31,21 @@ export function DoubleBezelCard({
{...boxProps}
sx={{
position: 'relative',
borderRadius: d3roRadius.doubleBezelOuter,
p: bezelPadding,
bgcolor: d3roPalette.glass.raised,
border: `1px solid ${d3roPalette.glass.hairline}`,
boxShadow: interactive ? d3roShadow.card : 'none',
transition: 'transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease',
borderRadius: d3roRadius.card,
p: innerPadding,
bgcolor: d3roPalette.bg.card,
border: `1px solid ${d3roPalette.border.default}`,
transition: d3roTransition('border-color', 'background-color'),
...(interactive
? {
cursor: 'pointer',
'&:hover': {
borderColor: d3roPalette.glass.hairlineStrong,
boxShadow: d3roShadow.glowCardHover,
transform: 'translateY(-2px)',
'& .d3-inner-core': {
bgcolor: d3roPalette.bg.cardHover,
},
},
'&:active': {
transform: 'translateY(0px) scale(0.99)',
},
'&:hover': { borderColor: d3roPalette.border.strong, bgcolor: d3roPalette.bg.cardHover },
}
: {}),
...sx,
}}
>
{/* Inner Core Container */}
<Box
className="d3-inner-core"
sx={{
position: 'relative',
borderRadius: d3roRadius.doubleBezelInner,
bgcolor: d3roPalette.glass.surface,
backdropFilter: `blur(${d3roPalette.glass.blur})`,
boxShadow: `${d3roShadow.inset}, ${d3roShadow.glowCard}`,
p: innerPadding,
overflow: 'hidden',
transition: 'background-color 0.25s ease',
// Top Sheen + Specular highlight
'&::before': {
content: '""',
position: 'absolute',
inset: 0,
borderRadius: 'inherit',
background: d3roPalette.glass.sheen,
pointerEvents: 'none',
},
// 1px Gradient Hairline Rim
'&::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',
},
}}
>
<Box sx={{ position: 'relative', zIndex: 1 }}>{children}</Box>
</Box>
{children}
</Box>
)
}