@import "tailwindcss"; /* ── Theme (custom colors, fonts, animations) ── */ @theme { --color-primary-400: #60a5fa; --color-primary-500: #3b82f6; --color-primary-600: #2563eb; --color-primary-700: #1d4ed8; --color-slate-850: #1e293b; --color-slate-900: #0f172a; --color-slate-950: #0a0e1a; /* Tailwind 3 values for the default colors we use, so the UI looks the same as before the v4 upgrade */ --color-slate-100: #f1f5f9; --color-slate-200: #e2e8f0; --color-slate-300: #cbd5e1; --color-slate-400: #94a3b8; --color-slate-500: #64748b; --color-slate-600: #475569; --color-slate-700: #334155; --color-slate-800: #1e293b; --color-red-400: #f87171; --color-red-500: #ef4444; --color-red-600: #dc2626; --color-red-700: #b91c1c; --color-yellow-400: #facc15; --color-yellow-500: #eab308; --color-emerald-400: #34d399; --color-emerald-500: #10b981; --color-emerald-600: #059669; --color-green-500: #22c55e; /* Semantic tokens map UI roles to the current dark palette. Future themes can change these mappings without editing components. */ --color-surface: var(--color-slate-950); --color-surface-raised: var(--color-slate-800); --color-surface-card: var(--color-slate-900); --color-surface-hover: var(--color-slate-700); --color-border: var(--color-slate-700); --color-border-subtle: var(--color-slate-800); --color-border-muted: var(--color-slate-500); --color-text: var(--color-slate-100); --color-text-label: var(--color-slate-300); --color-text-secondary: var(--color-slate-400); --color-text-muted: var(--color-slate-500); --color-grid: var(--color-slate-850); --color-scrollbar: var(--color-slate-700); --color-scrollbar-hover: var(--color-slate-600); --font-sans: "Segoe UI", system-ui, sans-serif; --font-mono: "JetBrains Mono", monospace; --animate-fade-in: fadeIn 0.3s ease; --animate-slide-up: slideUp 0.35s ease; --animate-spin: spin 0.6s linear infinite; @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } @keyframes spin { to { transform: rotate(360deg); } } } /* ── Custom base ──────────────────────────── */ @layer base { * { box-sizing: border-box; } body { @apply bg-surface text-text min-h-screen antialiased; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif; } input, textarea, select { @apply bg-surface-raised border border-border text-text rounded-lg; } input::placeholder, textarea::placeholder { @apply text-text-muted; } input:focus, textarea:focus, select:focus { @apply outline-hidden border-primary-500 ring-1 ring-primary-500; } /* Hide Edge's built-in password reveal button; PasswordInput has its own show/hide toggle */ input::-ms-reveal { display: none; } /* Tailwind 4 no longer gives buttons a pointer cursor; keep the v3 behavior */ button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; } html { color-scheme: dark; } html[data-theme="light"] { color-scheme: light; } } /* ── Scrollbar ─────────────────────────────── */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { @apply bg-transparent; } ::-webkit-scrollbar-thumb { @apply bg-scrollbar rounded-full; } ::-webkit-scrollbar-thumb:hover { @apply bg-scrollbar-hover; } /* ── Light Theme ───────────────────────── */ [data-theme="light"] { color-scheme: light; --color-surface: #f8fafc; --color-surface-raised: #f1f5f9; --color-surface-card: #ffffff; --color-surface-hover: #e2e8f0; --color-border: #cbd5e1; --color-border-subtle: #e2e8f0; --color-border-muted: #94a3b8; --color-text: #0f172a; --color-text-label: #334155; --color-text-secondary: #475569; --color-text-muted: #64748b; --color-grid: #e2e8f0; --color-scrollbar: #cbd5e1; --color-scrollbar-hover: #94a3b8; }