Use Preferred Theme

Get the user's system theme, and apply it.

ParametersNone

Set Theme

Set the theme wither to dark or light.

Parameterstheme ("dark" | "light")

Toggle Theme

Toggle between light and dark mode. Good for elements like switches.

ParametersNone