|
| 1 | +@import 'tailwindcss'; |
| 2 | +@import 'tw-animate-css'; |
| 3 | + |
| 4 | +@custom-variant dark (&:is(.dark *)); |
| 5 | + |
| 6 | +:root { |
| 7 | + /* Light theme - muted crimson accent, editorial feel */ |
| 8 | + --background: oklch(0.985 0.002 260); |
| 9 | + --foreground: oklch(0.2 0.008 260); |
| 10 | + --card: oklch(1 0 0); |
| 11 | + --card-foreground: oklch(0.2 0.008 260); |
| 12 | + --popover: oklch(1 0 0); |
| 13 | + --popover-foreground: oklch(0.2 0.008 260); |
| 14 | + --primary: oklch(0.52 0.13 22); |
| 15 | + --primary-foreground: oklch(0.99 0.002 60); |
| 16 | + --secondary: oklch(0.955 0.004 260); |
| 17 | + --secondary-foreground: oklch(0.25 0.008 260); |
| 18 | + --muted: oklch(0.955 0.004 260); |
| 19 | + --muted-foreground: oklch(0.52 0.008 260); |
| 20 | + --accent: oklch(0.955 0.008 22); |
| 21 | + --accent-foreground: oklch(0.45 0.1 22); |
| 22 | + --destructive: oklch(0.56 0.14 25); |
| 23 | + --destructive-foreground: oklch(0.99 0.002 60); |
| 24 | + --border: oklch(0.905 0.004 260); |
| 25 | + --input: oklch(0.905 0.004 260); |
| 26 | + --ring: oklch(0.52 0.13 22); |
| 27 | + --chart-1: oklch(0.58 0.12 22); |
| 28 | + --chart-2: oklch(0.6 0.08 184); |
| 29 | + --chart-3: oklch(0.45 0.06 227); |
| 30 | + --chart-4: oklch(0.75 0.1 84); |
| 31 | + --chart-5: oklch(0.7 0.1 70); |
| 32 | + --radius: 0.5rem; |
| 33 | + --sidebar: oklch(0.97 0.003 260); |
| 34 | + --sidebar-foreground: oklch(0.2 0.008 260); |
| 35 | + --sidebar-primary: oklch(0.52 0.13 22); |
| 36 | + --sidebar-primary-foreground: oklch(0.99 0.002 60); |
| 37 | + --sidebar-accent: oklch(0.94 0.004 260); |
| 38 | + --sidebar-accent-foreground: oklch(0.25 0.008 260); |
| 39 | + --sidebar-border: oklch(0.905 0.004 260); |
| 40 | + --sidebar-ring: oklch(0.52 0.13 22); |
| 41 | + |
| 42 | + /* Custom grid color for canvas */ |
| 43 | + --grid-color: oklch(0.9 0.004 260); |
| 44 | +} |
| 45 | + |
| 46 | +.dark { |
| 47 | + /* Dark theme - editorial, muted, slight warm crimson accent */ |
| 48 | + --background: oklch(0.155 0.006 260); |
| 49 | + --foreground: oklch(0.93 0.004 260); |
| 50 | + --card: oklch(0.19 0.006 260); |
| 51 | + --card-foreground: oklch(0.93 0.004 260); |
| 52 | + --popover: oklch(0.18 0.006 260); |
| 53 | + --popover-foreground: oklch(0.93 0.004 260); |
| 54 | + --primary: oklch(0.58 0.13 22); |
| 55 | + --primary-foreground: oklch(0.99 0.002 60); |
| 56 | + --secondary: oklch(0.23 0.006 260); |
| 57 | + --secondary-foreground: oklch(0.93 0.004 260); |
| 58 | + --muted: oklch(0.23 0.006 260); |
| 59 | + --muted-foreground: oklch(0.64 0.006 260); |
| 60 | + --accent: oklch(0.28 0.05 22); |
| 61 | + --accent-foreground: oklch(0.82 0.08 22); |
| 62 | + --destructive: oklch(0.56 0.13 25); |
| 63 | + --destructive-foreground: oklch(0.99 0.002 60); |
| 64 | + --border: oklch(0.26 0.006 260); |
| 65 | + --input: oklch(0.23 0.006 260); |
| 66 | + --ring: oklch(0.58 0.13 22); |
| 67 | + --chart-1: oklch(0.6 0.12 22); |
| 68 | + --chart-2: oklch(0.68 0.09 162); |
| 69 | + --chart-3: oklch(0.72 0.1 70); |
| 70 | + --chart-4: oklch(0.6 0.08 240); |
| 71 | + --chart-5: oklch(0.64 0.12 16); |
| 72 | + --sidebar: oklch(0.17 0.006 260); |
| 73 | + --sidebar-foreground: oklch(0.93 0.004 260); |
| 74 | + --sidebar-primary: oklch(0.58 0.13 22); |
| 75 | + --sidebar-primary-foreground: oklch(0.99 0.002 60); |
| 76 | + --sidebar-accent: oklch(0.23 0.006 260); |
| 77 | + --sidebar-accent-foreground: oklch(0.93 0.004 260); |
| 78 | + --sidebar-border: oklch(0.26 0.006 260); |
| 79 | + --sidebar-ring: oklch(0.58 0.13 22); |
| 80 | + |
| 81 | + --grid-color: oklch(0.23 0.006 260); |
| 82 | +} |
| 83 | + |
| 84 | +@theme inline { |
| 85 | + --font-sans: var(--font-sans); |
| 86 | + --font-mono: var(--font-mono); |
| 87 | + --color-background: var(--background); |
| 88 | + --color-foreground: var(--foreground); |
| 89 | + --color-card: var(--card); |
| 90 | + --color-card-foreground: var(--card-foreground); |
| 91 | + --color-popover: var(--popover); |
| 92 | + --color-popover-foreground: var(--popover-foreground); |
| 93 | + --color-primary: var(--primary); |
| 94 | + --color-primary-foreground: var(--primary-foreground); |
| 95 | + --color-secondary: var(--secondary); |
| 96 | + --color-secondary-foreground: var(--secondary-foreground); |
| 97 | + --color-muted: var(--muted); |
| 98 | + --color-muted-foreground: var(--muted-foreground); |
| 99 | + --color-accent: var(--accent); |
| 100 | + --color-accent-foreground: var(--accent-foreground); |
| 101 | + --color-destructive: var(--destructive); |
| 102 | + --color-destructive-foreground: var(--destructive-foreground); |
| 103 | + --color-border: var(--border); |
| 104 | + --color-input: var(--input); |
| 105 | + --color-ring: var(--ring); |
| 106 | + --color-chart-1: var(--chart-1); |
| 107 | + --color-chart-2: var(--chart-2); |
| 108 | + --color-chart-3: var(--chart-3); |
| 109 | + --color-chart-4: var(--chart-4); |
| 110 | + --color-chart-5: var(--chart-5); |
| 111 | + --radius-sm: calc(var(--radius) - 4px); |
| 112 | + --radius-md: calc(var(--radius) - 2px); |
| 113 | + --radius-lg: var(--radius); |
| 114 | + --radius-xl: calc(var(--radius) + 4px); |
| 115 | + --color-sidebar: var(--sidebar); |
| 116 | + --color-sidebar-foreground: var(--sidebar-foreground); |
| 117 | + --color-sidebar-primary: var(--sidebar-primary); |
| 118 | + --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); |
| 119 | + --color-sidebar-accent: var(--sidebar-accent); |
| 120 | + --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); |
| 121 | + --color-sidebar-border: var(--sidebar-border); |
| 122 | + --color-sidebar-ring: var(--sidebar-ring); |
| 123 | +} |
| 124 | + |
| 125 | +@layer base { |
| 126 | + * { |
| 127 | + @apply border-border outline-ring/50; |
| 128 | + } |
| 129 | + body { |
| 130 | + @apply bg-background text-foreground; |
| 131 | + } |
| 132 | +} |
| 133 | + |
| 134 | +/* Canvas grid background */ |
| 135 | +.canvas-grid { |
| 136 | + background-image: |
| 137 | + linear-gradient(to right, var(--grid-color) 1px, transparent 1px), |
| 138 | + linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px); |
| 139 | + background-size: 24px 24px; |
| 140 | +} |
| 141 | + |
| 142 | +.canvas-grid-lg { |
| 143 | + background-image: |
| 144 | + linear-gradient(to right, var(--grid-color) 1px, transparent 1px), |
| 145 | + linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px); |
| 146 | + background-size: 40px 40px; |
| 147 | +} |
| 148 | + |
| 149 | +/* Scrollbar styling */ |
| 150 | +.thin-scrollbar::-webkit-scrollbar { |
| 151 | + width: 6px; |
| 152 | + height: 6px; |
| 153 | +} |
| 154 | +.thin-scrollbar::-webkit-scrollbar-track { |
| 155 | + background: transparent; |
| 156 | +} |
| 157 | +.thin-scrollbar::-webkit-scrollbar-thumb { |
| 158 | + background: var(--border); |
| 159 | + border-radius: 3px; |
| 160 | +} |
| 161 | +.thin-scrollbar::-webkit-scrollbar-thumb:hover { |
| 162 | + background: var(--muted-foreground); |
| 163 | +} |
0 commit comments