191 lines
5.3 KiB
CSS
191 lines
5.3 KiB
CSS
@import "tailwindcss";
|
|
|
|
@import "tw-animate-css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
:root {
|
|
/* "Rice Paper" & "Ink" Theme */
|
|
--background: oklch(0.97 0.01 90); /* Warm off-white */
|
|
--foreground: oklch(0.2 0.02 265); /* Deep Ink Black */
|
|
|
|
--card: oklch(0.98 0.005 90);
|
|
--card-foreground: oklch(0.2 0.02 265);
|
|
|
|
--popover: oklch(0.98 0.005 90);
|
|
--popover-foreground: oklch(0.2 0.02 265);
|
|
|
|
/* Chinese Red - Cinnabar */
|
|
--primary: oklch(0.45 0.15 25);
|
|
--primary-foreground: oklch(0.98 0.01 90);
|
|
|
|
/* Gold / Bronze */
|
|
--secondary: oklch(0.85 0.05 85);
|
|
--secondary-foreground: oklch(0.3 0.05 50);
|
|
|
|
--muted: oklch(0.92 0.01 90);
|
|
--muted-foreground: oklch(0.45 0.02 265);
|
|
|
|
--accent: oklch(0.94 0.02 85);
|
|
--accent-foreground: oklch(0.3 0.05 50);
|
|
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--destructive-foreground: oklch(0.98 0 0);
|
|
|
|
--border: oklch(0.88 0.01 90);
|
|
--input: oklch(0.88 0.01 90);
|
|
--ring: oklch(0.45 0.15 25);
|
|
|
|
--radius: 0.5rem;
|
|
|
|
--sidebar: oklch(0.96 0.01 90);
|
|
--sidebar-foreground: oklch(0.25 0.02 265);
|
|
--sidebar-primary: oklch(0.45 0.15 25);
|
|
--sidebar-primary-foreground: oklch(0.98 0.01 90);
|
|
--sidebar-accent: oklch(0.93 0.01 90);
|
|
--sidebar-accent-foreground: oklch(0.25 0.02 265);
|
|
--sidebar-border: oklch(0.88 0.01 90);
|
|
--sidebar-ring: oklch(0.45 0.15 25);
|
|
|
|
/* Custom chart colors matching the theme */
|
|
--chart-1: oklch(0.45 0.15 25); /* Red */
|
|
--chart-2: oklch(0.65 0.12 50); /* Gold/Orange */
|
|
--chart-3: oklch(0.35 0.08 200); /* Deep Blue/Green */
|
|
--chart-4: oklch(0.55 0.05 265); /* Grey Blue */
|
|
--chart-5: oklch(0.75 0.1 85); /* Light Gold */
|
|
}
|
|
|
|
.dark {
|
|
/* Deep Ink Background */
|
|
--background: oklch(0.12 0.01 265);
|
|
--foreground: oklch(0.95 0.01 90);
|
|
|
|
--card: oklch(0.15 0.01 265);
|
|
--card-foreground: oklch(0.95 0.01 90);
|
|
|
|
--popover: oklch(0.15 0.01 265);
|
|
--popover-foreground: oklch(0.95 0.01 90);
|
|
|
|
--primary: oklch(0.6 0.15 25); /* Brighter Red for dark mode */
|
|
--primary-foreground: oklch(0.98 0.01 90);
|
|
|
|
--secondary: oklch(0.3 0.05 50);
|
|
--secondary-foreground: oklch(0.9 0.05 85);
|
|
|
|
--muted: oklch(0.2 0.01 265);
|
|
--muted-foreground: oklch(0.65 0.01 265);
|
|
|
|
--accent: oklch(0.2 0.02 265);
|
|
--accent-foreground: oklch(0.95 0.01 90);
|
|
|
|
--destructive: oklch(0.396 0.141 25.723);
|
|
--destructive-foreground: oklch(0.98 0 0);
|
|
|
|
--border: oklch(0.25 0.01 265);
|
|
--input: oklch(0.25 0.01 265);
|
|
--ring: oklch(0.6 0.15 25);
|
|
|
|
--sidebar: oklch(0.14 0.01 265);
|
|
--sidebar-foreground: oklch(0.95 0.01 90);
|
|
--sidebar-primary: oklch(0.6 0.15 25);
|
|
--sidebar-primary-foreground: oklch(0.98 0.01 90);
|
|
--sidebar-accent: oklch(0.2 0.01 265);
|
|
--sidebar-accent-foreground: oklch(0.95 0.01 90);
|
|
--sidebar-border: oklch(0.25 0.01 265);
|
|
--sidebar-ring: oklch(0.6 0.15 25);
|
|
}
|
|
|
|
@theme inline {
|
|
--font-sans: "Geist", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
--font-serif: "Songti SC", "STSong", "SimSun", "Times New Roman", serif;
|
|
--font-mono: "Geist Mono", monospace;
|
|
|
|
--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);
|
|
|
|
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
|
|
@keyframes accordion-down {
|
|
from {
|
|
height: 0;
|
|
}
|
|
to {
|
|
height: var(--radix-accordion-content-height);
|
|
}
|
|
}
|
|
@keyframes accordion-up {
|
|
from {
|
|
height: var(--radix-accordion-content-height);
|
|
}
|
|
to {
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes scroll {
|
|
0% {
|
|
transform: translateY(0);
|
|
}
|
|
100% {
|
|
transform: translateY(-50%);
|
|
}
|
|
}
|
|
|
|
--animate-scroll: scroll 20s linear infinite;
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground font-serif;
|
|
}
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
@apply font-serif tracking-tight;
|
|
}
|
|
p {
|
|
@apply font-serif;
|
|
}
|
|
}
|