Expose callback for dark or light mode enabled.
complete
Alexey Pyltsyn
complete
Actually, the standard theme has a hook for achieve this, until that moment it has not been documented, but we have made that so you can use it in your own React components.
See https://v2.docusaurus.io/docs/next/theme-classic#usethemecontext
Adam Stevens
Alexey Pyltsyn: That's awesome, thanks!