Skip to Content
Inset

Colours

The theme's palettes, and how to change them.

The plugin registers its palettes: an indigo primary, neutral gray, and red, emerald, amber and blue for danger, success, warning and info. Colours you set on the panel after the plugin still win, one colour at a time:

use Filament\Support\Colors\Color;

$panel
    ->plugin(InsetPlugin::make())
    ->colors(['primary' => Color::Emerald]);

The palettes are also constants on Kstmostofa\InsetTheme\InsetColor: Primary, Gray, Danger, Success, Warning, Info and Outline, or all of them as Colors. Use them on a panel where you turned the plugin's colours off with ->colors(false).