Repository navigation
accent and tokens - #1
Open
BenjiTrapp wants to merge 2 commits into
Open
BenjiTrapp wants to merge 2 commits into
BenjiTrapp wants to merge 2 commits into
Conversation
BenjiTrapp
commented
Nov 26, 2026
Owner
- Speak the operator console's token vocabulary, and follow its accent
- test: find the app script after , not by being the first in the file
Raccoon's Den embeds this page (go:embed) and serves it under /tools/raccdrop, same origin as its operator console. Until now it spoke none of the console's language: ZERO custom properties, and its green was #00ff00 where the brand green is #00ff88 — a different colour, not a different taste. :root now declares the console's own names and values, read from static/graph.gohtml: --bg #0a0a0f, --bg-raised #111118, --bg-panel #13131c, --border, --text #e0e0e0, --text-dim #8a8aa0, --primary #00ff88, --primary-rgb, --warning and --mono. --border-accent is this page's own, for the green-tinted edge it has always had, derived from --primary-rgb so it follows the accent. 56 substitutions, and ZERO colour literals left in the operator UI: 48 hex values, 7 rgba(0,255,0,…) glows -> rgba(var(--primary-rgb), …), and one spelled-out monospace stack -> var(--mono). An accent adopter, byte-for-byte the one the console's five embedded pages carry: it reads the same localStorage pref the Settings colour picker writes, validates it as #rrggbb, sets --primary/--success/--primary-rgb on the document element, and re-runs on the storage event. No pref -> brand green. THE PART THAT NEEDED CARE. This page builds a self-contained decoy HTML in a template literal, with its own light Segoe-UI look on purpose — that is the artefact it DELIVERS, and how it looks is an operational choice, not a UI consistency one. EIGHT of the literals replaced above appear in BOTH regions (#1a3a1a, #666, #00ff00, #111, #0a0a0a, #c0ffc0, #333, #555), so a global search-and-replace would have changed the payload. The substitution was line-bounded to the operator UI instead, and the control proves it: the protected region is 87 lines / 4621 bytes with an identical SHA-256 before and after, and all eight shared literals are still present in it. One readability fix falls out rather than being aimed for: .footer-line was #333 on #0a0a0a, which measures 1.9:1 and is effectively unreadable. It is --text-dim now. Verified by looking: rendered in a headless Chrome at 1100x900. Brand green on the wordmark, the prompts, the logo glow and the EXECUTE DROP gradient; the console's surfaces; the mono face; neutral text.
…e file
build_bundle took the FIRST <script> in index.html and ran to the LAST
</script>. That was the app only as long as nothing else in the file had a
script block. Adding an accent adopter to <head> made the slice start there and
end at the app's closing tag, so the bundle contained a literal </script> and
node refused the whole thing:
test/_bundle.js:197
</script>
^
SyntaxError: Unexpected token '<'
Taking the LAST <script> instead would be worse, not better: the app embeds the
string '<script>' twice while building its payload, so that slice would begin
inside the app's own code. Measured on main: 3 <script> openings and exactly 1
</script> — two of the three are string literals, which is why the harness
already had to undo <\/script> escaping on line 51.
The app script lives in <body> (line 249 on main) and </head> is at line 177,
so searching for <script> from </head> onward names it unambiguously and is
robust to any number of head scripts.
Verified both directions: 31 passed / 0 failed with the adopter present, and 31
passed / 0 failed against an unmodified index.html, so the change is backward
compatible rather than merely sufficient for the new file.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.