The PHP Architect look for Filament panels: the brand orange on headings, rules and buttons, neutral grays, and accessible contrast in light and dark mode. Works with Filament 4 and 5.
| Full (default) | Light | |
|---|---|---|
| Orange rule under the top bar | ✓ | ✓ |
| Orange underline under page titles | ✓ | ✓ |
| Orange marker on the active sidebar item and tab | ✓ | ✓ |
| Orange top edge on the sign-in card | ✓ | ✓ |
| Solid orange buttons with white text | ✓ | ✓ |
| Orange section, modal and sign-in headings | ✓ | |
| Orange sidebar group labels (small caps) | ✓ | |
| Orange table headers and header rule | ✓ | |
| Orange top edge on sections and stat cards | ✓ | |
| Orange tint on the active and hovered sidebar item | ✓ |
Orange text uses primary-700 on light backgrounds and primary-400 in dark mode, which pass WCAG AA. The brand orange (#F06023, primary-500) is only used for lines, since white or gray text on it is too low contrast.
composer require phparch/filament-theme
php artisan filament:assetsLaravel apps that run php artisan filament:upgrade after composer update (the Filament default) publish the stylesheets automatically. Otherwise run php artisan filament:assets after every update of the package.
Add the plugin to each panel provider:
use PhpArch\FilamentTheme\PhpArchitectTheme;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(PhpArchitectTheme::make()); // full style
}->plugin(PhpArchitectTheme::make()->light()) // light style
->plugin(PhpArchitectTheme::make()->style(ThemeStyle::Light))The plugin sets the panel's primary color to the PHP Architect orange and gray to Filament's neutral grays. Panel colors are merged in order, so:
- a
->colors([...])call after->plugin()overrides the plugin's colors; PhpArchitectTheme::make()->withoutColors()keeps the panel's own colors and only adds the styles.
The palette is available as PhpArchitectTheme::PRIMARY if you need it elsewhere.
The stylesheets are plain CSS on Filament's color variables (--primary-500 and so on), so they need no Tailwind build and also work on panels that have their own ->viteTheme(). They are unlayered, so they take precedence over Filament's layered styles without !important; a site's own unlayered CSS loaded later can still override them.
composer install
composer test # Pest
composer format # PintThe tests check that every Filament class the stylesheets target exists in the installed Filament version, so run them against both majors before tagging:
composer update "filament/*" -W --with "filament/filament:^4.0" && composer test
composer update -W && composer testCI does the same on every push (.github/workflows/tests.yml).
Tag a version (git tag v1.0.1 && git push --tags). Packagist picks up new tags from GitHub automatically.
MIT. See LICENSE.