Closed yagnikvamja closed 9 months ago
The dracula
theme has only dark themes, so that:
In my documention i want both the themes light and dark . And i want to set the theme dracula
in both the modes.
In my documention i want both the themes light and dark . And i want to set the theme dracula in both the modes.
You'll need to write a dracula light theme yourself then.
@brc-dd He is trying to force dark theme in snippets even when light theme is activated in VitePress like Anu:
Anu is still using older version of docs so I'm not getting this issue ATM but I'll prefer keeping dracula in both modes as well
I guess this should be feature request instead of bug report.
Thanks for the comment @brc-dd . It's working.
It looks like according to everyone, VitePress should have option for forcing certain theme like previously we were doing.
Do you think we should consider this for feature req because everyone who want dark code snippet (even in light theme) they have to write custom CSS which was previously not the case?
Describe the bug
The dracula theme is not visible properly while doing Syntax Highlighting.
Reproduction
https://stackblitz.com/edit/vite-vnywhq?file=docs%2F.vitepress%2Fconfig.ts,docs%2Findex.md,docs%2Fexample.md
Expected behavior
Code snippet in example page should be in dracula (dark) theme.
System Info
Additional context
N/A
Validations