diff --git a/web/src/App.css b/web/src/App.css index c78a96e..ab37fad 100644 --- a/web/src/App.css +++ b/web/src/App.css @@ -1,4 +1,11 @@ -.ts-app { +/* Wrapped in :where() so these three variable-defining rules carry ZERO + specificity. That's deliberate: a user-authored custom theme (injected + later as a plain `.ts-app { --accent: ... }` rule) has real specificity + and must always win here, regardless of which of these three blocks would + otherwise apply. Every other selector in this file is untouched, so the + normal cascade elsewhere (including .ts-app.ts-design-nova's non-variable + rules further down) still works exactly as before. */ +:where(.ts-app) { --bg: #ffffff; --bg-toolbar-1: #f5f6f8; --bg-toolbar-2: #dfe2e6; @@ -40,7 +47,7 @@ 0 0 40px rgba(0, 0, 0, 0.5); } -.ts-app.ts-theme-dark { +:where(.ts-app.ts-theme-dark) { --bg: #1e1f22; --bg-toolbar-1: #2b2d31; --bg-toolbar-2: #232428; @@ -67,7 +74,7 @@ /* Nova: alternate design, independent of the light/dark toggle (always dark). */ @import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap"); -.ts-app.ts-design-nova { +:where(.ts-app.ts-design-nova) { --success: oklch(0.75 0.15 150); --bg: oklch(0.17 0.014 258); --bg-toolbar-1: oklch(0.205 0.015 258); @@ -2419,6 +2426,74 @@ color: var(--text-muted); } +/* Custom-theme cards are a
(built-ins are a plain