New Light Theme issue for Notifications

In filament 3.2.132, i am setting notification like this public function success(string $title = 'Success', string $body = '', string $icon = 'heroicon-o-check-circle', int|string|null $duration = null, array|ActionGroup|Closure $actions = []): Notification { $duration = $duration ?? $this->duration; return Notification::make() ->title($title) ->body($body) ->success() ->color('success') ->icon($icon) ->iconColor('success') ->duration($duration) ->actions($actions) ->send(); } in Create Action: Actions\CreateAction::make()->successNotification(fn () => Toast::success(title: 'Success')), in dark mode its fine but in light theme it doesn't look good
No description
No description
Solution:
finally i found where i made a mistake, sorry for wasting your time and thanks for your cooperation. Actually i overload the filament app.css using PanelsRenderHook::HEAD_END with the default resources/css/app.css
Jump to solution
19 Replies
Parthiban N
Parthiban NOP4w ago
->color('success') this one not looks good in new light theme i mean setting the built-in background color functionality not looks good
Dennis Koch
Dennis Koch4w ago
What is „New Light Theme“? A plugin?
Parthiban N
Parthiban NOP4w ago
i don't install any plugin, i freshly installed filament project and i changed the theme mode to light in profile section then this theme is changed i don't change any default colors in filament
No description
Dennis Koch
Dennis Koch4w ago
Your screenshot doesn’t look like light theme though
Parthiban N
Parthiban NOP4w ago
but i do artisan optimize:clear and filament:clear still i get this color in light mode
Dennis Koch
Dennis Koch4w ago
What’s the output of artisan about for the filament section?
Parthiban N
Parthiban NOP4w ago
Filament ...............................................................................................................
Blade Icons ................................................................................................. NOT CACHED
Packages ............................................................... filament, forms, notifications, support, tables
Panel Components ............................................................................................ NOT CACHED
Version ....................................................................................................... v3.2.132
Views .................................................................................................... NOT PUBLISHED
Matthew
Matthew4w ago
Hmm, can you run npm run build? Also,what about livewire?
Parthiban N
Parthiban NOP4w ago
i working in development and livewire version 3.5.12
Dennis Koch
Dennis Koch4w ago
Hm looks good.
Parthiban N
Parthiban NOP4w ago
How to fix it?
Dennis Koch
Dennis Koch4w ago
Can you check where the blueish styles come from through DevTools?
Parthiban N
Parthiban NOP4w ago
Can you please explain it more?
Dennis Koch
Dennis Koch4w ago
Open DevTools, Inspect some Element and check where the CSS declarations come from. Especially the blue tones. Light mode should be white as in https://demo.filamentphp.com
Parthiban N
Parthiban NOP4w ago
But the demo site version is not the latest one Again i installed the fresh filament project it also shows the light theme mode of the same new light theme i shared
Dennis Koch
Dennis Koch4w ago
I just installed a fresh Laravel project with Filament and can't replicate the issue. Please check our DevTools
Matthew
Matthew4w ago
Could it be that he didn't run npm install && npm run build?
Dennis Koch
Dennis Koch4w ago
He said it's fresh Filament without any plugins. I don't expect a custom theme.
Solution
Parthiban N
Parthiban N4w ago
finally i found where i made a mistake, sorry for wasting your time and thanks for your cooperation. Actually i overload the filament app.css using PanelsRenderHook::HEAD_END with the default resources/css/app.css

Did you find this page helpful?