Global website theme
The theme switcher is a component allowing you to change the global theme of your website easily.
By default, Axentix handles the dark theme.
You still need to create your theme, the theme switcher is only made to help you switch between your themes.
Three themes are already working :
- System (automatically choosing between dark and light depending on the system preferences)
To enable the theme component, use the
To handle theme switching, use the
Use the theme mixin to set css depending on
the actual theme.
Here is the docs navbar theme handling example :
|Toggles the theme with the name as parameter.
|Enable the theme handling component.
|Disable the theme handling component.
|Event sent when the theme has been changed.