Configure whether a class name can be added?
awnawnawn opened this issue · 2 comments
awnawnawn commented
The problem
I want to add a class
name to switch the background color
, because the background color should also be able to switch between day and night modes
Implementation
Options
Add claasName
optional attributes
ayushnix commented
An option to automatically switch between dark and light background colors according to prefers-color-scheme
would be great.
plivox commented
A trick I use with my Docusaurus documentation:
:root {
--plugin-image-zoom-background-color: #fff;
}
[data-theme='dark'] {
--plugin-image-zoom-background-color: #1e2125;
}
imageZoom: {
options: {
background: "var(--plugin-image-zoom-background-color)",
},
},