Skip to main content
Every setting can be set two ways: in config/ui-switcher.php (published in Installation), or fluently on the plugin instance. A fluent call always overrides the config file for that panel.

Which sections show

Toggle any section of the settings modal independently:
All four default to true.

Default preferences

The values users start with (and land on after “Reset All”):
config/ui-switcher.php
Or fluently:

Fonts

Basic list

Plain strings use Filament’s default font provider (Google Fonts):
config/ui-switcher.php

Extended form (per-font provider, including local fonts)

To pin a specific label, family, provider, or stylesheet URL per font — for example to mix Google Fonts with a locally hosted one — use the extended array form instead of a plain string:
config/ui-switcher.php

Fluent API

url and provider here set the default provider/stylesheet applied to any font option that doesn’t define its own — you can also set them independently:

Font size range

Min/max for the font size slider, in pixels (defaults 12–20):
config/ui-switcher.php

Custom colors

The swatches shown in the color picker:
config/ui-switcher.php

Layouts

Which layout options users can choose between:
config/ui-switcher.php

Settings icon

config/ui-switcher.php
There’s no dedicated fluent setter for the icon itself — set it in the config file, or use iconRenderHook() to change where the icon appears.

Storage driver

config/ui-switcher.php
See Database Storage for the full setup to persist preferences per user.