JavaScript is required to toggle light/dark mode..
Wagtail CRX includes some built-in snippet models which provide common website functionality.
Wagtail CRX follows the Wagtail philosophy when it comes to snippets (viewable here).