Add w3-dark-mode to the body to give the page a dark background and light text.
Components that use CSS variables also receive dark-mode colors.
Remove w3-dark-mode from the body and run the example to compare the light appearance.
The panel uses the default dark-mode text and border colors.
The explicit w3-blue color stays blue in dark mode.