Keep the Connect Oficina button's colours in tokens
app.css draws every colour from a token (TestStylesheetThemes). The button's teal-into-violet glass, its ink, edge and shine are now --go tokens in :root, the same in both themes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+14
−5
internal/look/static/app.css+14 −5
diff --git a/internal/look/static/app.css b/internal/look/static/app.css| index 25aa5d5..4369ef2 100644 |
| --- a/internal/look/static/app.css |
| +++ b/internal/look/static/app.css |
| @@ -132,6 +132,15 @@ |
| --edge-glow-b: rgba(139,92,246,.45); |
| --spk-rose: #F9A8D4; |
| --spk-amber: #FFC48A; |
| + /* The Connect Oficina button: coloured glass, teal into violet, the same |
| + in both themes (white on either end is over 4.5:1), with a white edge |
| + and shine. */ |
| + --go-1: rgba(10,122,116,.94); |
| + --go-2: rgba(106,63,214,.94); |
| + --go-ink: #FFFFFF; |
| + --go-edge: rgba(255,255,255,.22); |
| + --go-edge-hover: rgba(255,255,255,.4); |
| + --go-shine: rgba(255,255,255,.35); |
| } |
| :root[data-theme="light"] { |
| color-scheme: light; --sky-stop: 55%; --glass-lift: -22px; |
| @@ -665,18 +674,18 @@ aside.ask-panel { position: absolute; top: 16px; right: 16px; bottom: 16px; widt |
| border-left: 2px solid var(--pill-edge); border-bottom: 2px solid var(--pill-edge); border-bottom-left-radius: 10px; } |
| /* Connecting Oficina: a button at the end of the Assistant's reply that |
| asked for it. Coloured glass, teal into violet (white on either is over |
| - 4.5:1, in both themes), the Oficina mark at its start, and under it a |
| + 4.5:1, in both themes: the --go tokens), the Oficina mark at its start, and under it a |
| quiet line saying what it unlocks. Connected, a quiet line with a tick. |
| On its own (no reply to end) it sits where a reply would. */ |
| .connect-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; white-space: normal; } |
| .connect-offer.loose { align-self: flex-start; margin-top: 0; padding-left: 4px; } |
| .thread .connect-offer a.connect-btn { height: auto; min-height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 20px 0 8px; |
| - border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; color: #FFFFFF; text-decoration: none; |
| - background: linear-gradient(120deg, rgba(10,122,116,.94), rgba(106,63,214,.94)); |
| - box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -12px var(--edge-glow-b); |
| + border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--go-ink); text-decoration: none; |
| + background: linear-gradient(120deg, var(--go-1), var(--go-2)); |
| + box-shadow: inset 0 0 0 1px var(--go-edge), inset 0 1px 0 var(--go-shine), 0 10px 22px -12px var(--edge-glow-b); |
| transition: box-shadow .2s, filter .2s; } |
| .thread .connect-offer a.connect-btn:hover { filter: brightness(1.08); |
| - box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), inset 0 1px 0 rgba(255,255,255,.35), 0 12px 26px -10px var(--edge-glow-a); } |
| + box-shadow: inset 0 0 0 1px var(--go-edge-hover), inset 0 1px 0 var(--go-shine), 0 12px 26px -10px var(--edge-glow-a); } |
| .thread .connect-offer a.connect-btn:focus-visible { outline-offset: 3px; } |
| .connect-mark { flex: none; width: 32px; height: 32px; } |
| .connect-offer .connect-line { margin: 0 0 0 8px; color: var(--haze); font-size: 13.5px; line-height: 1.4; } |