We had hard times fixing the Google Docs dark mode. For quite a while, it was flashing when you were typing, but no more! It is finally solved.
There is much work to be done to improve the Google Docs dark mode. One of the things we are struggling is to keep the original colors (when highlighting something) from being converted.