fake-server-status-history/app/globals.css
2025-08-26 22:49:34 +08:00

128 lines
5.4 KiB
CSS

@import "tailwindcss";
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
:root {
/* 更新为专业监控仪表板的深色主题配色方案 */
--background: oklch(0.12 0.02 264); /* Dark Slate Blue */
--foreground: oklch(0.98 0 0); /* White */
--card: oklch(0.16 0.02 264); /* Dark Gray for cards */
--card-foreground: oklch(0.88 0 0); /* Light Gray for text in cards */
--popover: oklch(0.16 0.02 264); /* Dark Gray for popovers */
--popover-foreground: oklch(0.98 0 0); /* White for text in popovers */
--primary: oklch(0.65 0.15 142); /* Green for primary actions */
--primary-foreground: oklch(0.98 0 0); /* White for text on primary buttons */
--secondary: oklch(0.88 0 0); /* Light Gray for secondary actions */
--secondary-foreground: oklch(0.12 0.02 264); /* Dark Slate Blue for text on secondary buttons */
--muted: oklch(0.16 0.02 264); /* Used for muted elements */
--muted-foreground: oklch(0.53 0 0); /* Gray for muted text */
--accent: oklch(0.65 0.15 142); /* Green for accents */
--accent-foreground: oklch(0.98 0 0); /* White for accent text */
--destructive: oklch(0.55 0.22 25); /* Red for destructive actions */
--destructive-foreground: oklch(0.98 0 0); /* White for destructive text */
--border: oklch(0.3 0.02 264); /* Gray for borders */
--input: oklch(0.16 0.02 264); /* Dark Gray for input fields */
--ring: oklch(0.65 0.15 142); /* Green for focus rings */
--chart-1: oklch(0.65 0.15 142); /* Green for first chart */
--chart-2: oklch(0.85 0.15 85); /* Yellow for second chart */
--chart-3: oklch(0.65 0.15 230); /* Blue for third chart */
--chart-4: oklch(0.7 0.15 50); /* Orange for fourth chart */
--chart-5: oklch(0.55 0.22 25); /* Red for fifth chart */
--radius: 0.5rem;
--sidebar: oklch(0.16 0.02 264); /* Dark Gray for sidebar */
--sidebar-foreground: oklch(0.98 0 0); /* White for sidebar text */
--sidebar-primary: oklch(0.65 0.15 142); /* Green for primary sidebar elements */
--sidebar-primary-foreground: oklch(0.98 0 0); /* White for primary sidebar text */
--sidebar-accent: oklch(0.85 0.15 85); /* Yellow for sidebar accents */
--sidebar-accent-foreground: oklch(0.12 0.02 264); /* Dark Slate Blue for sidebar accent text */
--sidebar-border: oklch(0.3 0.02 264); /* Gray for sidebar borders */
--sidebar-ring: oklch(0.65 0.15 142); /* Green for sidebar focus rings */
}
.dark {
/* 深色模式保持相同的监控主题配色 */
--background: oklch(0.08 0.02 264); /* Darker background for dark mode */
--foreground: oklch(0.98 0 0);
--card: oklch(0.12 0.02 264);
--card-foreground: oklch(0.88 0 0);
--popover: oklch(0.12 0.02 264);
--popover-foreground: oklch(0.98 0 0);
--primary: oklch(0.65 0.15 142);
--primary-foreground: oklch(0.98 0 0);
--secondary: oklch(0.2 0.02 264);
--secondary-foreground: oklch(0.98 0 0);
--muted: oklch(0.2 0.02 264);
--muted-foreground: oklch(0.6 0 0);
--accent: oklch(0.65 0.15 142);
--accent-foreground: oklch(0.98 0 0);
--destructive: oklch(0.55 0.22 25);
--destructive-foreground: oklch(0.98 0 0);
--border: oklch(0.25 0.02 264);
--input: oklch(0.2 0.02 264);
--ring: oklch(0.65 0.15 142);
--chart-1: oklch(0.65 0.15 142);
--chart-2: oklch(0.85 0.15 85);
--chart-3: oklch(0.65 0.15 230);
--chart-4: oklch(0.7 0.15 50);
--chart-5: oklch(0.55 0.22 25);
--sidebar: oklch(0.12 0.02 264);
--sidebar-foreground: oklch(0.98 0 0);
--sidebar-primary: oklch(0.65 0.15 142);
--sidebar-primary-foreground: oklch(0.98 0 0);
--sidebar-accent: oklch(0.2 0.02 264);
--sidebar-accent-foreground: oklch(0.98 0 0);
--sidebar-border: oklch(0.25 0.02 264);
--sidebar-ring: oklch(0.65 0.15 142);
}
@theme inline {
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
--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);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--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);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
}