|
| 1 | +/* Force light mode for chat subdomain by overriding dark mode utilities */ |
| 2 | +/* This file uses CSS variables from globals.css light mode theme */ |
| 3 | + |
| 4 | +/* When inside the chat layout, force all light mode CSS variables */ |
| 5 | +.chat-light-wrapper { |
| 6 | + /* Core Colors - from globals.css light mode */ |
| 7 | + --background: 0 0% 100%; |
| 8 | + --foreground: 0 0% 3.9%; |
| 9 | + |
| 10 | + /* Card Colors */ |
| 11 | + --card: 0 0% 99.2%; |
| 12 | + --card-foreground: 0 0% 3.9%; |
| 13 | + |
| 14 | + /* Popover Colors */ |
| 15 | + --popover: 0 0% 100%; |
| 16 | + --popover-foreground: 0 0% 3.9%; |
| 17 | + |
| 18 | + /* Primary Colors */ |
| 19 | + --primary: 0 0% 11.2%; |
| 20 | + --primary-foreground: 0 0% 98%; |
| 21 | + |
| 22 | + /* Secondary Colors */ |
| 23 | + --secondary: 0 0% 96.1%; |
| 24 | + --secondary-foreground: 0 0% 11.2%; |
| 25 | + |
| 26 | + /* Muted Colors */ |
| 27 | + --muted: 0 0% 96.1%; |
| 28 | + --muted-foreground: 0 0% 46.9%; |
| 29 | + |
| 30 | + /* Accent Colors */ |
| 31 | + --accent: 0 0% 92.5%; |
| 32 | + --accent-foreground: 0 0% 11.2%; |
| 33 | + |
| 34 | + /* Destructive Colors */ |
| 35 | + --destructive: 0 84.2% 60.2%; |
| 36 | + --destructive-foreground: 0 0% 98%; |
| 37 | + |
| 38 | + /* Border & Input Colors */ |
| 39 | + --border: 0 0% 89.8%; |
| 40 | + --input: 0 0% 89.8%; |
| 41 | + --ring: 0 0% 3.9%; |
| 42 | + |
| 43 | + /* Border Radius */ |
| 44 | + --radius: 0.5rem; |
| 45 | + |
| 46 | + /* Scrollbar Properties */ |
| 47 | + --scrollbar-track: 0 0% 85%; |
| 48 | + --scrollbar-thumb: 0 0% 65%; |
| 49 | + --scrollbar-thumb-hover: 0 0% 55%; |
| 50 | + --scrollbar-size: 8px; |
| 51 | + |
| 52 | + /* Workflow Properties */ |
| 53 | + --workflow-background: 0 0% 100%; |
| 54 | + --workflow-dots: 0 0% 94.5%; |
| 55 | + --card-background: 0 0% 99.2%; |
| 56 | + --card-border: 0 0% 89.8%; |
| 57 | + --card-text: 0 0% 3.9%; |
| 58 | + --card-hover: 0 0% 96.1%; |
| 59 | + |
| 60 | + /* Base Component Properties */ |
| 61 | + --base-muted-foreground: #737373; |
| 62 | + |
| 63 | + /* Gradient Colors */ |
| 64 | + --gradient-primary: 263 85% 70%; |
| 65 | + --gradient-secondary: 336 95% 65%; |
| 66 | + |
| 67 | + /* Brand Colors */ |
| 68 | + --brand-primary-hex: #701ffc; |
| 69 | + --brand-primary-hover-hex: #802fff; |
| 70 | + --brand-secondary-hex: #6518e6; |
| 71 | + --brand-accent-hex: #9d54ff; |
| 72 | + --brand-accent-hover-hex: #a66fff; |
| 73 | + --brand-background-hex: #0c0c0c; |
| 74 | + |
| 75 | + /* UI Surface Colors */ |
| 76 | + --surface-elevated: #202020; |
| 77 | +} |
| 78 | + |
| 79 | +/* Override dark mode utility classes using CSS variables */ |
| 80 | +.chat-light-wrapper :is(.dark\:bg-black) { |
| 81 | + background-color: hsl(var(--secondary)); |
| 82 | +} |
| 83 | + |
| 84 | +.chat-light-wrapper :is(.dark\:bg-gray-900) { |
| 85 | + background-color: hsl(var(--background)); |
| 86 | +} |
| 87 | + |
| 88 | +.chat-light-wrapper :is(.dark\:bg-gray-800) { |
| 89 | + background-color: hsl(var(--secondary)); |
| 90 | +} |
| 91 | + |
| 92 | +.chat-light-wrapper :is(.dark\:bg-gray-700) { |
| 93 | + background-color: hsl(var(--accent)); |
| 94 | +} |
| 95 | + |
| 96 | +.chat-light-wrapper :is(.dark\:bg-gray-600) { |
| 97 | + background-color: hsl(var(--muted)); |
| 98 | +} |
| 99 | + |
| 100 | +.chat-light-wrapper :is(.dark\:bg-gray-300) { |
| 101 | + background-color: hsl(var(--primary)); |
| 102 | +} |
| 103 | + |
| 104 | +/* Text color overrides using CSS variables */ |
| 105 | +.chat-light-wrapper :is(.dark\:text-gray-100) { |
| 106 | + color: hsl(var(--primary)); |
| 107 | +} |
| 108 | + |
| 109 | +.chat-light-wrapper :is(.dark\:text-gray-200) { |
| 110 | + color: hsl(var(--foreground)); |
| 111 | +} |
| 112 | + |
| 113 | +.chat-light-wrapper :is(.dark\:text-gray-300) { |
| 114 | + color: hsl(var(--muted-foreground)); |
| 115 | +} |
| 116 | + |
| 117 | +.chat-light-wrapper :is(.dark\:text-gray-400) { |
| 118 | + color: hsl(var(--muted-foreground)); |
| 119 | +} |
| 120 | + |
| 121 | +.chat-light-wrapper :is(.dark\:text-neutral-600) { |
| 122 | + color: hsl(var(--muted-foreground)); |
| 123 | +} |
| 124 | + |
| 125 | +.chat-light-wrapper :is(.dark\:text-blue-400) { |
| 126 | + color: var(--brand-accent-hex); |
| 127 | +} |
| 128 | + |
| 129 | +/* Border color overrides using CSS variables */ |
| 130 | +.chat-light-wrapper :is(.dark\:border-gray-700) { |
| 131 | + border-color: hsl(var(--border)); |
| 132 | +} |
| 133 | + |
| 134 | +.chat-light-wrapper :is(.dark\:border-gray-800) { |
| 135 | + border-color: hsl(var(--border)); |
| 136 | +} |
| 137 | + |
| 138 | +.chat-light-wrapper :is(.dark\:border-gray-600) { |
| 139 | + border-color: hsl(var(--border)); |
| 140 | +} |
| 141 | + |
| 142 | +.chat-light-wrapper :is(.dark\:divide-gray-700) > * + * { |
| 143 | + border-color: hsl(var(--border)); |
| 144 | +} |
| 145 | + |
| 146 | +/* Hover state overrides */ |
| 147 | +.chat-light-wrapper :is(.dark\:hover\:bg-gray-800\/60:hover) { |
| 148 | + background-color: hsl(var(--card-hover)); |
| 149 | +} |
| 150 | + |
| 151 | +/* Code blocks specific overrides using CSS variables */ |
| 152 | +.chat-light-wrapper pre:is(.dark\:bg-black) { |
| 153 | + background-color: hsl(var(--workflow-dots)); |
| 154 | +} |
| 155 | + |
| 156 | +.chat-light-wrapper code:is(.dark\:bg-gray-700) { |
| 157 | + background-color: hsl(var(--accent)); |
| 158 | +} |
| 159 | + |
| 160 | +.chat-light-wrapper code:is(.dark\:text-gray-200) { |
| 161 | + color: hsl(var(--foreground)); |
| 162 | +} |
| 163 | + |
| 164 | +/* Force color scheme */ |
| 165 | +.chat-light-wrapper { |
| 166 | + color-scheme: light !important; |
| 167 | +} |
0 commit comments