Seeking a solution to convert rich text content colors into dark mode without relying on the filter:invert(1)
CSS option. Microsoft Outlook manages this conversion effectively, unlike the current method that turns magenta color into green in dark mode.
Outlook Light Mode:
https://i.sstatic.net/GSjFu.png
Outlook Dark Mode:
https://i.sstatic.net/0f8TQ.png
The goal is to understand how to perform the calculation for converting rich text background and text colors in dark mode, as an alternative to using the filter:invert
approach. Previous attempts at implementing this did not yield the expected outcome.
[JavaScript functions and jQuery code snippets provided]