Closed jthegedus closed 5 years ago
Maybe allow the cssVariables
option to be a function:
new Docute({
cssVariables(theme) {
return theme === 'dark' ? {} : {}
}
})
wdyt?
Would that be used like this?
return theme === 'dark' ? {
--success-color: #42b983;
} : {
--success-color: #008000,
}
Could you elaborate on that a bit more?
check out the link in my previous comment
I did, must have been a cached version of the site as that subheading wasn't there. Opening in a different browser showed the linked section.
Looks like a good solution to me!
:tada: This issue has been resolved in version 4.12.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Mate, you work fast! Thanks so much :tada:
Love the new Dark mode #189 support. As an addition, it would be awesome if we could provide two
.css
files each containing separate:root{}
css variables for our own custom light/dark theme customization:If this is already possible via the existing setup and I've misunderstood, I apologize for the noise.