Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kowyo opened this issue Jul 13, 2023 · 4 comments
Closed

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

kowyo opened this issue Jul 13, 2023 · 4 comments

Comments

@kowyo
Copy link

kowyo commented Jul 13, 2023

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
Copy link

Try to set data-theme to auto.

@kowyo
Copy link
Author

kowyo commented Aug 1, 2023

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
Copy link

DannySu09 commented Aug 1, 2023

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
Copy link
Author

kowyo commented Aug 1, 2023

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~

@kowyo kowyo closed this as completed Aug 1, 2023
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

No branches or pull requests

2 participants