Initial Commit

This commit is contained in:
2026-09-16 17:22:14 +09:00
commit 858ee9e9da
335 changed files with 123898 additions and 0 deletions
+169
View File
@@ -0,0 +1,169 @@
@import "tailwindcss";
@import "tw-animate-css";
/* dark variant — `<html class="dark">` 또는 자식이 `.dark` 안에 있으면 활성 */
@custom-variant dark (&:is(.dark *));
/* 스크롤 기능은 그대로 두고 스크롤바만 안 보이게 (채팅 쓰레드 등) */
@utility scrollbar-hide {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* 구 Edge/IE */
&::-webkit-scrollbar {
display: none; /* Chrome/Safari */
}
}
/* shadcn/ui 토큰 → Tailwind 색상·반경 매핑 */
@theme inline {
--font-sans:
"Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
Arial, "Noto Sans KR", sans-serif;
--font-mono:
"Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
Arial, "Noto Sans KR", sans-serif;
--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-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--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-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
}
/* ────────────────────────────────────────────────────────────────────────────
팔레트 시스템 — palettes.ts 의 DEFAULT_THEME(=clean-blue) 폴백.
런타임 CSS는 main.tsx 가 ALL_THEMES_CSS 를 <style> 로 주입.
index.html 인라인 스크립트가 첫 페인트 전 [data-theme]/.dark 박음 → FOUC 없음.
의미색(destructive, chart-1..5)은 모든 팔레트 공통이므로 :root 에만 둠.
──────────────────────────────────────────────────────────────────────────── */
:root {
/* 클린 블루 기본 — derive.ts의 고정 토큰과 동일 */
--background: #ffffff;
--foreground: #242c39;
--card: #f7f9fc;
--card-foreground: #242c39;
--popover: #ffffff;
--popover-foreground: #242c39;
--primary: #034ea2;
--primary-foreground: #ffffff;
--secondary: #f0f3f8;
--secondary-foreground: #242c39;
--muted: #f7f9fc;
--muted-foreground: #606d7f;
--accent: #edf3fc;
--accent-foreground: #034ea2;
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(0.985 0 0);
--border: #e1e6ee;
--input: #bbc7d8;
--ring: #034ea2;
--radius: 0.625rem;
/* 사이드바 */
--sidebar: #f7f9fc;
--sidebar-foreground: #242c39;
--sidebar-primary: #034ea2;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #edf3fc;
--sidebar-accent-foreground: #034ea2;
--sidebar-border: #e1e6ee;
--sidebar-ring: #034ea2;
}
/*
* 다크모드 — themeStore (light/dark/system) 가 .dark 클래스 토글.
* 24 팔레트는 라이트 톤 기준이라 다크는 grayscale 베이스로 통일.
*/
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--primary: oklch(0.922 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.704 0.191 22.216);
--destructive-foreground: oklch(0.985 0 0);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
}
@layer base {
* {
@apply border-border;
}
html {
@apply font-sans antialiased;
}
body {
@apply bg-background text-foreground;
font-feature-settings:
"rlig" 1,
"calt" 1;
}
}
/* 시머 텍스트 — "생각하는 중…" 등 대기 문구에 밝은 띠가 좌→우로 쓸고 지나감.
base=muted-foreground, 지나가는 띠=foreground 라 라이트/다크 둘 다 자동으로 보임. */
@keyframes shimmer-sweep {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
@utility shimmer-text {
background: linear-gradient(
90deg,
var(--muted-foreground) 0%,
var(--muted-foreground) 40%,
var(--foreground) 50%,
var(--muted-foreground) 60%,
var(--muted-foreground) 100%
);
background-size: 200% 100%;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: shimmer-sweep 1.6s linear infinite;
}