tomatophp/filament-simple-theme
composer.json). If the project uses an older Filament version, a migration path (e.g., upgrading Filament) may be needed.resources/views or public/ assets may arise. Solution: override specific files or use Filament’s theme customization APIs.npm run dev integrate smoothly with the existing workflow (e.g., Vite, Laravel Mix)?resources/views/filament/).composer require tomatophp/filament-simple-theme
php artisan filament-simple-theme:install
npm i && npm run dev
config/app.php:
Tomato\FilamentSimpleTheme\FilamentSimpleThemeServiceProvider::class,
Publish assets if needed:
php artisan vendor:publish --tag=filament-simple-theme-assets
use Tomato\FilamentSimpleTheme\Facades\FilamentSimpleTheme;
FilamentSimpleTheme::extendSidebarItems(function ($items) {
$items[] = CustomSidebarItem::make();
});
composer.json for exact version constraints).tailwind.config.js doesn’t conflict with the package’s classes.'theme' => [
'colors' => [
'primary' => '#3b82f6',
'dark' => '#1e293b',
],
],
php artisan filament:debug) to isolate theme-related issues.FilamentSimpleTheme::setThemeForTenant($tenantId, 'dark');
'filament-simple-theme' => [
'user_menu' => [
'logout' => __('filament-simple-theme::logout'),
],
],
| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Theme CSS breaks existing styles | UI rendering issues | Use Tailwind’s !important sparingly; override via custom CSS. |
| Dark mode toggle conflicts | JavaScript errors | Isolate dark mode logic in a separate script. |
| Filament update breaks compatibility | Theme stops working | Test updates in staging; pin versions if needed. |
| Sidebar customizations break | Missing/duplicate menu items | Use Filament’s after:register hooks. |
php artisan optimize:clear").Final Note: This package is a high-opportunity, low-risk addition for Filament-based projects prioritizing rapid UI polish. Prioritize customization documentation and Filament version alignment to minimize operational overhead.
How can I help you explore Laravel packages today?