[GH-ISSUE #6839] Default --muted-foreground is pink/lavender and ignores chroma; message marks popover and help legend affected #3833

Closed
opened 2026-10-21 06:07:59 +07:00 by bsakaguchi · 2 comments
Owner

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:

  • the pin hint, "Keeps pinned messages past the history limit…" (ui.chat.messagemarks.pinHint)
  • the private note placeholder, "Only you can see this. It is never sent to the model." (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.tsx styles the popover's contents with global theme tokens instead of the chat-chrome tokens:

  • The pin hint uses text-[var(--muted-foreground)].
  • FIELD_CLASS, used by the bookmark label input and the private note textarea, uses placeholder:text-[var(--muted-foreground)], border-[var(--border)], bg-[var(--background)], text-[var(--foreground)] and focus:border-[var(--primary)].
  • POPOVER_CLASS sets the body text with text-[var(--foreground)]. The active Bookmark, Pin and Note icons use text-[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-foreground is pink/lavender

The 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 to var(--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

  • The default theme's --muted-foreground stops being pink/lavender, in dark and light. Either derive it from the chroma/chrome text color (for example var(--marinara-chat-chrome-panel-muted), or an equivalent color-mix of the chroma text color) or use a neutral grey. Check contrast against --background in both themes.
  • Secondary text and placeholders use --marinara-chat-chrome-panel-muted, like other chat popovers. Body text uses --marinara-chat-chrome-panel-text.
  • Fields and active-state icons use the matching chat-chrome tokens, so the popover follows the chroma setting.
  • ChatHelpOverlay.tsx → ACTIONS_BY_MODE gets a Bookmark entry, with a new chat.help.actions.* key in the English catalog, for both conversation and roleplay. The button appears in both modes (ChatMessage.tsx and ConversationMessageActions.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

  • With the default theme, muted text is no longer pink/lavender in dark or light mode, and it still meets contrast on the default backgrounds.
  • Changing the chroma setting recolors the pin hint, the note placeholder, the fields and the active icons in the marks popover.
  • The Help layout legend lists the Bookmark action in Conversation and Roleplay.
  • pnpm localization:check passes, with English catalog updates only.
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: - the pin hint, "Keeps pinned messages past the history limit…" (`ui.chat.messagemarks.pinHint`) - the private note placeholder, "Only you can see this. It is never sent to the model." (`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.tsx` styles the popover's contents with global theme tokens instead of the chat-chrome tokens: - The pin hint uses `text-[var(--muted-foreground)]`. - `FIELD_CLASS`, used by the bookmark label input and the private note textarea, uses `placeholder:text-[var(--muted-foreground)]`, `border-[var(--border)]`, `bg-[var(--background)]`, `text-[var(--foreground)]` and `focus:border-[var(--primary)]`. - `POPOVER_CLASS` sets the body text with `text-[var(--foreground)]`. The active Bookmark, Pin and Note icons use `text-[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-foreground` is pink/lavender The 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 to `var(--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 - The default theme's `--muted-foreground` stops being pink/lavender, in dark and light. Either derive it from the chroma/chrome text color (for example `var(--marinara-chat-chrome-panel-muted)`, or an equivalent `color-mix` of the chroma text color) or use a neutral grey. Check contrast against `--background` in both themes. - Secondary text and placeholders use `--marinara-chat-chrome-panel-muted`, like other chat popovers. Body text uses `--marinara-chat-chrome-panel-text`. - Fields and active-state icons use the matching chat-chrome tokens, so the popover follows the chroma setting. - `ChatHelpOverlay.tsx` → `ACTIONS_BY_MODE` gets a Bookmark entry, with a new `chat.help.actions.*` key in the English catalog, for both **conversation** and **roleplay**. The button appears in both modes (`ChatMessage.tsx` and `ConversationMessageActions.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 - [ ] With the default theme, muted text is no longer pink/lavender in dark or light mode, and it still meets contrast on the default backgrounds. - [ ] Changing the chroma setting recolors the pin hint, the note placeholder, the fields and the active icons in the marks popover. - [ ] The Help layout legend lists the Bookmark action in Conversation and Roleplay. - [ ] `pnpm localization:check` passes, with English catalog updates only.
bsakaguchi 2026-10-21 06:07:59 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 29, 2026):

SpicyMarinara / Codex is addressing this in draft #6841, reusing the existing chat chrome tokens and Help legend.

<!-- gh-comment-id:5888340470 --> @SpicyMarinara commented on GitHub (Sep 29, 2026): SpicyMarinara / Codex is addressing this in draft #6841, reusing the existing chat chrome tokens and Help legend.
Author
Owner

@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.

<!-- gh-comment-id:5889203581 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3833
No description provided.