Resetting preferences
The settings modal includes a reset button in its header. It restores every customization — primary color, font family, font size, layout, and mode (if enabled) — to the values defined inconfig/ui-switcher.php under defaults.
Programmatic access
Read or write preferences directly, outside the settings modal:HasUiPreferences trait, the same operations are available on the user model:

