Priyank
is it necessary to create a custom theme to add tailwind colors
Thank you for your response.
I believed that i will not need to create a custom theme because when i read the docs here -
https://filamentphp.com/docs/3.x/support/colors#registering-extra-colors
I thought this should work by just registering extra colors. And these colors are present in tailwindcss preset. And thus it should have been there in Filament\Support\Colors\Color
Below is my AppServiceProvider.php
<?php
namespace App\Providers;
use Filament\Support\Assets\Css;
use Filament\Support\Assets\Js;
use Filament\Support\Colors\Color;
use Filament\Support\Facades\FilamentAsset;
use Filament\Support\Facades\FilamentColor;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/
* Register any application services.
*/
public function register(): void
{
//
}
/
* Bootstrap any application services.
*/
public function boot(): void
{
FilamentAsset::register([
Css::make('animated-css-tailwind', 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css'), ]); FilamentColor::register([ 'danger' => Color::Red, 'gray' => Color::Zinc, 'info' => Color::Blue, 'primary' => Color::Amber, 'success' => Color::Green, 'warning' => Color::Amber, 'indigo' => Color::Indigo, ]); } }
Css::make('animated-css-tailwind', 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css'), ]); FilamentColor::register([ 'danger' => Color::Red, 'gray' => Color::Zinc, 'info' => Color::Blue, 'primary' => Color::Amber, 'success' => Color::Green, 'warning' => Color::Amber, 'indigo' => Color::Indigo, ]); } }
5 replies
is it necessary to create a custom theme to add tailwind colors
I tried every way ..but still the custom colors don't apply to my code.
The classes are not there in filament.css and i tried running npm run dev and npm run build too..but no luck for me
5 replies
Does the Notification modal load outside of the Admin Panel too?
Even the code which is given in last part of the document where we can open the notification modal from anywhere is not working
<button
x-data="{}"
x-on:click="$dispatch('open-modal', { id: 'database-notifications' })"
type="button"
>
Notifications
</button>
11 replies
Does the Notification modal load outside of the Admin Panel too?
Yes i created the Trigger view in my resources/views/notifications/database-notifications-trigger.blade.php
And then i add the trigger in Filament config file
And then i add the code you gave me in my frontend blade file
But the notification trigger button is not rendered in the blade file.
What may be the causes ?
11 replies
Does the Notification modal load outside of the Admin Panel too?
you mean this one right ?
https://filamentphp.com/docs/2.x/notifications/database-notifications
11 replies
Does the Notification modal load outside of the Admin Panel too?
@toeknee_iom okay. i installed it and i am getting notifications. But i am using Database Notifications now and i want to display them to the user in frontend with Trigger button but the button is not showing up in frontend.
Which documentation should i follow for that to work ?
11 replies
How to conditionally show/hide Navigation Groups ?
So i have these Filament Pages which all have the same Navigation Group and i have registered just the Navigation Group in my Appserviceprovider.php boot method.
So should i add the conditional logic in each filament page and thats how my navigation group will be hidden ?
Appreciate your help regarding this.
4 replies
Custom theme - I want default styling of filamentphp in my custom theme too.
My Font is not loading now, i followed the advice here
https://filamentphp.com/docs/2.x/admin/appearance#loading-google-fonts
But my font is not loading
I have this below line in my filament config file -
'google_fonts' => 'https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap',
5 replies
TailwindCSS classes not generating nor getting scanned and even safelist is not working.
I have not built any custom themes. I have the default. I run npm run dev with vite running successfully and npm run build to push the code for production
9 replies
TailwindCSS classes not generating nor getting scanned and even safelist is not working.
Exactly i am following this above way. But it only accepts classes which are there in filament. I tried text-white and it immediately renders the text to white, but when i use bg-red-300 or something like that it does not render. So what do i do to get the other tailwind classes to render
9 replies
Modal is not opening in local development but it is opening in production
I am using Windows for local dev and Linux , I do not have any other livewire component on that page, in fact the console errors are present from Admin Panel login page itself, i am trying to reproduce the error by starting with a fresh installation. i believe this will get me to the root of the problem.
17 replies
Modal is not opening in local development but it is opening in production
Bro i am just testing whether my modals are able to open or not. Because the same code when goes in production it works the modal opens, so why not in my local dev, and in particular this one project, because i tried making new project and it works in local dev too
17 replies
Modal is not opening in local development but it is opening in production
Filament Version - v2.17
Is delete action is custom or not - Delete action is custom
Is your page is custom or not etc - It is a resource page and i am trying to add Delete Action button on each record.
I am getting console errors as shown above in the Filamentphp Admin Login page and only in Admin Panel. I think it may be due to Filament Notifications
17 replies