365 lines
13 KiB
CSS
365 lines
13 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "shadcn/tailwind.css";
|
|
@import "@fontsource-variable/geist";
|
|
@import "./css/channel/animations.css";
|
|
|
|
@source inline("../src/**/*.{ts,tsx,js,jsx,html,svg}");
|
|
|
|
@plugin "@tailwindcss/typography";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--font-heading: var(--font-sans);
|
|
--font-sans: 'Geist Variable', 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-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);
|
|
}
|
|
|
|
:root {
|
|
--background: oklch(1 0 0);
|
|
--foreground: oklch(0.145 0 0);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.145 0 0);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.145 0 0);
|
|
--primary: oklch(0.205 0 0);
|
|
--primary-foreground: oklch(0.985 0 0);
|
|
--secondary: oklch(0.97 0 0);
|
|
--secondary-foreground: oklch(0.205 0 0);
|
|
--muted: oklch(0.97 0 0);
|
|
--muted-foreground: oklch(0.556 0 0);
|
|
--accent: oklch(0.97 0 0);
|
|
--accent-foreground: oklch(0.205 0 0);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--border: oklch(0.922 0 0);
|
|
--input: oklch(0.922 0 0);
|
|
--ring: oklch(0.708 0 0);
|
|
--chart-1: oklch(0.87 0 0);
|
|
--chart-2: oklch(0.556 0 0);
|
|
--chart-3: oklch(0.439 0 0);
|
|
--chart-4: oklch(0.371 0 0);
|
|
--chart-5: oklch(0.269 0 0);
|
|
--radius: 0.625rem;
|
|
--sidebar: oklch(0.985 0 0);
|
|
--sidebar-foreground: oklch(0.145 0 0);
|
|
--sidebar-primary: oklch(0.205 0 0);
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.97 0 0);
|
|
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
--sidebar-border: oklch(0.922 0 0);
|
|
--sidebar-ring: oklch(0.708 0 0);
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.145 0 0);
|
|
--foreground: oklch(0.985 0 0);
|
|
--card: oklch(0.205 0 0);
|
|
--card-foreground: oklch(0.985 0 0);
|
|
--popover: oklch(0.205 0 0);
|
|
--popover-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);
|
|
--border: oklch(1 0 0 / 10%);
|
|
--input: oklch(1 0 0 / 15%);
|
|
--ring: oklch(0.556 0 0);
|
|
--chart-1: oklch(0.87 0 0);
|
|
--chart-2: oklch(0.556 0 0);
|
|
--chart-3: oklch(0.439 0 0);
|
|
--chart-4: oklch(0.371 0 0);
|
|
--chart-5: oklch(0.269 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);
|
|
}
|
|
|
|
/* ─────────────────────────────────────────────
|
|
Phase 1: Unified Semantic Tokens
|
|
Maps Discord/GitHub/Slack/GitLab semantics
|
|
to OKLCH — auto light/dark via .dark class
|
|
───────────────────────────────────────────── */
|
|
:root {
|
|
/* Surfaces (layer hierarchy, 3 layers only) */
|
|
--surface-rail: oklch(0.98 0 0);
|
|
--surface-sidebar: oklch(0.97 0 0);
|
|
--surface-ground: oklch(1 0 0);
|
|
--surface-elevated: oklch(1 0 0);
|
|
--surface-overlay: oklch(1 0 0 / 90%);
|
|
|
|
/* Borders */
|
|
--border-subtle: oklch(0.90 0 0 / 40%);
|
|
--border-default: oklch(0.88 0 0);
|
|
--border-strong: oklch(0.80 0 0);
|
|
|
|
/* Text */
|
|
--text-primary: oklch(0.13 0 0);
|
|
--text-secondary: oklch(0.40 0 0);
|
|
--text-muted: oklch(0.55 0 0);
|
|
--text-inverse: oklch(0.985 0 0);
|
|
--text-tertiary: oklch(0.70 0 0);
|
|
|
|
/* Brand accent — Discord blurple as reference */
|
|
--accent: oklch(0.25 0 0);
|
|
--accent-hover: oklch(0.15 0 0);
|
|
--accent-fg: oklch(0.985 0 0);
|
|
--accent-muted: oklch(0.25 0 0 / 15%);
|
|
--accent-bg: oklch(0.25 0 0 / 8%);
|
|
--accent-rgb: 88, 101, 242;
|
|
|
|
/* Status */
|
|
--status-online: oklch(0.55 0 0);
|
|
--status-idle: oklch(0.60 0 0);
|
|
--status-dnd: oklch(0.50 0 0);
|
|
--status-offline: oklch(0.60 0 0);
|
|
|
|
/* Semantic */
|
|
--success: oklch(0.50 0 0);
|
|
--success-alpha10: oklch(0.50 0 0 / 10%);
|
|
--warning: oklch(0.60 0 0);
|
|
--warning-alpha10: oklch(0.60 0 0 / 10%);
|
|
--destructive: oklch(0.45 0 0);
|
|
--destructive-alpha10: oklch(0.45 0 0 / 10%);
|
|
--info: oklch(0.50 0 0);
|
|
|
|
/* Role colors (from Discord) */
|
|
--role-red: oklch(0.50 0 0);
|
|
--role-orange: oklch(0.55 0 0);
|
|
--role-yellow: oklch(0.60 0 0);
|
|
--role-green: oklch(0.50 0 0);
|
|
--role-blue: oklch(0.55 0 0);
|
|
--role-purple: oklch(0.55 0 0);
|
|
--role-pink: oklch(0.55 0 0);
|
|
--role-gray: oklch(0.50 0 0);
|
|
|
|
/* Interactive */
|
|
--interactive: oklch(0.97 0 0);
|
|
--interactive-hover: oklch(0.92 0 0);
|
|
--interactive-active: oklch(0.88 0 0);
|
|
|
|
/* Hover */
|
|
--hover-bg: oklch(0.95 0 0 / 70%);
|
|
--hover-bg-strong: oklch(0.90 0 0);
|
|
|
|
/* Input */
|
|
--input-bg: oklch(0.98 0 0);
|
|
--input-placeholder: oklch(0.50 0 0);
|
|
--input-ring: oklch(0.30 0 0);
|
|
|
|
/* Heatmap (contribution graph) */
|
|
--heatmap-0: oklch(0.93 0 0);
|
|
--heatmap-1: oklch(0.75 0.10 155);
|
|
--heatmap-2: oklch(0.62 0.15 155);
|
|
--heatmap-3: oklch(0.50 0.15 155);
|
|
--heatmap-4: oklch(0.38 0.15 155);
|
|
}
|
|
|
|
.dark {
|
|
--surface-rail: oklch(0.12 0 0);
|
|
--surface-sidebar: oklch(0.15 0 0);
|
|
--surface-ground: oklch(0.13 0 0);
|
|
--surface-elevated: oklch(0.18 0 0);
|
|
--surface-overlay: oklch(0.10 0 0 / 95%);
|
|
|
|
--border-subtle: oklch(0.30 0 0 / 30%);
|
|
--border-default: oklch(0.35 0 0);
|
|
--border-strong: oklch(0.50 0 0);
|
|
|
|
--text-primary: oklch(0.97 0 0);
|
|
--text-secondary: oklch(0.80 0 0);
|
|
--text-muted: oklch(0.65 0 0);
|
|
--text-inverse: oklch(0.13 0 0);
|
|
--text-tertiary: oklch(0.55 0 0);
|
|
|
|
--accent: oklch(0.70 0.15 264);
|
|
--accent-hover: oklch(0.78 0.15 264);
|
|
--accent-fg: oklch(0.10 0 0);
|
|
--accent-muted: oklch(0.70 0.15 264 / 20%);
|
|
--accent-bg: oklch(0.70 0.15 264 / 12%);
|
|
--accent-rgb: 88, 101, 242;
|
|
|
|
--status-online: oklch(0.72 0.17 155);
|
|
--status-idle: oklch(0.78 0.15 80);
|
|
--status-dnd: oklch(0.65 0.20 25);
|
|
--status-offline: oklch(0.55 0 0);
|
|
|
|
--success: oklch(0.72 0.17 155);
|
|
--success-alpha10: oklch(0.72 0.17 155 / 10%);
|
|
--warning: oklch(0.78 0.15 90);
|
|
--warning-alpha10: oklch(0.78 0.15 90 / 10%);
|
|
--destructive: oklch(0.70 0.20 25);
|
|
--destructive-alpha10: oklch(0.70 0.20 25 / 10%);
|
|
--info: oklch(0.70 0.15 250);
|
|
|
|
--role-red: oklch(0.65 0.20 20);
|
|
--role-orange: oklch(0.72 0.18 50);
|
|
--role-yellow: oklch(0.78 0.16 85);
|
|
--role-green: oklch(0.70 0.17 155);
|
|
--role-blue: oklch(0.70 0.20 250);
|
|
--role-purple: oklch(0.65 0.20 290);
|
|
--role-pink: oklch(0.65 0.20 340);
|
|
--role-gray: oklch(0.58 0 0);
|
|
|
|
--interactive: oklch(0.18 0 0);
|
|
--interactive-hover: oklch(0.25 0 0);
|
|
--interactive-active: oklch(0.32 0 0);
|
|
|
|
--hover-bg: oklch(0.22 0 0 / 60%);
|
|
--hover-bg-strong: oklch(0.28 0 0);
|
|
|
|
--input-bg: oklch(0.15 0 0);
|
|
--input-placeholder: oklch(0.55 0 0);
|
|
--input-ring: oklch(0.70 0.15 264);
|
|
|
|
/* Heatmap (contribution graph) */
|
|
--heatmap-0: oklch(0.20 0 0);
|
|
--heatmap-1: oklch(0.30 0.08 155);
|
|
--heatmap-2: oklch(0.45 0.12 155);
|
|
--heatmap-3: oklch(0.60 0.15 155);
|
|
--heatmap-4: oklch(0.75 0.15 155);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
html {
|
|
@apply font-sans;
|
|
}
|
|
}
|
|
|
|
/* ─── Settings Modal open/close animation ─── */
|
|
|
|
.settings-dialog[data-state="open"] {
|
|
animation: settings-modal-open 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
|
|
}
|
|
|
|
.settings-dialog[data-state="closed"] {
|
|
animation: settings-modal-close 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
|
|
}
|
|
|
|
@keyframes settings-modal-open {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes settings-modal-close {
|
|
from { opacity: 1; }
|
|
to { opacity: 0; }
|
|
}
|
|
|
|
[data-slot="dialog-overlay"][data-state="open"] {
|
|
animation: settings-overlay-open 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
|
|
}
|
|
|
|
[data-slot="dialog-overlay"][data-state="closed"] {
|
|
animation: settings-overlay-close 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
|
|
}
|
|
|
|
@keyframes settings-overlay-open {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes settings-overlay-close {
|
|
from { opacity: 1; }
|
|
to { opacity: 0; }
|
|
}
|
|
|
|
/* ─────────────────────────────────────────────
|
|
Tailwind Typography override — force prose
|
|
colors to use theme semantic tokens so that
|
|
dark mode text never falls back to defaults
|
|
───────────────────────────────────────────── */
|
|
:root .prose {
|
|
--tw-prose-body: var(--text-primary);
|
|
--tw-prose-headings: var(--text-primary);
|
|
--tw-prose-lead: var(--text-secondary);
|
|
--tw-prose-links: var(--accent);
|
|
--tw-prose-bold: var(--text-primary);
|
|
--tw-prose-counters: var(--text-secondary);
|
|
--tw-prose-bullets: var(--text-muted);
|
|
--tw-prose-hr: var(--border-default);
|
|
--tw-prose-quotes: var(--text-secondary);
|
|
--tw-prose-quote-borders: var(--border-default);
|
|
--tw-prose-captions: var(--text-muted);
|
|
--tw-prose-kbd: var(--text-primary);
|
|
--tw-prose-kbd-shadows: oklch(0.13 0 0 / 10%);
|
|
--tw-prose-code: var(--accent);
|
|
--tw-prose-pre-code: var(--text-primary);
|
|
--tw-prose-pre-bg: var(--surface-elevated);
|
|
--tw-prose-th-borders: var(--border-default);
|
|
--tw-prose-td-borders: var(--border-subtle);
|
|
}
|
|
|
|
.dark .prose {
|
|
--tw-prose-body: var(--text-primary);
|
|
--tw-prose-headings: var(--text-primary);
|
|
--tw-prose-lead: var(--text-secondary);
|
|
--tw-prose-links: var(--accent);
|
|
--tw-prose-bold: var(--text-primary);
|
|
--tw-prose-counters: var(--text-secondary);
|
|
--tw-prose-bullets: var(--text-muted);
|
|
--tw-prose-hr: var(--border-default);
|
|
--tw-prose-quotes: var(--text-secondary);
|
|
--tw-prose-quote-borders: var(--border-default);
|
|
--tw-prose-captions: var(--text-muted);
|
|
--tw-prose-kbd: var(--text-primary);
|
|
--tw-prose-kbd-shadows: oklch(0.97 0 0 / 10%);
|
|
--tw-prose-code: var(--accent);
|
|
--tw-prose-pre-code: var(--text-primary);
|
|
--tw-prose-pre-bg: var(--surface-elevated);
|
|
--tw-prose-th-borders: var(--border-default);
|
|
--tw-prose-td-borders: var(--border-subtle);
|
|
} |