Skip to content

[bugfix] Preserve inline text colors and images in dark mode - #16

Open
pratham-patel-5044 wants to merge 7 commits into
masterfrom
bugfix/preserve-inline-colors-dark-mode
Open

pratham-patel-5044 wants to merge 7 commits into
masterfrom
bugfix/preserve-inline-colors-dark-mode

Conversation

@pratham-patel-5044

Copy link
Copy Markdown

Summary

  • Remove filter: invert(1) hue-rotate(.5turn) from #rich-editor-wrapper and img in dark mode
  • Set color: #FFFFFF on #rich-editor-wrapper so unstyled text adapts to dark background

Problem

The CSS filter inverts and hue-rotates all rendered pixels inside the editor, distorting user-chosen font colors, pasted content colors, and images in dark mode.

Fix

Replace the filter with color: #FFFFFF for default text. Inline-styled colors and images now display accurately in both light and dark mode.

@pratham-patel-5044
pratham-patel-5044 force-pushed the bugfix/preserve-inline-colors-dark-mode branch from a406983 to f77f75b Compare September 18, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant