mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #217] [CLOSED] bugfix: Replace hardcoded dark colors with CSS theme variables for light mode support #4512
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#4512
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/217
Author: @Javedz678
Created: 4/24/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (2)
be9523bbugfix: Remove hardcoded darkmode9acc060Merge branch 'main' into main📊 Changes
15 files changed (+280 additions, -266 deletions)
View changed files
📝
packages/client/src/components/chat/ChatInput.tsx(+14 -14)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+26 -21)📝
packages/client/src/components/chat/ConversationInput.tsx(+3 -3)📝
packages/client/src/components/chat/ConversationMessage.tsx(+4 -4)📝
packages/client/src/components/chat/ConversationView.tsx(+23 -28)📝
packages/client/src/components/chat/CyoaChoices.tsx(+10 -10)📝
packages/client/src/components/chat/EncounterModal.tsx(+21 -21)📝
packages/client/src/components/chat/HomeFaq.tsx(+17 -17)📝
packages/client/src/components/chat/RoleplayHUD.tsx(+21 -21)📝
packages/client/src/components/chat/RoleplayHUDPanels.tsx(+72 -70)📝
packages/client/src/components/game/GameInput.tsx(+14 -14)📝
packages/client/src/components/game/GameNarration.tsx(+29 -24)📝
packages/client/src/components/game/GameSetupWizard.tsx(+3 -3)📝
packages/client/src/components/game/GameSurface.tsx(+16 -14)📝
packages/client/src/styles/globals.css(+7 -2)📄 Description
Make UI clean and readable
Why this change
User raised bug.
All UI was built dark-first with hardcoded white/, bg-black/, and #1a1a2e values. Switching to light mode made text invisible, backgrounds black, and borders disappear throughout.
What changed
Replaced hardcoded dark colors with CSS variable equivalents (var(--foreground), var(--card), var(--border), var(--muted)) + dark: fallbacks across 15 files
Scoped .rpg-chat-area .mari-message-content to keep RP message text light on its always-dark background regardless of theme
Suppressed the default dark chat gradient in light mode (ConversationView)
Extracted repeated class strings into named constants to eliminate duplication (SURFACE_BTN, NARRATION_ACTION_BTN, HEADER_BTN, EMPTY_STATE, PANEL_BACKDROP/PANEL_CONTAINER)
Fixed purple-300 active states (agent processing, EchoChamber, Characters widget) to use purple-600 dark:purple-300 for legible contrast on light backgrounds
Validation
pnpm checkManual verification notes
Visually confirmed UI wherever changes were made.
Docs and release impact
UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.