djyde / cusdis

lightweight, privacy-friendly alternative to Disqus.
https://cusdis.com
GNU General Public License v3.0
2.63k stars 230 forks source link

Error: text color is not loaded properly in dark mode. #253

Closed kowyo closed 1 year ago

kowyo commented 1 year ago

The link to the website is https://www.huang-zifeng.com/

Please let me know if I could offer any details of the error.

image

DannySu09 commented 1 year ago

Try to set data-theme to auto.

kowyo commented 1 year ago

Thanks, it does work. But it is kind of different with the demo shown on cusdis.com(the background seems inconsistent). Can I just inverse the color of the text but the background remains? Thanks in advance for any advice given. image

DannySu09 commented 1 year ago

Thanks, it does work. But it is kind of different with the demo shown on cusdis.com(the background seems inconsistent). Can I just inverse the color of the text but the background remains? Thanks in advance for any advice given. image

Hi, I happened being trapped on the same problem. I found it's due the style="color-scheme: dark;" on the html element inside the iframe. Remove the statement here solved my problem.

kowyo commented 1 year ago

Thank you! But it seems that I will need to deploy cusdis myself to modify the html element, make it a little inconvenient for hosted-service user. Hope someone could PR it. Anyway, this issue is fixed for me, thanks again~