Search by

phparch / filament-theme

Eric Van Johnsonphparch

The PHP Architect theme for Filament panels: brand orange headings, rules and buttons, in a full or light style.

Package info

github.com/phparch/filament-theme

pkg:composer/phparch/filament-theme

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-12-02 04:44 UTC

This package is auto-updated.

Last update: 2026-12-02 04:50:37 UTC


README

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.

Styles

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.

Installation

composer require phparch/filament-theme
php artisan filament:assets

Laravel 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.

Usage

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))

Colors

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.

Custom Filament themes

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.

Development

composer install
composer test      # Pest
composer format    # Pint

The 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 test

CI does the same on every push (.github/workflows/tests.yml).

Releasing

Tag a version (git tag v1.0.1 && git push --tags). Packagist picks up new tags from GitHub automatically.

License

MIT. See LICENSE.