-
I'm starting with a new blank theme (choosing Custom Theme) from |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You need to add CSS: .dark .vp-code span {
color: var(--shiki-dark, inherit);
}
html:not(.dark) .vp-code span {
color: var(--shiki-light, inherit);
}
.dark div[class*='language-'] {
background: black;
} |
Beta Was this translation helpful? Give feedback.
-
My solution: Copy all files in theme-default/styles to our custom theme's Add a CSS file like @import './vars.css';
@import './base.css';
@import './icons.css';
@import './utils.css';
@import './components/custom-block.css';
@import './components/vp-code.css';
@import './components/vp-code-group.css';
@import './components/vp-doc.css';
@import './components/vp-sponsor.css';
@import "./custom.css";
And the key point is removing all Wow. Every thing works as expected~ |
Beta Was this translation helpful? Give feedback.
Button is there (that box near language) and it should work in blank theme too. You just need to style it. Markdown plugins are loaded regardless of the theme.