What's Changed
This release has better support light/dark modes. You can specify the vegalite theme to use for light, and/or dark mode. In addition, you can specify which mkdocs-material
themes qualify as light and which as dark. This way, the charts will properly change light/dark mode, even when using custom mkdocs-material themes.
The vegalite_theme
option has been replaced with the vegalite_theme_light
option. A new integrations
option section lets you specify the mkdocs-material theme(s) that correspond with light and dark. Here are the new default settings:
# mkdocs.yml
plugins:
- charts:
vega_theme_light: default
vega_theme_dark: dark
integrations:
mkdocs_material:
themes_light:
- default
themes_dark:
- slate
Pull requests:
- Add support for custom light/dark schemes by @sisp in #23
- Add new option vega_theme_light by @timvink in #25
New Contributors
Full Changelog: v0.0.11...v0.0.12