fix(ui): comprehensive dark-theme hardcoded color pass
Phase 1 — globals.css: add ~45 new dark-mode override rules covering 250+ component instances at once: - bg-*-50 (red/green/blue/yellow/amber/purple/indigo/orange/brand/emerald) - border-*-200 (colored alert/badge borders) - hover:bg-*-50/100 (colored hover states) - text-amber-700/orange-600/green-600/emerald-700/brand-700 (missing overrides) - divide-gray-50 (ChargeabilityWidget sticky section dividers) Phase 2 — targeted component fixes: - Button.tsx: add dark variants to secondary (bg-gray-800) and ghost variants - DynamicFieldEditor.tsx: add dark variants to INPUT_NORMAL and INPUT_ERROR constants - WidgetContainer.tsx: replace slate-900 (blue-tinted) gradient with neutral surface-card values (rgb 22,23,26 / 16,17,19) - status-styles.ts: add explicit dark variants to PROJECT_STATUS_BADGE and ORDER_TYPE_BADGE (consistent with other badge maps in same file) Phase 3 — dashboard widget tables: - TopValueWidget: dark thead, tbody divider, row hover - DemandWidget: dark thead, tbody divider, row hover - ChargeabilityWidget: dark sticky h3 headers (bg-white→surface-card), border-gray-100 thead rows, divide-gray-50 tbodys Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -345,6 +345,45 @@
|
||||
color: rgb(196 181 253) !important;
|
||||
}
|
||||
|
||||
/* Status/alert -50 backgrounds — covers ~250+ instances across the codebase */
|
||||
.dark .bg-red-50 { background-color: rgb(127 29 29 / 0.15) !important; }
|
||||
.dark .bg-green-50 { background-color: rgb(6 78 59 / 0.15) !important; }
|
||||
.dark .bg-blue-50 { background-color: rgb(30 58 138 / 0.15) !important; }
|
||||
.dark .bg-yellow-50 { background-color: rgb(120 53 15 / 0.15) !important; }
|
||||
.dark .bg-amber-50 { background-color: rgb(120 53 15 / 0.15) !important; }
|
||||
.dark .bg-purple-50 { background-color: rgb(76 29 149 / 0.15) !important; }
|
||||
.dark .bg-indigo-50 { background-color: rgb(49 46 129 / 0.15) !important; }
|
||||
.dark .bg-orange-50 { background-color: rgb(124 45 18 / 0.15) !important; }
|
||||
.dark .bg-brand-50 { background-color: rgb(var(--accent-900) / 0.15) !important; }
|
||||
.dark .bg-emerald-50 { background-color: rgb(6 78 59 / 0.15) !important; }
|
||||
|
||||
/* Colored border overrides */
|
||||
.dark .border-red-200 { border-color: rgb(127 29 29 / 0.4) !important; }
|
||||
.dark .border-green-200 { border-color: rgb(6 78 59 / 0.4) !important; }
|
||||
.dark .border-blue-200 { border-color: rgb(30 58 138 / 0.4) !important; }
|
||||
.dark .border-yellow-200 { border-color: rgb(120 53 15 / 0.4) !important; }
|
||||
.dark .border-amber-200 { border-color: rgb(120 53 15 / 0.4) !important; }
|
||||
.dark .border-purple-200 { border-color: rgb(76 29 149 / 0.4) !important; }
|
||||
.dark .border-indigo-200 { border-color: rgb(49 46 129 / 0.4) !important; }
|
||||
.dark .border-brand-200 { border-color: rgb(var(--accent-700) / 0.4) !important; }
|
||||
|
||||
/* Hover -50/-100 colored states */
|
||||
.dark .hover\:bg-red-50:hover { background-color: rgb(127 29 29 / 0.20) !important; }
|
||||
.dark .hover\:bg-red-100:hover { background-color: rgb(127 29 29 / 0.30) !important; }
|
||||
.dark .hover\:bg-green-50:hover { background-color: rgb(6 78 59 / 0.20) !important; }
|
||||
.dark .hover\:bg-blue-50:hover { background-color: rgb(30 58 138 / 0.20) !important; }
|
||||
.dark .hover\:bg-amber-50:hover { background-color: rgb(120 53 15 / 0.20) !important; }
|
||||
|
||||
/* Missing text color overrides */
|
||||
.dark .text-amber-700 { color: rgb(251 191 36) !important; }
|
||||
.dark .text-orange-600 { color: rgb(251 146 60) !important; }
|
||||
.dark .text-green-600 { color: rgb(52 211 153) !important; }
|
||||
.dark .text-emerald-700 { color: rgb(52 211 153) !important; }
|
||||
.dark .text-brand-700 { color: rgb(var(--accent-400)) !important; }
|
||||
|
||||
/* Divide override for gray-50 (ChargeabilityWidget sticky headers) */
|
||||
.dark .divide-gray-50 > * + * { border-color: rgb(var(--border-subtle)) !important; }
|
||||
|
||||
/* Slate-* normalization — map to CSS variable surfaces */
|
||||
.dark .bg-slate-700,
|
||||
.dark .bg-slate-800 {
|
||||
|
||||
Reference in New Issue
Block a user