slidev-theme-penguin icon indicating copy to clipboard operation
slidev-theme-penguin copied to clipboard

Light theme doesn't work

Open xaperret opened this issue 1 year ago • 2 comments

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 avatar Mar 24 '23 13:03 xaperret

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 avatar Mar 24 '23 19:03 xaperret

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.

xaperret avatar Mar 24 '23 20:03 xaperret