mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6839] Default --muted-foreground is pink/lavender and ignores chroma; message marks popover and help legend affected #3833
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3833
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Sep 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6839
Originally assigned to: @SpicyMarinara on GitHub.
What happens
The popover from the Bookmark, pin or note message action ignores the chat chroma setting. Two pieces of text keep a fixed pink/lavender tint, whatever chroma color is selected:
ui.chat.messagemarks.pinHint)ui.chat.messagemarks.privateNotePlaceholder)The Bookmark action is also missing from the chat Help layout legend, so nothing there explains it.
Cause
packages/client/src/components/chat/MessageMarks.tsxstyles the popover's contents with global theme tokens instead of the chat-chrome tokens:text-[var(--muted-foreground)].FIELD_CLASS, used by the bookmark label input and the private note textarea, usesplaceholder:text-[var(--muted-foreground)],border-[var(--border)],bg-[var(--background)],text-[var(--foreground)]andfocus:border-[var(--primary)].POPOVER_CLASSsets the body text withtext-[var(--foreground)]. The active Bookmark, Pin and Note icons usetext-[var(--primary)].The popover's frame already uses chrome tokens (
--marinara-chat-chrome-panel-bg,-panel-border,-panel-divider,-highlight-bg-hover,-focus-ring), so the text and fields inside it don't match the frame.Root cause: the default
--muted-foregroundis pink/lavenderThe popover is only the most visible case. The default theme hard-codes a purple muted color in
packages/client/src/styles/globals.css:[data-theme="dark"]:--muted-foreground: #d4adfc(lavender)[data-theme="light"]:--muted-foreground: #7a64a0(purple)The SillyTavern theme (
styles/themes/sillytavern.css) already uses neutral greys (#8888a0/#606078). Only the chrome scopes (.mari-chrome-token-scope,.mari-settings-panel-chrome,.mari-chat-settings-inline-editor) remap it tovar(--marinara-chat-chrome-panel-muted), which follows the chroma setting. Everywhere else, muted text stays pink/lavender whatever chroma is selected.var(--muted-foreground)appears about 3,170 times in about 250 client files, so changing the base value recolors muted text across the whole app. It should be done on purpose and checked visually.Expected
--muted-foregroundstops being pink/lavender, in dark and light. Either derive it from the chroma/chrome text color (for examplevar(--marinara-chat-chrome-panel-muted), or an equivalentcolor-mixof the chroma text color) or use a neutral grey. Check contrast against--backgroundin both themes.--marinara-chat-chrome-panel-muted, like other chat popovers. Body text uses--marinara-chat-chrome-panel-text.ChatHelpOverlay.tsx→ACTIONS_BY_MODEgets a Bookmark entry, with a newchat.help.actions.*key in the English catalog, for both conversation and roleplay. The button appears in both modes (ChatMessage.tsxandConversationMessageActions.tsx). The entry should say that it bookmarks a message, pins it so it stays in context past the history limit, and adds a private note the model never sees.Acceptance
pnpm localization:checkpasses, with English catalog updates only.@SpicyMarinara commented on GitHub (Sep 29, 2026):
SpicyMarinara / Codex is addressing this in draft #6841, reusing the existing chat chrome tokens and Help legend.
@SpicyMarinara commented on GitHub (Sep 29, 2026):
Implemented and merged to staging in #6841 (
a10ee75c5). Default muted text is neutral, message marks follow Chroma with stronger light-theme active icons, and both chat Help legends explain marks. Desktop/mobile Chromium and WebKit checks passed.