Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix invisible ToggleSwitch off-state on Phosphor Paper and other day themes
[._.]/ Adam Eivy4f59e136699b
diff --git a/client/src/components/ToggleSwitch.jsx b/client/src/components/ToggleSwitch.jsxindex 215910941b..26220a8aec 100644--- a/client/src/components/ToggleSwitch.jsx+++ b/client/src/components/ToggleSwitch.jsx@@ -21,7 +21,7 @@ export default function ToggleSwitch({ enabled, onChange, disabled, ariaLabel, s}`} />);const trackClass = `relative inline-flex ${s.track} items-center rounded-full transition-colors shrink-0 ${- enabled ? activeColor : 'bg-gray-600'+ enabled ? activeColor : 'port-toggle-track-off'} border border-port-border/60 shadow-sm ${disabled ? 'opacity-50' : ''} ${className}`;// Decorative mode renders as a <span> so it can sit inside another <button>diff --git a/client/src/index.css b/client/src/index.cssindex fa8cb0d5a9..8eb4e81cb1 100644--- a/client/src/index.css+++ b/client/src/index.css@@ -508,6 +508,18 @@ html[data-port-theme-mode="day"] :is(.bg-gray-700, .bg-zinc-700, .bg-neutral-700background-color: var(--port-control-bg) !important;}+/* Toggle off-state track. The global bg-gray-600 → --port-control-bg remap+ above turns ToggleSwitch's inactive track into the same cream as the page,+ making the toggle (and its white knob) nearly invisible on light themes+ like Phosphor Paper. This class keeps the dark-theme gray-600 look while+ swapping to a contrasting muted tone in day mode. */+.port-toggle-track-off {+ background-color: rgb(75 85 99);+}+html[data-port-theme-mode="day"] .port-toggle-track-off {+ background-color: rgb(var(--port-text-muted) / 0.7) !important;+}+html[data-port-theme-mode="day"] :is(.bg-gray-500, .bg-zinc-500, .bg-neutral-500, .bg-slate-500) {background-color: var(--port-control-bg-hover) !important;}