sandoche / Darkmode.js

🌓 Add a dark-mode / night-mode to your website in a few seconds
https://darkmodejs.learn.uno
MIT License
2.72k stars 176 forks source link

Emojis change its color in dark mode #18

Closed martincomito closed 4 years ago

martincomito commented 4 years ago

I have a GatsbyJS blog and I can't make the emojis remain their original color in the dark mode, I tried everything from the darkmodejs documentation but I still can't achieve it. Is there any way to add the darkmode-ignore css class to an emoji in the markdown text?

Thanks!

martincomito commented 4 years ago

After a few moments I realised that I have been using className instead of class to define the emoji class in the markdown file. React is killing my mind. My mistake

turkyden commented 3 years ago

Here is react-darkreader.

https://react-darkreader.vercel.app/