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:
parent
c3367bc611
commit
2428ede03d
15 changed files with 969 additions and 1515 deletions
448
packages/ui/src/theme-raw.ts
Normal file
448
packages/ui/src/theme-raw.ts
Normal file
|
|
@ -0,0 +1,448 @@
|
|||
// packages/ui/src/theme-raw.ts
|
||||
// D3RO 디자인 토큰 원시값 SSOT — v4 "조용한 계기" (2026-09-28).
|
||||
// MUI·DOM 의존이 없다. 렌더러 theme.ts 와 팝업/main 의 theme-vars.ts 가 모두 여기서 값을 받는다.
|
||||
//
|
||||
// v4 원칙 (루트 design.md "2026-09-28 전면 개편"):
|
||||
// - 표면은 평평하다. 위계는 크기·명도·1px 선으로 만든다. 글래스·글로우·그라디언트는 쓰지 않는다.
|
||||
// - 테마마다 적는 것은 기본값(표면·텍스트 3단·경계·액센트)뿐이다. v2 의 glass/gradient/glow 키는
|
||||
// 하위 호환을 위해 남기되 deriveRaw() 가 평면 값으로 파생한다 — 컴포넌트 수백 곳을 고치지 않고 이펙트를 끈다.
|
||||
// - 텍스트 3단(primary/secondary/tertiary)은 모든 표면(app/card/elevated/sidebar)에서 4.5:1 이상.
|
||||
// v2 의 label/inactive/dimLabel/muted 는 tertiary 의 별칭이다. disabled 만 대비 예외.
|
||||
// - accent.solid 는 채운 버튼 배경, accent.ink 는 그 위 글자 — 두 값의 대비 4.5:1 이상.
|
||||
|
||||
export type ThemeKey = 'dark' | 'light' | 'nord' | 'solarized' | 'catppuccin' | 'dracula'
|
||||
|
||||
/** 테마가 직접 정하는 값. 이것만 테마별로 적는다. */
|
||||
interface ThemeBase {
|
||||
bg: { app: string; card: string; cardHover: string; elevated: string; input: string; sidebar: string; inset: string }
|
||||
text: { primary: string; secondary: string; tertiary: string; disabled: string; hover: string }
|
||||
border: { subtle: string; default: string; strong: string }
|
||||
accent: {
|
||||
main: string
|
||||
/** 어두운 표면 위 강조 글자 (라이트 테마에서는 더 진한 값) */
|
||||
light: string
|
||||
dark: string
|
||||
dim: string
|
||||
/** 채운 버튼 배경 — ink 와 4.5:1 이상 */
|
||||
solid: string
|
||||
solidHover: string
|
||||
ink: string
|
||||
}
|
||||
elevation: { overlay: string; tooltip: string }
|
||||
}
|
||||
|
||||
/** v2 호환 전체 구조 — CSS 변수 이름이 이 구조에서 나온다. */
|
||||
export interface RawTheme {
|
||||
bg: ThemeBase['bg'] & { chassis: string; crtBezel: string; crtGlass: string }
|
||||
text: {
|
||||
primary: string
|
||||
secondary: string
|
||||
tertiary: string
|
||||
label: string
|
||||
disabled: string
|
||||
engraving: string
|
||||
inactive: string
|
||||
dimLabel: string
|
||||
muted: string
|
||||
hover: string
|
||||
}
|
||||
border: ThemeBase['border']
|
||||
shadow: {
|
||||
card: string
|
||||
buttonBase: string
|
||||
chassis: string
|
||||
inset: string
|
||||
insetDeep: string
|
||||
buttonRaised: string
|
||||
buttonPressed: string
|
||||
screenGlow: string
|
||||
tooltip: string
|
||||
overlay: string
|
||||
}
|
||||
accent: ThemeBase['accent'] & { glow: string; crtPhosphor: string; crtPhosphorDim: string }
|
||||
glass: {
|
||||
surface: string
|
||||
raised: string
|
||||
hairline: string
|
||||
hairlineStrong: string
|
||||
sheen: string
|
||||
borderGradient: string
|
||||
blur: string
|
||||
specular: string
|
||||
}
|
||||
gradient: {
|
||||
accent: string
|
||||
logo: string
|
||||
bar: string
|
||||
barAlt: string
|
||||
wave1: string
|
||||
wave2: string
|
||||
wave3: string
|
||||
wave4: string
|
||||
}
|
||||
glow: { accent: string; soft: string; card: string; cardHover: string }
|
||||
}
|
||||
|
||||
const solidFill = (color: string): string => `linear-gradient(${color}, ${color})`
|
||||
|
||||
/** 기본값 → v2 호환 구조. 이펙트 키는 전부 평면 값으로 떨어진다. */
|
||||
function deriveRaw(b: ThemeBase): RawTheme {
|
||||
const none = 'none'
|
||||
return {
|
||||
bg: { ...b.bg, chassis: b.bg.card, crtBezel: b.bg.inset, crtGlass: b.bg.inset },
|
||||
text: {
|
||||
primary: b.text.primary,
|
||||
secondary: b.text.secondary,
|
||||
tertiary: b.text.tertiary,
|
||||
label: b.text.tertiary,
|
||||
inactive: b.text.tertiary,
|
||||
dimLabel: b.text.tertiary,
|
||||
muted: b.text.tertiary,
|
||||
disabled: b.text.disabled,
|
||||
engraving: b.bg.app,
|
||||
hover: b.text.hover,
|
||||
},
|
||||
border: b.border,
|
||||
shadow: {
|
||||
card: none,
|
||||
buttonBase: none,
|
||||
chassis: none,
|
||||
inset: none,
|
||||
insetDeep: none,
|
||||
buttonRaised: none,
|
||||
buttonPressed: none,
|
||||
screenGlow: none,
|
||||
tooltip: b.elevation.tooltip,
|
||||
overlay: b.elevation.overlay,
|
||||
},
|
||||
accent: { ...b.accent, glow: b.accent.dim, crtPhosphor: b.accent.light, crtPhosphorDim: b.accent.dark },
|
||||
glass: {
|
||||
surface: b.bg.card,
|
||||
raised: b.bg.elevated,
|
||||
hairline: b.border.default,
|
||||
hairlineStrong: b.border.strong,
|
||||
sheen: none,
|
||||
borderGradient: solidFill(b.border.default),
|
||||
blur: '0px',
|
||||
specular: 'transparent',
|
||||
},
|
||||
gradient: {
|
||||
accent: solidFill(b.accent.solid),
|
||||
logo: solidFill(b.text.primary),
|
||||
bar: solidFill(b.accent.main),
|
||||
barAlt: solidFill(b.accent.light),
|
||||
wave1: b.accent.light,
|
||||
wave2: b.accent.main,
|
||||
wave3: b.accent.main,
|
||||
wave4: b.accent.light,
|
||||
},
|
||||
glow: { accent: none, soft: none, card: none, cardHover: none },
|
||||
}
|
||||
}
|
||||
|
||||
const BASE: Record<ThemeKey, ThemeBase> = {
|
||||
dark: {
|
||||
bg: { app: '#0a0e1c', card: '#111a30', cardHover: '#152039', elevated: '#1a2540', input: '#0d1526', sidebar: '#080b17', inset: '#0a111f' },
|
||||
text: { primary: '#eef2fb', secondary: '#93a4c8', tertiary: '#7e8eb0', disabled: '#3c4763', hover: '#c9d5f2' },
|
||||
border: { subtle: 'rgba(148,180,255,0.07)', default: 'rgba(148,180,255,0.12)', strong: 'rgba(148,180,255,0.20)' },
|
||||
accent: { main: '#3b82f6', light: '#60a5fa', dark: '#2563eb', dim: 'rgba(59,130,246,0.14)', solid: '#2563eb', solidHover: '#1d4ed8', ink: '#ffffff' },
|
||||
elevation: { overlay: '0 12px 32px rgba(3,7,18,0.55)', tooltip: '0 8px 24px rgba(3,7,18,0.5)' },
|
||||
},
|
||||
light: {
|
||||
bg: { app: '#f2f5fb', card: '#ffffff', cardHover: '#f7f9fd', elevated: '#eef2f9', input: '#ffffff', sidebar: '#e9eef7', inset: '#e4e9f2' },
|
||||
text: { primary: '#111827', secondary: '#4b5a75', tertiary: '#56647c', disabled: '#b5bfd1', hover: '#2b3a55' },
|
||||
border: { subtle: 'rgba(30,58,138,0.07)', default: 'rgba(30,58,138,0.12)', strong: 'rgba(30,58,138,0.22)' },
|
||||
accent: { main: '#2563eb', light: '#1d4ed8', dark: '#1e40af', dim: 'rgba(37,99,235,0.10)', solid: '#2563eb', solidHover: '#1d4ed8', ink: '#ffffff' },
|
||||
elevation: { overlay: '0 12px 32px rgba(30,58,138,0.14)', tooltip: '0 8px 24px rgba(30,58,138,0.10)' },
|
||||
},
|
||||
// https://www.nordtheme.com/
|
||||
nord: {
|
||||
bg: { app: '#242933', card: '#2e3440', cardHover: '#343b49', elevated: '#3b4252', input: '#2a303c', sidebar: '#20242d', inset: '#232830' },
|
||||
text: { primary: '#eceff4', secondary: '#c2cad8', tertiary: '#a6b0c4', disabled: '#4c566a', hover: '#e5e9f0' },
|
||||
border: { subtle: 'rgba(216,222,233,0.06)', default: 'rgba(216,222,233,0.11)', strong: 'rgba(216,222,233,0.18)' },
|
||||
accent: { main: '#88c0d0', light: '#a3d0de', dark: '#6aacbe', dim: 'rgba(136,192,208,0.14)', solid: '#88c0d0', solidHover: '#9ccbd8', ink: '#2e3440' },
|
||||
elevation: { overlay: '0 12px 32px rgba(10,13,18,0.5)', tooltip: '0 8px 24px rgba(10,13,18,0.45)' },
|
||||
},
|
||||
// https://ethanschoonover.com/solarized/
|
||||
solarized: {
|
||||
bg: { app: '#00212b', card: '#073642', cardHover: '#0a3e4c', elevated: '#0d4250', input: '#03303c', sidebar: '#001c25', inset: '#001f28' },
|
||||
text: { primary: '#eee8d5', secondary: '#b7bdb6', tertiary: '#a1aca9', disabled: '#586e75', hover: '#d6d9cf' },
|
||||
border: { subtle: 'rgba(131,148,150,0.08)', default: 'rgba(131,148,150,0.14)', strong: 'rgba(131,148,150,0.22)' },
|
||||
accent: { main: '#b58900', light: '#d4a017', dark: '#8a6800', dim: 'rgba(181,137,0,0.14)', solid: '#8a6800', solidHover: '#7a5c00', ink: '#ffffff' },
|
||||
elevation: { overlay: '0 12px 32px rgba(0,10,13,0.55)', tooltip: '0 8px 24px rgba(0,10,13,0.5)' },
|
||||
},
|
||||
// https://catppuccin.com/ (Mocha)
|
||||
catppuccin: {
|
||||
bg: { app: '#181825', card: '#1e1e2e', cardHover: '#242438', elevated: '#313244', input: '#191926', sidebar: '#14141f', inset: '#11111b' },
|
||||
text: { primary: '#cdd6f4', secondary: '#a8b2d8', tertiary: '#939cbf', disabled: '#585b70', hover: '#e6e9f8' },
|
||||
border: { subtle: 'rgba(205,214,244,0.05)', default: 'rgba(205,214,244,0.10)', strong: 'rgba(205,214,244,0.17)' },
|
||||
accent: { main: '#cba6f7', light: '#dfc0ff', dark: '#a67fd4', dim: 'rgba(203,166,247,0.14)', solid: '#cba6f7', solidHover: '#d7b9fa', ink: '#11111b' },
|
||||
elevation: { overlay: '0 12px 32px rgba(5,5,12,0.55)', tooltip: '0 8px 24px rgba(5,5,12,0.5)' },
|
||||
},
|
||||
// https://draculatheme.com/
|
||||
dracula: {
|
||||
bg: { app: '#1e2029', card: '#282a36', cardHover: '#2e3040', elevated: '#383a4a', input: '#232530', sidebar: '#1a1c24', inset: '#1b1c25' },
|
||||
text: { primary: '#f8f8f2', secondary: '#b6bdd9', tertiary: '#a1a7c1', disabled: '#6272a4', hover: '#ffffff' },
|
||||
border: { subtle: 'rgba(248,248,242,0.05)', default: 'rgba(248,248,242,0.10)', strong: 'rgba(248,248,242,0.17)' },
|
||||
accent: { main: '#bd93f9', light: '#d4b8ff', dark: '#9a70e0', dim: 'rgba(189,147,249,0.14)', solid: '#bd93f9', solidHover: '#caa6fa', ink: '#1e2029' },
|
||||
elevation: { overlay: '0 12px 32px rgba(8,9,13,0.55)', tooltip: '0 8px 24px rgba(8,9,13,0.5)' },
|
||||
},
|
||||
}
|
||||
|
||||
export const RAW: Record<ThemeKey, RawTheme> = {
|
||||
dark: deriveRaw(BASE.dark),
|
||||
light: deriveRaw(BASE.light),
|
||||
nord: deriveRaw(BASE.nord),
|
||||
solarized: deriveRaw(BASE.solarized),
|
||||
catppuccin: deriveRaw(BASE.catppuccin),
|
||||
dracula: deriveRaw(BASE.dracula),
|
||||
}
|
||||
|
||||
export const THEME_KEYS = Object.keys(RAW) as ThemeKey[]
|
||||
|
||||
export function isThemeKey(value: string): value is ThemeKey {
|
||||
return (THEME_KEYS as string[]).includes(value)
|
||||
}
|
||||
|
||||
// ── 시맨틱 상태 역할 (액센트와 분리 — 기능 우선) ─────────────
|
||||
// 다크는 밝은 상태색, 라이트는 어두운 상태색. 텍스트로 쓸 수 있는 대비를 유지한다.
|
||||
export interface StatusRole {
|
||||
success: string
|
||||
successBg: string
|
||||
warning: string
|
||||
warningBg: string
|
||||
danger: string
|
||||
dangerBg: string
|
||||
info: string
|
||||
infoBg: string
|
||||
}
|
||||
|
||||
export const STATUS: Record<ThemeKey, StatusRole> = {
|
||||
dark: {
|
||||
success: '#34d399', successBg: 'rgba(52,211,153,0.12)',
|
||||
warning: '#fbbf24', warningBg: 'rgba(251,191,36,0.12)',
|
||||
danger: '#f87171', dangerBg: 'rgba(248,113,113,0.12)',
|
||||
info: '#60a5fa', infoBg: 'rgba(96,165,250,0.12)',
|
||||
},
|
||||
light: {
|
||||
success: '#047857', successBg: 'rgba(4,120,87,0.10)',
|
||||
warning: '#b45309', warningBg: 'rgba(180,83,9,0.10)',
|
||||
danger: '#b91c1c', dangerBg: 'rgba(185,28,28,0.10)',
|
||||
info: '#1d4ed8', infoBg: 'rgba(29,78,216,0.10)',
|
||||
},
|
||||
nord: {
|
||||
success: '#a3be8c', successBg: 'rgba(163,190,140,0.14)',
|
||||
warning: '#ebcb8b', warningBg: 'rgba(235,203,139,0.14)',
|
||||
danger: '#d08770', dangerBg: 'rgba(208,135,112,0.14)',
|
||||
info: '#88c0d0', infoBg: 'rgba(136,192,208,0.14)',
|
||||
},
|
||||
solarized: {
|
||||
success: '#a4b82a', successBg: 'rgba(133,153,0,0.16)',
|
||||
warning: '#d4a017', warningBg: 'rgba(181,137,0,0.16)',
|
||||
danger: '#ef6461', dangerBg: 'rgba(220,50,47,0.16)',
|
||||
info: '#4ea3de', infoBg: 'rgba(38,139,210,0.16)',
|
||||
},
|
||||
catppuccin: {
|
||||
success: '#a6e3a1', successBg: 'rgba(166,227,161,0.14)',
|
||||
warning: '#f9e2af', warningBg: 'rgba(249,226,175,0.14)',
|
||||
danger: '#f38ba8', dangerBg: 'rgba(243,139,168,0.14)',
|
||||
info: '#89b4fa', infoBg: 'rgba(137,180,250,0.14)',
|
||||
},
|
||||
dracula: {
|
||||
success: '#50fa7b', successBg: 'rgba(80,250,123,0.14)',
|
||||
warning: '#f1fa8c', warningBg: 'rgba(241,250,140,0.14)',
|
||||
danger: '#ff6e6e', dangerBg: 'rgba(255,85,85,0.14)',
|
||||
info: '#8be9fd', infoBg: 'rgba(139,233,253,0.14)',
|
||||
},
|
||||
}
|
||||
|
||||
// ── 테마 불변 태그색 (카테고리 구분용 — 텍스트 대비를 보장하지 않는다) ──
|
||||
// 상태를 말할 때는 STATUS 를 쓴다. tag 는 아이콘·점·범례처럼 글자가 아닌 곳에만.
|
||||
export const TAG = {
|
||||
purple: '#8b5cf6',
|
||||
purpleBg: 'rgba(139, 92, 246, 0.12)',
|
||||
orange: '#f59e0b',
|
||||
orangeBg: 'rgba(245, 158, 11, 0.12)',
|
||||
red: '#ef4444',
|
||||
redBg: 'rgba(239, 68, 68, 0.12)',
|
||||
green: '#10b981',
|
||||
greenBg: 'rgba(16, 185, 129, 0.12)',
|
||||
blue: '#3b82f6',
|
||||
blueBg: 'rgba(59, 130, 246, 0.12)',
|
||||
greenGlow: 'rgba(16, 185, 129, 0.35)',
|
||||
redGlow: 'rgba(239, 68, 68, 0.35)',
|
||||
orangeGlow: 'rgba(245, 158, 11, 0.35)',
|
||||
purpleGlow: 'rgba(139, 92, 246, 0.35)',
|
||||
blueGlow: 'rgba(59, 130, 246, 0.35)',
|
||||
cyan: '#06b6d4',
|
||||
cyanBg: 'rgba(6, 182, 212, 0.12)',
|
||||
cyanGlow: 'rgba(6, 182, 212, 0.35)',
|
||||
} as const
|
||||
|
||||
// ── 간격 리듬 (4px 그리드) ─────────────────────────────────
|
||||
export const SPACE = { s1: '4px', s2: '8px', s3: '12px', s4: '16px', s5: '24px', s6: '40px', s7: '64px', s8: '96px' } as const
|
||||
|
||||
// ── 컨트롤 치수 (버튼처럼 생긴 것은 전부 같은 치수) ──────────
|
||||
export const CONTROL = { h: '36px', hSm: '28px', padX: '14px', padXSm: '10px' } as const
|
||||
|
||||
// ── 웨이트는 세 개 ─────────────────────────────────────────
|
||||
export const WEIGHT = { body: 400, medium: 500, strong: 600 } as const
|
||||
|
||||
// ── 모션 문법 — 상태 변화 피드백만. 등장 연출은 쓰지 않는다 ──
|
||||
export const MOTION = {
|
||||
instant: '100ms',
|
||||
quick: '160ms',
|
||||
normal: '240ms',
|
||||
slow: '400ms',
|
||||
easeOut: 'cubic-bezier(0.22, 1, 0.36, 1)',
|
||||
easeIn: 'cubic-bezier(0.64, 0, 0.78, 0)',
|
||||
easeSoft: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
||||
} as const
|
||||
|
||||
// ── 반경 — 정밀 도구: 작고 일정하게 ──────────────────────────
|
||||
export const RADIUS = {
|
||||
doubleBezelOuter: '12px',
|
||||
doubleBezelInner: '10px',
|
||||
outer: '12px',
|
||||
card: '10px',
|
||||
inner: '8px',
|
||||
button: '8px',
|
||||
small: '6px',
|
||||
xs: '4px',
|
||||
badge: '999px',
|
||||
pill: '999px',
|
||||
} as const
|
||||
|
||||
// 한글 우선 폰트 스택 — Pretendard(한/영 조화) → 플랫폼 한글 시스템 폰트 폴백.
|
||||
export const FONT_SANS = [
|
||||
'"Pretendard Variable"', 'Pretendard', '-apple-system', 'BlinkMacSystemFont',
|
||||
'"Apple SD Gothic Neo"', '"Noto Sans KR"', '"Segoe UI"', 'Roboto',
|
||||
'"Helvetica Neue"', 'Arial', '"Malgun Gothic"', 'sans-serif',
|
||||
].join(',')
|
||||
|
||||
/** 숫자·코드·키 이름(라틴) 전용. 한글이 섞일 수 있는 문자열에는 쓰지 않는다 — 한글 글리프가 없어 자간이 벌어진다. */
|
||||
export const FONT_MONO = [
|
||||
'ui-monospace', 'SFMono-Regular', '"SF Mono"', 'Menlo', 'Consolas',
|
||||
'"Liberation Mono"', 'monospace',
|
||||
].join(',')
|
||||
|
||||
// ── CSS Custom Properties ────────────────────────────────────
|
||||
export function buildCssVars(key: ThemeKey): Record<string, string> {
|
||||
const r = RAW[key]
|
||||
const st = STATUS[key]
|
||||
return {
|
||||
'--d3-bg-app': r.bg.app,
|
||||
'--d3-bg-card': r.bg.card,
|
||||
'--d3-bg-cardHover': r.bg.cardHover,
|
||||
'--d3-bg-elevated': r.bg.elevated,
|
||||
'--d3-bg-input': r.bg.input,
|
||||
'--d3-bg-sidebar': r.bg.sidebar,
|
||||
'--d3-bg-inset': r.bg.inset,
|
||||
'--d3-bg-chassis': r.bg.chassis,
|
||||
'--d3-bg-crtBezel': r.bg.crtBezel,
|
||||
'--d3-bg-crtGlass': r.bg.crtGlass,
|
||||
'--d3-text-primary': r.text.primary,
|
||||
'--d3-text-secondary': r.text.secondary,
|
||||
'--d3-text-tertiary': r.text.tertiary,
|
||||
'--d3-text-label': r.text.label,
|
||||
'--d3-text-disabled': r.text.disabled,
|
||||
'--d3-text-engraving': r.text.engraving,
|
||||
'--d3-text-inactive': r.text.inactive,
|
||||
'--d3-text-dimLabel': r.text.dimLabel,
|
||||
'--d3-text-muted': r.text.muted,
|
||||
'--d3-text-hover': r.text.hover,
|
||||
'--d3-border-subtle': r.border.subtle,
|
||||
'--d3-border-default': r.border.default,
|
||||
'--d3-border-strong': r.border.strong,
|
||||
'--d3-shadow-card': r.shadow.card,
|
||||
'--d3-shadow-buttonBase': r.shadow.buttonBase,
|
||||
'--d3-shadow-chassis': r.shadow.chassis,
|
||||
'--d3-shadow-inset': r.shadow.inset,
|
||||
'--d3-shadow-insetDeep': r.shadow.insetDeep,
|
||||
'--d3-shadow-buttonRaised': r.shadow.buttonRaised,
|
||||
'--d3-shadow-buttonPressed': r.shadow.buttonPressed,
|
||||
'--d3-shadow-screenGlow': r.shadow.screenGlow,
|
||||
'--d3-shadow-tooltip': r.shadow.tooltip,
|
||||
'--d3-shadow-overlay': r.shadow.overlay,
|
||||
'--d3-accent-main': r.accent.main,
|
||||
'--d3-accent-dim': r.accent.dim,
|
||||
'--d3-accent-glow': r.accent.glow,
|
||||
'--d3-accent-light': r.accent.light,
|
||||
'--d3-accent-dark': r.accent.dark,
|
||||
'--d3-accent-solid': r.accent.solid,
|
||||
'--d3-accent-solidHover': r.accent.solidHover,
|
||||
'--d3-accent-crtPhosphor': r.accent.crtPhosphor,
|
||||
'--d3-accent-crtPhosphorDim': r.accent.crtPhosphorDim,
|
||||
'--d3-accent-ink': r.accent.ink,
|
||||
'--d3-glass-surface': r.glass.surface,
|
||||
'--d3-glass-raised': r.glass.raised,
|
||||
'--d3-glass-hairline': r.glass.hairline,
|
||||
'--d3-glass-hairlineStrong': r.glass.hairlineStrong,
|
||||
'--d3-glass-sheen': r.glass.sheen,
|
||||
'--d3-glass-borderGradient': r.glass.borderGradient,
|
||||
'--d3-glass-blur': r.glass.blur,
|
||||
'--d3-glass-specular': r.glass.specular,
|
||||
'--d3-gradient-accent': r.gradient.accent,
|
||||
'--d3-gradient-logo': r.gradient.logo,
|
||||
'--d3-gradient-bar': r.gradient.bar,
|
||||
'--d3-gradient-barAlt': r.gradient.barAlt,
|
||||
'--d3-gradient-wave1': r.gradient.wave1,
|
||||
'--d3-gradient-wave2': r.gradient.wave2,
|
||||
'--d3-gradient-wave3': r.gradient.wave3,
|
||||
'--d3-gradient-wave4': r.gradient.wave4,
|
||||
'--d3-glow-accent': r.glow.accent,
|
||||
'--d3-glow-soft': r.glow.soft,
|
||||
'--d3-glow-card': r.glow.card,
|
||||
'--d3-glow-cardHover': r.glow.cardHover,
|
||||
'--d3-status-success': st.success,
|
||||
'--d3-status-successBg': st.successBg,
|
||||
'--d3-status-warning': st.warning,
|
||||
'--d3-status-warningBg': st.warningBg,
|
||||
'--d3-status-danger': st.danger,
|
||||
'--d3-status-dangerBg': st.dangerBg,
|
||||
'--d3-status-info': st.info,
|
||||
'--d3-status-infoBg': st.infoBg,
|
||||
'--d3-space-1': SPACE.s1,
|
||||
'--d3-space-2': SPACE.s2,
|
||||
'--d3-space-3': SPACE.s3,
|
||||
'--d3-space-4': SPACE.s4,
|
||||
'--d3-space-5': SPACE.s5,
|
||||
'--d3-space-6': SPACE.s6,
|
||||
'--d3-space-7': SPACE.s7,
|
||||
'--d3-space-8': SPACE.s8,
|
||||
'--d3-control-h': CONTROL.h,
|
||||
'--d3-control-h-sm': CONTROL.hSm,
|
||||
'--d3-control-pad-x': CONTROL.padX,
|
||||
'--d3-control-pad-x-sm': CONTROL.padXSm,
|
||||
'--d3-weight-body': String(WEIGHT.body),
|
||||
'--d3-weight-medium': String(WEIGHT.medium),
|
||||
'--d3-weight-strong': String(WEIGHT.strong),
|
||||
'--d3-dur-instant': MOTION.instant,
|
||||
'--d3-dur-quick': MOTION.quick,
|
||||
'--d3-dur-normal': MOTION.normal,
|
||||
'--d3-dur-slow': MOTION.slow,
|
||||
'--d3-ease-out': MOTION.easeOut,
|
||||
'--d3-ease-in': MOTION.easeIn,
|
||||
'--d3-ease-soft': MOTION.easeSoft,
|
||||
'--d3-radius-card': RADIUS.card,
|
||||
'--d3-radius-inner': RADIUS.inner,
|
||||
'--d3-radius-button': RADIUS.button,
|
||||
'--d3-radius-small': RADIUS.small,
|
||||
'--d3-tag-purple': TAG.purple,
|
||||
'--d3-tag-orange': TAG.orange,
|
||||
'--d3-tag-red': TAG.red,
|
||||
'--d3-tag-green': TAG.green,
|
||||
'--d3-tag-blue': TAG.blue,
|
||||
'--d3-tag-cyan': TAG.cyan,
|
||||
'--d3-tag-cyanBg': TAG.cyanBg,
|
||||
'--d3-bg-inset-soft': 'color-mix(in srgb, var(--d3-bg-inset) 70%, transparent)',
|
||||
'--d3-bg-card-soft': 'color-mix(in srgb, var(--d3-bg-card) 70%, transparent)',
|
||||
'--d3-bg-raised-soft': 'color-mix(in srgb, var(--d3-bg-elevated) 80%, transparent)',
|
||||
'--d3-scrim': key === 'light' ? 'rgba(17,24,39,0.32)' : 'rgba(0,0,0,0.6)',
|
||||
// 표면 위 옅은 오버레이(hover·선택) — 텍스트 색에서 파생해 라이트 테마에서도 보인다
|
||||
'--d3-overlay-soft': 'color-mix(in srgb, var(--d3-text-primary) 6%, transparent)',
|
||||
'--d3-overlay-strong': 'color-mix(in srgb, var(--d3-text-primary) 12%, transparent)',
|
||||
'--d3-font-sans': FONT_SANS,
|
||||
'--d3-font-mono': FONT_MONO,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue