diff --git a/app/Filament/Admin/Resources/ResultResource.php b/app/Filament/Admin/Resources/ResultResource.php index 671e1d8..c7715af 100644 --- a/app/Filament/Admin/Resources/ResultResource.php +++ b/app/Filament/Admin/Resources/ResultResource.php @@ -106,7 +106,7 @@ public static function table(Table $table): Table ]) ->paginated([10, 25, 50, 100]) ->deferLoading() - ->recordClasses(fn (Result $result) => $result->has_issues ? 'bg-warning-50' : null); + ->recordClasses(fn (Result $result) => $result->has_issues ? 'bg-warning-50 dark:bg-warning-400/10' : null); } public static function getRelations(): array diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index ff28e97..ab16148 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -56,6 +56,7 @@ public function panel(Panel $panel): Panel ->myProfile(slug: 'profile') ->enableTwoFactorAuthentication(), ]) + ->viteTheme('resources/css/filament/common/theme.css') ->discoverResources(in: app_path('Filament/Admin/Resources'), for: 'App\\Filament\\Admin\\Resources') ->discoverPages(in: app_path('Filament/Admin/Pages'), for: 'App\\Filament\\Admin\\Pages') ->pages([ diff --git a/resources/css/filament/common/tailwind.config.js b/resources/css/filament/common/tailwind.config.js new file mode 100644 index 0000000..67de966 --- /dev/null +++ b/resources/css/filament/common/tailwind.config.js @@ -0,0 +1,10 @@ +import preset from '../../../../vendor/filament/filament/tailwind.config.preset' + +export default { + presets: [preset], + content: [ + './app/Filament/**/*.php', + './resources/views/filament/**/*.blade.php', + './vendor/filament/**/*.blade.php', + ], +} diff --git a/resources/css/filament/common/theme.css b/resources/css/filament/common/theme.css new file mode 100644 index 0000000..c3a6249 --- /dev/null +++ b/resources/css/filament/common/theme.css @@ -0,0 +1,3 @@ +@import '/vendor/filament/filament/resources/css/theme.css'; + +@config 'tailwind.config.js'; diff --git a/vite.config.js b/vite.config.js index fee4d1a..d757bd9 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,7 +4,11 @@ import laravel, { refreshPaths } from 'laravel-vite-plugin'; export default defineConfig({ plugins: [ laravel({ - input: ['resources/css/app.css', 'resources/js/app.js'], + input: [ + 'resources/css/app.css', + 'resources/css/filament/common/theme.css', + 'resources/js/app.js', + ], refresh: [...refreshPaths, 'app/Livewire/**'], }), ],