filament-themes support in Filament v2.x).rgb(var(--color-primary))) aligns with Tailwind’s dynamic theming capabilities.filament-themes support) and publishes assets/config without modifying core Filament or Laravel files.vendor:publish --tag=yepsua-filament-themes-assets) ensures no manual file management.config/filament-themes.php, which is version-controlled and deployable via Laravel’s config system. This avoids runtime overrides and simplifies CI/CD pipelines.filament-themes API)./resources/css/app.css; custom paths require manual adjustments, risking asset resolution failures in complex setups.Filament Version Compatibility:
Theme Customization Scope:
Asset Management:
Performance Impact:
Fallback Mechanisms:
Pre-Installation Checklist:
rgb(var(--color-primary))).resources/js/app.js).Installation Steps:
composer require yepsua/filament-themes
php artisan vendor:publish --tag="yepsua-filament-themes-config"
php artisan vendor:publish --tag="yepsua-filament-themes-assets"
config/filament-themes.php (define themes).public/vendor/filament-themes (CSS/JS files).Tailwind Configuration:
Update tailwind.config.js to use CSS variables (as shown in README). Example:
module.exports = {
theme: {
extend: {
colors: {
primary: 'rgb(var(--color-primary) / <alpha-value>)',
},
},
},
};
Theme Activation:
config/filament-themes.php:
'active' => 'dark-blue',
Post-Installation:
npm run dev (Vite) or npm run mix to rebuild assets.| Component | Compatibility | Mitigation |
|---|---|---|
| Filament v2.x | ✅ Full support | Monitor Filament v3.x updates for breaking changes. |
| Filament v3.x | ⚠️ Untested | May require forking or waiting for updates. |
| Tailwind CSS | ✅ v3+ (CSS variables) | Downgrade or polyfill for older versions. |
| Laravel Mix | ✅ Supported | Use Vite for better HMR and production builds. |
| Vite | ✅ Supported | Ensure resources/js/app.js includes Filament’s JS. |
| Multi-Tenant | ❌ Not natively supported | Implement middleware to override config/filament-themes.php per tenant. |
| Dark Mode | ✅ Via Tailwind’s dark: classes |
Extend config to support system preference or user toggles. |
Phase 1: Proof of Concept (1–2 days)
Phase 2: Integration (3–5 days)
config/filament-themes.php.Phase 3: Production Rollout (1 day)
Phase 4: Maintenance (Ongoing)
config/filament-themes.php, reducing runtime complexity. Changes require config reloads (no code deployments).public/vendor/filament-themes) should be ignored in .gitignore to avoid duplication.npm run build).public/vendor/filament-themes exists and permissions are correct.active theme in config matches a defined theme.How can I help you explore Laravel packages today?