visualbuilder/filament-design-system
Standalone design-system review panel for Filament v5 with a full component catalogue driven by a single tokens config. Includes an MCP server so AI clients can read/write tokens, generate palettes, apply CSS overrides, swap branding, and verify via screenshots.
tokens, panel, theme) mirrors industry-standard separation of concerns.--dev).| Risk Area | Mitigation |
|---|---|
| Filament Version Lock | Hard dependency on Filament v5. Upgrades may require manual testing. |
| AI Agent Compatibility | MCP protocol is stable, but tool signatures (e.g., list_classes) may evolve. |
| Screenshot Dependencies | Playwright is optional; custom closures allow fallback (e.g., AWS Lambda). |
| Class Manifest Staleness | rebuild-class-manifest command ensures AI gets accurate selectors. |
| Performance | Catalogue renders all Filament components; may be heavy for low-end hosts. |
AI Workflow Maturity:
Theme Migration Path:
export_theme_css be merged into the host’s theme.css? Will this require a CI step or manual review?Production Guarding:
Scaling the Catalogue:
visualbuilder/lottie), how will the class manifest and screenshot tooling scale?Customization Limits:
GoogleFontProvider) or self-hosted fonts.Pilot Phase (Dev):
--dev dependency.config/design-system.php with your brand assets (logo, fonts, colors)./design-system.php artisan mcp:inspector design-system.AI Integration:
.mcp.json to expose the server to your AI agent (Claude Code or custom).{ "tool": "generate_palette", "hex": "#ea746b" }
{ "tool": "write_tokens", "tokens": { "colors": { "primary": { "50": "#..." } } } }
Production Readiness:
bootstrap/providers.php:
if (!app()->environment('production')) { $providers[] = DesignSystemPanelProvider::class; }
allow 192.168.1.0/24;).Graduation to Production:
export_theme_css and merge into resources/css/filament/admin/theme.css.reset_overlay(scope="all") (optional, if keeping the panel for future iterations).| Component | Compatibility Notes |
|---|---|
| Filament v5 | Full support; breaks with v4 or v6. |
| Livewire 4 | Required for panel rendering. |
| Laravel MCP | Uses laravel/mcp v1.0+. |
| Playwright | Optional; only needed for screenshots. |
| Custom Fonts | Must be registered via Filament’s FontProvider interface. |
| Tailwind CSS | Overrides work alongside Tailwind (tokens are CSS variables). |
| Filament Plugins | Works alongside other Filament plugins (e.g., filament/spatie-laravel-media-library). |
Pre-requisites:
laravel-mcp/web).Critical Path:
composer require --dev visualbuilder/filament-design-system
php artisan vendor:publish --tag=filament-design-system-provider
php artisan migrate --seed
php artisan mcp:inspector design-system # Validate tools
Post-Install:
config/design-system.php (branding, fonts, colors)..mcp.json).storage/app/design-system-tokens.json).filament-design-system:rebuild-class-manifest).visualbuilder/filament-design-system for Filament v5 compatibility.npx playwright install chromium after Node.js upgrades.list_classes and the override syntax is valid.laravel/mcp installed.npx playwright install) and the host allows outbound requests.php artisan cache:clear after token changes).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| MCP Server Crashes | AI workflows halt. | Wrap tool calls in retries; monitor storage/logs/laravel-mcp.log. |
| Playwright Missing | Screenshots fail. | Custom closure fallback or manual screenshot uploads. |
| Class Manifest Stale | AI targets non-existent classes. | Run filament-design-system:rebuild-class-manifest after Filament updates. |
| Overlay Corruption |
How can I help you explore Laravel packages today?