253 lines
9.1 KiB
CSS
253 lines
9.1 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "./custom.css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
/* ─── Self-hosted Pretendard Variable ─────────────────── */
|
|
@font-face {
|
|
font-family: 'Pretendard Variable';
|
|
font-weight: 45 920;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
src: url('/fonts/PretendardVariable.woff2') format('woff2-variations');
|
|
}
|
|
|
|
:root {
|
|
/* ─── Brand palette (raw) ─────────────────────────────── */
|
|
/* Primary purple family */
|
|
--brand-purple: #4F1DA1;
|
|
--brand-purple-deep: #021341;
|
|
--brand-purple-vivid: #6C5CE7;
|
|
--brand-purple-muted: #4A3A7C;
|
|
--brand-purple-soft: #9B8AD4;
|
|
--brand-purple-faint: #3A3F7C;
|
|
|
|
/* Surface tints */
|
|
--brand-tint-purple: #F3F0FF;
|
|
--brand-tint-lavender: #D5CDF5;
|
|
--brand-tint-violet: #EFF0FF;
|
|
--brand-tint-orchid: #C084CF;
|
|
|
|
/* Navy text */
|
|
--brand-navy: #0A1128;
|
|
--brand-navy-soft: #1A2B5E;
|
|
--brand-navy-faint: #F4F6FB;
|
|
|
|
/* Rose / warm accent */
|
|
--brand-rose: #7C3A4B;
|
|
--brand-rose-mid: #D4889A;
|
|
--brand-rose-soft: #F5D5DC;
|
|
--brand-rose-bg: #FFF0F0;
|
|
|
|
/* Earth / cream */
|
|
--brand-earth: #7C5C3A;
|
|
--brand-earth-soft: #F5E0C5;
|
|
--brand-earth-mid: #D4A872;
|
|
--brand-earth-bg: #FFF6ED;
|
|
|
|
/* Periwinkle (info) */
|
|
--brand-periwinkle: #7A84D4;
|
|
--brand-periwinkle-border: #C5CBF5;
|
|
|
|
/* Gradient anchors */
|
|
--brand-grad-peach: #FFF3EB;
|
|
--brand-grad-violet: #E4CFFF;
|
|
--brand-grad-sky: #F5F9FF;
|
|
|
|
/* ─── Status semantic (pastel — derived from brand) ──── */
|
|
/* Critical / Negative — warm rose */
|
|
--status-critical-bg: var(--brand-rose-bg);
|
|
--status-critical-text: var(--brand-rose);
|
|
--status-critical-border: var(--brand-rose-soft);
|
|
--status-critical-dot: var(--brand-rose-mid);
|
|
|
|
/* Warning / Pending — warm sand */
|
|
--status-warning-bg: var(--brand-earth-bg);
|
|
--status-warning-text: var(--brand-earth);
|
|
--status-warning-border: var(--brand-earth-soft);
|
|
--status-warning-dot: var(--brand-earth-mid);
|
|
|
|
/* Good / Positive — soft lavender */
|
|
--status-good-bg: var(--brand-tint-purple);
|
|
--status-good-text: var(--brand-purple-muted);
|
|
--status-good-border: var(--brand-tint-lavender);
|
|
--status-good-dot: var(--brand-purple-soft);
|
|
|
|
/* Excellent / Info — cool periwinkle */
|
|
--status-info-bg: var(--brand-tint-violet);
|
|
--status-info-text: var(--brand-purple-faint);
|
|
--status-info-border: var(--brand-periwinkle-border);
|
|
--status-info-dot: var(--brand-periwinkle);
|
|
|
|
/* ─── shadcn semantic tokens (mapped to brand) ────────── */
|
|
--background: #ffffff;
|
|
--foreground: var(--brand-navy);
|
|
--card: #ffffff;
|
|
--card-foreground: var(--brand-navy);
|
|
--popover: #ffffff;
|
|
--popover-foreground: var(--brand-navy);
|
|
--primary: var(--brand-purple);
|
|
--primary-foreground: #ffffff;
|
|
--secondary: var(--brand-tint-purple);
|
|
--secondary-foreground: var(--brand-purple);
|
|
--muted: var(--brand-tint-purple);
|
|
--muted-foreground: var(--brand-purple-muted);
|
|
--accent: var(--brand-purple-vivid);
|
|
--accent-foreground: #ffffff;
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--destructive-foreground: #ffffff;
|
|
--border: oklch(0.922 0 0);
|
|
--input: oklch(0.922 0 0);
|
|
--ring: var(--brand-purple);
|
|
--radius: 0.625rem;
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.145 0 0);
|
|
--foreground: oklch(0.985 0 0);
|
|
--card: oklch(0.145 0 0);
|
|
--card-foreground: oklch(0.985 0 0);
|
|
--popover: oklch(0.145 0 0);
|
|
--popover-foreground: oklch(0.985 0 0);
|
|
--primary: oklch(0.985 0 0);
|
|
--primary-foreground: oklch(0.205 0 0);
|
|
--secondary: oklch(0.269 0 0);
|
|
--secondary-foreground: oklch(0.985 0 0);
|
|
--muted: oklch(0.269 0 0);
|
|
--muted-foreground: oklch(0.708 0 0);
|
|
--accent: oklch(0.269 0 0);
|
|
--accent-foreground: oklch(0.985 0 0);
|
|
--destructive: oklch(0.396 0.141 25.723);
|
|
--destructive-foreground: oklch(0.985 0 0);
|
|
--border: oklch(0.269 0 0);
|
|
--input: oklch(0.269 0 0);
|
|
--ring: oklch(0.439 0 0);
|
|
}
|
|
|
|
@theme inline {
|
|
/* ─── Typography ──────────────────────────────────────── */
|
|
/* fallback chain: self-host Pretendard → CDN Pretendard → Inter → 한글 시스템 폰트 → sans-serif */
|
|
--font-sans: "Pretendard Variable", "Pretendard", "Inter", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", ui-sans-serif, system-ui, sans-serif;
|
|
--font-serif: "Playfair Display", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
|
|
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
|
|
/* shadcn semantic → Tailwind utilities */
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--color-border: var(--border);
|
|
--color-input: var(--input);
|
|
--color-ring: var(--ring);
|
|
|
|
/* Brand named tokens → Tailwind utilities */
|
|
--color-brand-purple: var(--brand-purple);
|
|
--color-brand-purple-deep: var(--brand-purple-deep);
|
|
--color-brand-purple-vivid: var(--brand-purple-vivid);
|
|
--color-brand-purple-muted: var(--brand-purple-muted);
|
|
--color-brand-purple-soft: var(--brand-purple-soft);
|
|
--color-brand-purple-faint: var(--brand-purple-faint);
|
|
|
|
--color-brand-tint-purple: var(--brand-tint-purple);
|
|
--color-brand-tint-lavender: var(--brand-tint-lavender);
|
|
--color-brand-tint-violet: var(--brand-tint-violet);
|
|
--color-brand-tint-orchid: var(--brand-tint-orchid);
|
|
|
|
--color-brand-navy: var(--brand-navy);
|
|
--color-brand-navy-soft: var(--brand-navy-soft);
|
|
--color-brand-navy-faint: var(--brand-navy-faint);
|
|
|
|
--color-brand-rose: var(--brand-rose);
|
|
--color-brand-rose-mid: var(--brand-rose-mid);
|
|
--color-brand-rose-soft: var(--brand-rose-soft);
|
|
--color-brand-rose-bg: var(--brand-rose-bg);
|
|
|
|
--color-brand-earth: var(--brand-earth);
|
|
--color-brand-earth-soft: var(--brand-earth-soft);
|
|
--color-brand-earth-mid: var(--brand-earth-mid);
|
|
--color-brand-earth-bg: var(--brand-earth-bg);
|
|
|
|
--color-brand-periwinkle: var(--brand-periwinkle);
|
|
--color-brand-periwinkle-border: var(--brand-periwinkle-border);
|
|
|
|
--color-brand-grad-peach: var(--brand-grad-peach);
|
|
--color-brand-grad-violet: var(--brand-grad-violet);
|
|
--color-brand-grad-sky: var(--brand-grad-sky);
|
|
|
|
/* Status semantic */
|
|
--color-status-critical-bg: var(--status-critical-bg);
|
|
--color-status-critical-text: var(--status-critical-text);
|
|
--color-status-critical-border: var(--status-critical-border);
|
|
--color-status-critical-dot: var(--status-critical-dot);
|
|
|
|
--color-status-warning-bg: var(--status-warning-bg);
|
|
--color-status-warning-text: var(--status-warning-text);
|
|
--color-status-warning-border: var(--status-warning-border);
|
|
--color-status-warning-dot: var(--status-warning-dot);
|
|
|
|
--color-status-good-bg: var(--status-good-bg);
|
|
--color-status-good-text: var(--status-good-text);
|
|
--color-status-good-border: var(--status-good-border);
|
|
--color-status-good-dot: var(--status-good-dot);
|
|
|
|
--color-status-info-bg: var(--status-info-bg);
|
|
--color-status-info-text: var(--status-info-text);
|
|
--color-status-info-border: var(--status-info-border);
|
|
--color-status-info-dot: var(--status-info-dot);
|
|
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
|
|
/* Animations */
|
|
--animate-blob: blob 7s infinite;
|
|
|
|
/* Demo 호환 alias — 기존 데모 코드의 bg-primary-900 등이 그대로 동작 */
|
|
--color-primary-900: var(--brand-navy);
|
|
--color-primary-800: var(--brand-navy-soft);
|
|
--color-primary-50: var(--brand-navy-faint);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border;
|
|
}
|
|
/* fixed Navbar(h-20 = 5rem) 만큼 앵커 스크롤 오프셋. #section 으로 이동해도 네비에 가려지지 않음 */
|
|
html {
|
|
scroll-padding-top: 5rem;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground font-sans antialiased;
|
|
}
|
|
/* 모든 헤딩 기본 serif + 브랜드 네이비 */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
@apply font-serif text-primary-900;
|
|
}
|
|
/* dark/white 컨테이너 안 헤딩은 흰색 상속 */
|
|
.text-white h1, .text-white h2, .text-white h3,
|
|
.text-white h4, .text-white h5, .text-white h6 {
|
|
@apply text-white;
|
|
}
|
|
/* Tailwind v4 의 preflight 가 button 의 기본 cursor 를 제거하므로,
|
|
활성화된 클릭 가능 요소(button, role="button", a) 는 명시적으로 pointer 부여 */
|
|
button:not(:disabled),
|
|
[role='button']:not([aria-disabled='true']),
|
|
a[href] {
|
|
cursor: pointer;
|
|
}
|
|
}
|