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
Harden high-opacity semantic control states
[._.]/ Adam Eivy75a8333085c8
diff --git a/client/src/index.css b/client/src/index.cssindex 493ae51210..839ac4d906 100644--- a/client/src/index.css+++ b/client/src/index.css@@ -628,6 +628,111 @@ html[data-port-theme] :is(color: rgb(var(--port-on-error)) !important;}+/* A semantic tint stops being a tonal surface at 40% opacity. Existing+ controls still use surface-text classes on those high-opacity states, so+ promote the fill and its semantic text together. The state-aware selectors+ include Tailwind's variant prefix; matching the class without its pseudo+ state would make a hover fill active before the pointer arrives. */+html[data-port-theme] :is(+ [class~="bg-port-accent/40"], [class~="bg-port-accent/50"], [class~="bg-port-accent/60"],+ [class~="bg-port-accent/70"], [class~="bg-port-accent/75"], [class~="bg-port-accent/80"],+ [class~="bg-port-accent/90"], [class~="bg-port-accent/95"], [class~="bg-port-accent/100"],+ [class*="hover:bg-port-accent/4"]:hover, [class*="hover:bg-port-accent/5"]:hover,+ [class*="hover:bg-port-accent/6"]:hover, [class*="hover:bg-port-accent/7"]:hover,+ [class*="hover:bg-port-accent/8"]:hover, [class*="hover:bg-port-accent/9"]:hover,+ [class*="hover:bg-port-accent/100"]:hover,+ [class*="active:bg-port-accent/4"]:active, [class*="active:bg-port-accent/5"]:active,+ [class*="active:bg-port-accent/6"]:active, [class*="active:bg-port-accent/7"]:active,+ [class*="active:bg-port-accent/8"]:active, [class*="active:bg-port-accent/9"]:active,+ [class*="active:bg-port-accent/100"]:active+):is(+ [class~="text-port-accent"], [class^="text-port-accent/"], [class*=" text-port-accent/"],+ [class*="text-cyan-"], [class*="text-sky-"], [class*="text-blue-"], [class*="text-indigo-"]+) {+ background-color: rgb(var(--port-accent)) !important;+ color: rgb(var(--port-on-accent)) !important;+}++html[data-port-theme] :is(+ [class~="bg-port-accent-2/40"], [class~="bg-port-accent-2/50"], [class~="bg-port-accent-2/60"],+ [class~="bg-port-accent-2/70"], [class~="bg-port-accent-2/75"], [class~="bg-port-accent-2/80"],+ [class~="bg-port-accent-2/90"], [class~="bg-port-accent-2/95"], [class~="bg-port-accent-2/100"],+ [class*="hover:bg-port-accent-2/4"]:hover, [class*="hover:bg-port-accent-2/5"]:hover,+ [class*="hover:bg-port-accent-2/6"]:hover, [class*="hover:bg-port-accent-2/7"]:hover,+ [class*="hover:bg-port-accent-2/8"]:hover, [class*="hover:bg-port-accent-2/9"]:hover,+ [class*="hover:bg-port-accent-2/100"]:hover,+ [class*="active:bg-port-accent-2/4"]:active, [class*="active:bg-port-accent-2/5"]:active,+ [class*="active:bg-port-accent-2/6"]:active, [class*="active:bg-port-accent-2/7"]:active,+ [class*="active:bg-port-accent-2/8"]:active, [class*="active:bg-port-accent-2/9"]:active,+ [class*="active:bg-port-accent-2/100"]:active+):is(+ [class~="text-port-accent-2"], [class^="text-port-accent-2/"], [class*=" text-port-accent-2/"],+ [class*="text-violet-"], [class*="text-purple-"], [class*="text-fuchsia-"], [class*="text-pink-"]+) {+ background-color: rgb(var(--port-accent-2)) !important;+ color: rgb(var(--port-on-accent-2)) !important;+}++html[data-port-theme] :is(+ [class~="bg-port-success/40"], [class~="bg-port-success/50"], [class~="bg-port-success/60"],+ [class~="bg-port-success/70"], [class~="bg-port-success/75"], [class~="bg-port-success/80"],+ [class~="bg-port-success/90"], [class~="bg-port-success/95"], [class~="bg-port-success/100"],+ [class*="hover:bg-port-success/4"]:hover, [class*="hover:bg-port-success/5"]:hover,+ [class*="hover:bg-port-success/6"]:hover, [class*="hover:bg-port-success/7"]:hover,+ [class*="hover:bg-port-success/8"]:hover, [class*="hover:bg-port-success/9"]:hover,+ [class*="hover:bg-port-success/100"]:hover,+ [class*="active:bg-port-success/4"]:active, [class*="active:bg-port-success/5"]:active,+ [class*="active:bg-port-success/6"]:active, [class*="active:bg-port-success/7"]:active,+ [class*="active:bg-port-success/8"]:active, [class*="active:bg-port-success/9"]:active,+ [class*="active:bg-port-success/100"]:active+):is(+ [class~="text-port-success"], [class^="text-port-success/"], [class*=" text-port-success/"],+ [class*="text-lime-"], [class*="text-green-"], [class*="text-emerald-"], [class*="text-teal-"]+) {+ background-color: rgb(var(--port-success)) !important;+ color: rgb(var(--port-on-success)) !important;+}++html[data-port-theme] :is(+ [class~="bg-port-warning/40"], [class~="bg-port-warning/50"], [class~="bg-port-warning/60"],+ [class~="bg-port-warning/70"], [class~="bg-port-warning/75"], [class~="bg-port-warning/80"],+ [class~="bg-port-warning/90"], [class~="bg-port-warning/95"], [class~="bg-port-warning/100"],+ [class*="hover:bg-port-warning/4"]:hover, [class*="hover:bg-port-warning/5"]:hover,+ [class*="hover:bg-port-warning/6"]:hover, [class*="hover:bg-port-warning/7"]:hover,+ [class*="hover:bg-port-warning/8"]:hover, [class*="hover:bg-port-warning/9"]:hover,+ [class*="hover:bg-port-warning/100"]:hover,+ [class*="active:bg-port-warning/4"]:active, [class*="active:bg-port-warning/5"]:active,+ [class*="active:bg-port-warning/6"]:active, [class*="active:bg-port-warning/7"]:active,+ [class*="active:bg-port-warning/8"]:active, [class*="active:bg-port-warning/9"]:active,+ [class*="active:bg-port-warning/100"]:active+):is(+ [class~="text-port-warning"], [class^="text-port-warning/"], [class*=" text-port-warning/"],+ [class*="text-orange-"], [class*="text-amber-"], [class*="text-yellow-"]+) {+ background-color: rgb(var(--port-warning)) !important;+ color: rgb(var(--port-on-warning)) !important;+}++html[data-port-theme] :is(+ [class~="bg-port-error/40"], [class~="bg-port-error/50"], [class~="bg-port-error/60"],+ [class~="bg-port-error/70"], [class~="bg-port-error/75"], [class~="bg-port-error/80"],+ [class~="bg-port-error/90"], [class~="bg-port-error/95"], [class~="bg-port-error/100"],+ [class*="hover:bg-port-error/4"]:hover, [class*="hover:bg-port-error/5"]:hover,+ [class*="hover:bg-port-error/6"]:hover, [class*="hover:bg-port-error/7"]:hover,+ [class*="hover:bg-port-error/8"]:hover, [class*="hover:bg-port-error/9"]:hover,+ [class*="hover:bg-port-error/100"]:hover,+ [class*="active:bg-port-error/4"]:active, [class*="active:bg-port-error/5"]:active,+ [class*="active:bg-port-error/6"]:active, [class*="active:bg-port-error/7"]:active,+ [class*="active:bg-port-error/8"]:active, [class*="active:bg-port-error/9"]:active,+ [class*="active:bg-port-error/100"]:active+):is(+ [class~="text-port-error"], [class^="text-port-error/"], [class*=" text-port-error/"],+ [class*="text-red-"], [class*="text-rose-"]+) {+ background-color: rgb(var(--port-error)) !important;+ color: rgb(var(--port-on-error)) !important;+}+/* Solid legacy semantic fills are aliases too. This covers provider/statusbuttons whose class names still come from a data-driven palette (for example`bg-purple-500 text-white`) while leaving low-opacity decorative tints alone.diff --git a/docs/themes/README.md b/docs/themes/README.mdindex 7ba04302db..53fb64083c 100644--- a/docs/themes/README.md+++ b/docs/themes/README.md@@ -17,7 +17,7 @@ New UI should use semantic PortOS tokens wherever possible:- Filled-control ink: pair each semantic fill with its matching `text-port-on-*` token (`text-port-on-accent`, `text-port-on-accent-2`, `text-port-on-success`, `text-port-on-warning`, or `text-port-on-error`). These are intentionally separate from the surface-text tokens.- Surfaces: prefer `bg-port-card border border-port-border rounded-lg` for panels and `bg-port-bg border border-port-border rounded-lg` for inset controls.- Controls: inputs, textareas, and selects should use `bg-port-bg border border-port-border`; theme CSS supplies the material, radius, and focus behavior.-- Buttons: use `bg-port-accent text-port-on-accent` for filled primary actions, `bg-port-border text-port-text-muted hover:text-port-text` for neutral actions, and `bg-port-*/20 text-port-*` for tonal status actions. Legacy `text-white`, `text-gray-*`, and solid semantic Tailwind hue utilities remain supported through the shared compatibility layer, but new code should use the semantic tokens directly.+- Buttons: use `bg-port-accent text-port-on-accent` for filled primary actions, `bg-port-border text-port-text-muted hover:text-port-text` for neutral actions, and `bg-port-*/20 text-port-*` for tonal status actions. Keep tonal fills at 30% or below when using surface-semantic ink; 40% and above is treated as a filled state and must pair with `text-port-on-*`. Legacy `text-white`, `text-gray-*`, and solid semantic Tailwind hue utilities remain supported through the shared compatibility layer, but new code should use the semantic tokens directly.- Icons: use the existing lucide icon style and let `text-port-accent` carry theme identity.- Charts: use `rgb(var(--port-chart-1))` through `rgb(var(--port-chart-4))` for series and `rgb(var(--port-chart-grid) / 0.34)` for grid lines.- Terminal/log output: use `var(--port-terminal-bg)` and `var(--port-terminal-text)` when authoring custom CSS.