Closed imsus closed 5 years ago
I'd like to have a dark theme first, starting by exposing more CSS variables 🤔
I am up for expanding the current theme with more variables and stuff. Do you guys have a nice example of a dark theme that I could "borrow" colors from lol.
How would you like to have the dark theme, by adding a class to the body, for example, that would switch the css vars?
@dobromir-hristov the only one that came to my mind is https://hyper.is/
How would you like to have the dark theme, by adding a class to the body, for example, that would switch the css vars?
LGTM. we can add the classname to root component instead and allow users to configure it via theme: 'dark'
option.
And we get the provided option from vuex? OK, should work, will try to prep something these days.
4.11.1 added dark theme support:
More css variables are exposed as well: https://docute.org/guide/customization#custom-style
Hah, the way you implemented it is super clever, nice one :)
Closing as it's resolved :)
I think it's better to have a button to switch between light/dark mode for default theme.
And further we can customize the css for dark mode itself.