slidevjs / slidev

Presentation Slides for Developers
https://sli.dev
MIT License
33.49k stars 1.37k forks source link

Custom styles not being applied #338

Closed jahirfiquitiva closed 3 years ago

jahirfiquitiva commented 3 years ago

Describe the bug Hello, I am currently trying to override the colors for code snippets using prism highlighter. The documentation is limited and doesn't say much.

I already have applied the changes with what the prism-theme-vars repo say, and also based on some theme styles I found. But it isn't working as expected, as my custom styles are not being imported.

Shot 2021-09-01 at 11-51-37@2x

Shot 2021-09-01 at 11-52-10@2x

Desktop (please complete the following information):

jahirfiquitiva commented 3 years ago

Solved by putting all the --prism variables again like so:

.dark {
    --prism-foreground: var(--text-primary);
    --prism-background: var(--primary);
    ...
}