Fix hardcoded colors for darkmode compatibility #5233
Closed
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.
Description
This PR resolves dark mode readability issues by replacing hardcoded color values (e.g., hex codes,
text-black
without dark variants) with semantic Tailwind CSS classes and their corresponding dark mode variants. This ensures all text, backgrounds, and UI elements adapt correctly to the user's selected theme, improving consistency and accessibility.How Has This Been Tested?
Visually verified all affected components in both light and dark modes to ensure correct color rendering and readability.
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.
Slack Thread
Summary by cubic
Replaced hardcoded color values with semantic Tailwind classes and dark mode variants to fix dark mode readability and ensure consistent theming across the app.