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

Light theme doesn't work #32

Open
xaperret opened this issue Mar 24, 2023 · 2 comments
Open

Light theme doesn't work #32

xaperret opened this issue Mar 24, 2023 · 2 comments

Comments

@xaperret
Copy link

Hi, I love the theme but I can't figure out how to make the light theme to work. Is there any thing to do apart from theme: penguin ? The light theme seems to be black which doesn't really make sense as you can see in the picture.

I just added the two packages necessary to make it works like in the documentation and the config file at the root.
doesnotwork

@xaperret
Copy link
Author

It seems that the --slidev-slide-container-background: black; is responsible for this behavior. When I cloned this repo it worked. But when I used the method of changing the theme to penguin it didn't.

Changing manually the --slidev-slide-container-background: black; to white does seem to fix the problem. Not sure why there is this problem because in the repo version it is set to --slidev-slide-container-background: black; but there are no problems.

@xaperret
Copy link
Author

xaperret commented Mar 24, 2023

Ok so it seems to be unocss config related, I added

<style>
   :root {
      --slidev-controls-foreground: black !important;
      --slidev-slide-container-background: transparent !important;
    }
</style>

to my slides.md file. Not pretty but it works while someone smarter than me figures out why it's happening.

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

1 participant