- 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.
51 lines
1.6 KiB
TypeScript
51 lines
1.6 KiB
TypeScript
'use client'
|
|
|
|
// packages/ui/src/components/ds/DoubleBezelCard.tsx
|
|
// v4 "조용한 계기": 이중 베젤을 걷어낸 단일 카드. 이름과 props 는 호환을 위해 유지한다.
|
|
// bezelPadding 은 무시된다(바깥 틀이 없다). interactive 는 선·배경 변화만 — 떠오르지 않는다.
|
|
|
|
import React from 'react'
|
|
import { Box, type BoxProps } from '@mui/material'
|
|
import { d3roPalette, d3roRadius, d3roTransition } from '../../theme'
|
|
|
|
export interface DoubleBezelCardProps extends Omit<BoxProps, 'component'> {
|
|
/** @deprecated v4: 바깥 틀이 없어 쓰이지 않는다 */
|
|
bezelPadding?: number | string
|
|
/** 누를 수 있는 카드 — hover 시 선과 배경만 바뀐다 */
|
|
interactive?: boolean
|
|
/** 안쪽 여백 (기본 3 = 24px) */
|
|
innerPadding?: number | string
|
|
children?: React.ReactNode
|
|
}
|
|
|
|
export function DoubleBezelCard({
|
|
bezelPadding: _bezelPadding,
|
|
interactive = false,
|
|
innerPadding = 3,
|
|
children,
|
|
sx,
|
|
...boxProps
|
|
}: DoubleBezelCardProps): React.ReactElement {
|
|
return (
|
|
<Box
|
|
{...boxProps}
|
|
sx={{
|
|
position: 'relative',
|
|
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.border.strong, bgcolor: d3roPalette.bg.cardHover },
|
|
}
|
|
: {}),
|
|
...sx,
|
|
}}
|
|
>
|
|
{children}
|
|
</Box>
|
|
)
|
|
}
|