JavaScript is required to toggle light/dark mode..
Note
The TRAC D.A.P. Runtime for Python is available to download and install from pypi.org.