From cdcb7e48532ae04b20db75d117c82383fd0e230c Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 16 May 2026 19:27:07 +0200 Subject: [PATCH] style(editor): visible light-mode popup active state + plan sync MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses Important #1 + Minor #2/#3 from the Task 3 re-review: - --color-bg-popover-active light value: #f3f4f6 → #e5e7eb. The prior value was within ~1.05:1 luminance of the white surface — keyboard navigation through the autocomplete list had no visible focus indicator in light mode. e5e7eb (Tailwind gray-200) clears that. - Drop dead fallback hexes on the four guaranteed tokens (--color-string/-keyword/-number/-bg-popover-active). They never fired post-fix and only produced a dark-mode-only palette if tokens.css somehow failed to load — i.e. they were misleading. - Plan source block (Task 3 Step 2) replaced with the post-fix CSS verbatim + a new Step 2b that documents the tokens.css additions alongside the editor.css template, so a fresh regeneration produces the same file. Deferred: cross-cutting --font-mono token (Minor #4 — would touch 7+ sites outside Task 3's scope). Co-Authored-By: Claude Opus 4.7 (1M context) --- .../plans/2026-05-16-textarea-code-editor.md | 50 +++++++++++++++---- l4d2web/l4d2web/static/css/editor.css | 8 +-- l4d2web/l4d2web/static/css/tokens.css | 2 +- 3 files changed, 44 insertions(+), 16 deletions(-) diff --git a/docs/superpowers/plans/2026-05-16-textarea-code-editor.md b/docs/superpowers/plans/2026-05-16-textarea-code-editor.md index 62a1f8f..e488b54 100644 --- a/docs/superpowers/plans/2026-05-16-textarea-code-editor.md +++ b/docs/superpowers/plans/2026-05-16-textarea-code-editor.md @@ -268,6 +268,13 @@ Create `l4d2web/l4d2web/static/css/editor.css`: any