169 lines
6.2 KiB
CSS
169 lines
6.2 KiB
CSS
/*
|
|
* Design Tokens (Tailwind v4)
|
|
* negodata 디자인 시스템의 단일 소스. 색상 · 폰트 · radius.
|
|
* 디자인 방향: "인디고 콘솔"(Linear 문법) — 조용한 무채 크롬 + 인디고(#5E6AD2) 액센트 한 곳.
|
|
*
|
|
* 다른 Tailwind v4 프로젝트에서 재사용하려면:
|
|
* 1) 이 파일을 복사하고
|
|
* 2) 엔트리 CSS에서 `@import "tailwindcss";` 다음에 `@import "./tokens.css";`
|
|
*
|
|
* 주의: --font-sans 는 'Pretendard Variable'(self-host)를 참조한다.
|
|
* 폰트를 함께 쓰려면 public/fonts/PretendardVariable.woff2 와 아래 @font-face도 옮길 것.
|
|
* 폰트 없으면 자동으로 'Geist Variable' → system-ui 로 폴백된다.
|
|
*/
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme {
|
|
--color-background: var(--background);
|
|
--color-background-rgb: var(--background-rgb);
|
|
--color-foreground: var(--foreground);
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-border: var(--border);
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--color-success: var(--success);
|
|
--color-warning: var(--warning);
|
|
--color-info: var(--info);
|
|
--color-ring: var(--ring);
|
|
|
|
--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
|
|
/* 모노 폰트엔 한글 글리프가 없다 — Pretendard 를 넣어야 한글이 OS 기본(Windows 굴림)으로 떨어지지 않는다 */
|
|
--font-mono: "JetBrains Mono", Consolas, "Segoe UI Mono", ui-monospace, SFMono-Regular, "Menlo", "Pretendard Variable", monospace;
|
|
}
|
|
|
|
:root {
|
|
/* 뉴트럴은 인디고로 아주 살짝 기운 회색 계열. 캔버스는 거의 백색, 층은 헤어라인 보더로 만든다 */
|
|
--background: #fcfcfd;
|
|
--background-rgb: 252, 252, 253;
|
|
--foreground: #202433;
|
|
--card: #ffffff;
|
|
--card-foreground: #202433;
|
|
--border: #e9e9ef;
|
|
--muted: #f1f1f5;
|
|
--muted-foreground: #6c7086;
|
|
--primary: #5e6ad2; /* 브랜드 인디고(Linear 계열). 흰 글자 대비 4.7:1 (AA) */
|
|
--primary-foreground: #ffffff;
|
|
--secondary: #f1f1f5;
|
|
--secondary-foreground: #33384d;
|
|
--accent: #ececf4; /* 메뉴 hover·선택 표면 */
|
|
--destructive: #d92d20;
|
|
--destructive-foreground: #fafafa;
|
|
--success: #17b26a;
|
|
--warning: #f79009;
|
|
--info: #6172f3;
|
|
--ring: #5e6ad2;
|
|
--popover: #ffffff;
|
|
--popover-foreground: #202433;
|
|
--accent-foreground: #33384d;
|
|
--input: #e4e4ec;
|
|
/* 차트 카테고리 팔레트 — 고정 순서(식별용), CVD·대비 검증 통과. features/statistics/palette.ts 와 같은 계열 */
|
|
--chart-1: #3b82f6;
|
|
--chart-2: #10b981;
|
|
--chart-3: #f59e0b;
|
|
--chart-4: #a855f7;
|
|
--chart-5: #f43f5e;
|
|
--radius: 0.5rem;
|
|
/* 사이드바 = 캔버스보다 반 단계 어두운 조용한 회색 면. 액센트는 활성 아이콘에만 */
|
|
--sidebar: #f7f7f9;
|
|
--sidebar-foreground: #5f6377;
|
|
--sidebar-primary: #5e6ad2;
|
|
--sidebar-primary-foreground: #ffffff;
|
|
--sidebar-accent: #ececf4;
|
|
--sidebar-accent-foreground: #33384d;
|
|
--sidebar-border: #e9e9ef;
|
|
--sidebar-ring: #5e6ad2;
|
|
}
|
|
|
|
.dark {
|
|
--background: #141419;
|
|
--background-rgb: 20, 20, 25;
|
|
--foreground: #e6e6ee;
|
|
--card: #1b1b22;
|
|
--card-foreground: #e6e6ee;
|
|
--border: #ffffff14;
|
|
--muted: #24242d;
|
|
--muted-foreground: #9a9dae;
|
|
--primary: #8b93e8; /* 다크는 두 단계 밝은 인디고. 진한 텍스트 대비 AA 이상 */
|
|
--primary-foreground: #16161d;
|
|
--secondary: #24242d;
|
|
--secondary-foreground: #e6e6ee;
|
|
--accent: #26262f;
|
|
--destructive: #f97066;
|
|
--destructive-foreground: #fafafa;
|
|
--success: #17b26a;
|
|
--warning: #f79009;
|
|
--info: #8b93e8;
|
|
--ring: #8b93e8;
|
|
--popover: #1b1b22;
|
|
--popover-foreground: #e6e6ee;
|
|
--accent-foreground: #ffffff;
|
|
--input: #ffffff26;
|
|
/* 라이트와 같은 순서, 다크 표면 밝기 밴드에 맞춰 emerald·amber 만 한 단계 진하게 */
|
|
--chart-1: #3b82f6;
|
|
--chart-2: #059669;
|
|
--chart-3: #d97706;
|
|
--chart-4: #a855f7;
|
|
--chart-5: #f43f5e;
|
|
--sidebar: #18181f;
|
|
--sidebar-foreground: #9a9dae;
|
|
--sidebar-primary: #8b93e8;
|
|
--sidebar-primary-foreground: #16161d;
|
|
--sidebar-accent: #26262f;
|
|
--sidebar-accent-foreground: #ffffff;
|
|
--sidebar-border: #ffffff12;
|
|
--sidebar-ring: #8b93e8;
|
|
}
|
|
|
|
@theme inline {
|
|
--font-heading: var(--font-sans);
|
|
--font-sans: 'Pretendard Variable', 'Geist Variable', system-ui, sans-serif;
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-ring: var(--ring);
|
|
--color-input: var(--input);
|
|
--color-border: var(--border);
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-card: var(--card);
|
|
--color-foreground: var(--foreground);
|
|
--color-background: var(--background);
|
|
--radius-sm: calc(var(--radius) * 0.6);
|
|
--radius-md: calc(var(--radius) * 0.8);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) * 1.4);
|
|
--radius-2xl: calc(var(--radius) * 1.8);
|
|
--radius-3xl: calc(var(--radius) * 2.2);
|
|
--radius-4xl: calc(var(--radius) * 2.6);
|
|
}
|