alvarosabu / slidev-theme-penguin

A Penguin 🐧 theme for Slidev
https://slidev-theme-penguin.alvarosaburido.dev/
152 stars 49 forks source link

Light theme doesn't work #32

Open xaperret opened 1 year ago

xaperret commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.