Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(dashboard): correct two stale theme comments in App.css

Yudhi Armyndharisbb50bd3af633
diff --git a/dashboard/src/App.css b/dashboard/src/App.css
index 2b7209fe7..a5f351c5f 100644
--- a/dashboard/src/App.css
+++ b/dashboard/src/App.css
@@ -69,8 +69,9 @@
@media (prefers-color-scheme: dark) {
:root:not([data-theme='light']) {
/* Match native controls (e.g. the Login page <select> option popup) to the dark theme.
- The Login screen never sets data-theme, so it relies solely on this block — without an
- explicit color-scheme the popup rendered light, leaving the light option text illegible (#249). */
+ Unless a light or dark theme is stored (main.tsx applies it before first paint), the Login screen
+ has no data-theme and relies solely on this block: without an explicit color-scheme the popup
+ rendered light, leaving the light option text illegible (#249). */
color-scheme: dark;
--bg-light: #0f172a;
--bg-white: #1e293b;
@@ -86,7 +87,7 @@
--success-text: var(--success);
--warning-text: var(--warning);
--primary-soft: color-mix(in srgb, var(--primary) 18%, transparent);
- /* Must be restated here, not inherited: the light value (#17833f) measures 3.03:1 on Slate 800
+ /* Must be restated here, not inherited: the light value (#17813e) measures 2.96:1 on Slate 800
and would fail worse than the brand green it replaced. On dark the brand green is 7.38:1. */
--primary-text: var(--primary);
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);