Search by

eduardogp321 / filament-mia-theme-v2

EduardoGP321

A warm, editorial theme and design system for Filament PHP with live customizer.

Package info

github.com/EduardoGP321/filament-mia-theme-v2

pkg:composer/eduardogp321/filament-mia-theme-v2

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.3 2026-12-04 18:58 UTC

This package is auto-updated.

Last update: 2026-12-04 19:32:05 UTC


README

Mía Theme v2

A warm, editorial design system for Filament PHP v5+

A bespoke, editorial theme that gives Filament panels a calm, tactile and publication-grade identity — over warm cream surfaces, refined typography pairings, organic shadows and an in-panel live customizer, shipped pre-compiled with zero build steps.

Status License PHP Laravel Filament Tailwind CSS Languages

Overview

Mía is not a simple color swap. Rather than merely feeding an accent color into default variables, every surface has been carefully styled by hand:

  • Warm Editorial Aesthetic: Cream-tinted canvases, balanced type scale with serif headings (Cormorant Garamond) and humanist sans (Jost).
  • Harmonious Dark Mode: Deep espresso and umber tones rather than cold generic slate greys, preserving brand temperature across both color schemes.
  • In-Panel Live Customizer: An interactive appearance page allowing administrators to tweak palettes, fonts, border treatments, infolist layouts, notification presets and shadows on the fly.
  • Structured Infolist Layouts: Replaces plain Filament infolist text with either Subtle Tiles (tiles, default) or Editorial Hairlines (editorial).
  • 5 Notification & Alert Presets: Built-in visual presets (accent-rail, tinted-glass, solid-bold, minimal-pill, editorial-outline) for both toast notifications and callout alerts, with live testing.
  • Focused Modal Backdrop Blur: Centered modals and right-side slide-overs automatically blur the background behind them, while left-side slide-overs stay crisp.
  • Built-in Error & Maintenance Pages: Handled out-of-the-box (403, 404, 419, 500) matching your panel's exact typography and palette.
  • Modular Public Page Builder: Optional database-backed block builder to publish branded public landing pages right from your panel.
  • Multi-language Support: Shipped with English and Spanish translations and a seamless runtime locale switcher.
  • No Node/Vite Build Step Required: Ships fully compiled. Just install via Composer and register the plugin.

Requirements

  • PHP: ^8.2, ^8.3 or ^8.4
  • Laravel: ^11.0, ^12.0 or ^13.0
  • Filament: ^5.7

Installation

Install the package via Composer:

composer require eduardogp321/filament-mia-theme-v2

Publish the configuration file (optional, but recommended):

php artisan vendor:publish --tag="filament-mia-config"

Publish the pre-compiled theme stylesheet into your public/ directory:

php artisan filament:upgrade

Quick Start

Register the plugin in your Filament Panel Provider (usually app/Providers/Filament/AdminPanelProvider.php):

namespace App\Providers\Filament;

use EduardoGP321\FilamentMia\MiaTheme;
use Filament\Panel;
use Filament\PanelProvider;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->default()
            ->id('admin')
            ->path('admin')
            ->plugin(
                MiaTheme::make()
            );
    }
}

That's it! Your panel now uses Mía's editorial design system and typography.

Features & Configuration

You can configure Mía fluently on the plugin instance or centrally in config/filament-mia.php.

Fluent Configuration Options

use EduardoGP321\FilamentMia\Enums\Density;
use EduardoGP321\FilamentMia\Enums\Roundness;
use EduardoGP321\FilamentMia\MiaTheme;

MiaTheme::make()
    // Brand & Status Colors
    ->accentColor('#D9A14E')
    ->secondaryColor('#E4A987')
    ->neutralColor('#1F1B16') // Custom neutral ramp or null for default warm ramp
    ->statusColors(
        danger: '#C1614F',
        info: '#8B9FB0',
        success: '#8A9A6B',
        warning: '#D9A441',
    )

    // Typography
    ->sansFont('Jost')
    ->serifFont('Cormorant Garamond')
    ->serifHeadings(true)

    // Geometry & Layout
    ->roundness(Roundness::Soft) // None | Subtle | Soft | Rounded | Full
    ->density(Density::Comfortable) // Compact | Comfortable | Spacious
    ->elevation(1.0) // 0.0 (flat) upwards
    ->motion(true) // Micro-interactions and smooth transitions
    ->sidebarWidth('18rem')
    ->sidebarStyle('transparent') // transparent | solid | floating
    ->topbarStyle('glass') // glass | solid | transparent
    ->tableStriped(false)
    ->cardBorderStyle('hairline') // hairline | frameless
    ->infolistStyle('tiles') // tiles | editorial | property-rows | left-accent | elevated-cards
    ->notificationStyle('accent-rail') // accent-rail | tinted-glass | solid-bold | minimal-pill | editorial-outline

    // Features
    ->customizer(true) // Enable live appearance editor
    ->pageBuilder(false) // Enable public block page builder

Live Appearance Customizer

Mía includes an optional in-panel customizer where authorized users can modify the theme's colors, typography and layout in real-time with an instant preview.

Enabling the Customizer

MiaTheme::make()
    ->customizer()
    // Restrict access to administrators
    ->customizerAuthorization(fn (): bool => auth()->user()?->can('manage-theme') ?? true)
    // Customise navigation item
    ->customizerNavigation(
        group: 'Settings',
        sort: 10,
        icon: 'heroicon-o-paint-brush'
    );

When changes are saved, they are persisted locally and applied dynamically across the panel without modifying code files.

The Live Preview card stays sticky alongside the form and includes a fixed footer with Save & Reset actions (with a native confirmation modal on reset), keeping both controls accessible at all times while you scroll through sections.

Infolist Layouts

Mía enhances Filament's default plain-text infolists with refined label-to-value typography, italic placeholders, and 5 selectable layouts:

  • tiles (Subtle Tiles — Default): Wraps each entry in a sunken surface cell with a hairline border and density-aware padding.
  • editorial (Editorial Hairlines): Clean transparent rows separated by ultra-fine bottom hairlines that highlight on hover.
  • property-rows (Property Rows — Linear / iOS): Horizontal 2-column rows (label on the left, value on the right) with subtle row hover tinting.
  • left-accent (Interactive Left Accent): Clean background with a minimal vertical guide on the leading edge that lights up with your primary accent on hover.
  • elevated-cards (Elevated Clean Cards): Luminous raised surface cards with soft diffused shadows.

Notifications & Alerts Presets

Choose from 5 curated presets that style both floating toast notifications and inline callouts/alerts across light and dark mode:

  • accent-rail (Default): Raised frosted surface with a 3.5px vertical status rail on the leading edge.
  • tinted-glass: Translucent blurred background lightly tinted with the status color.
  • solid-bold: High-contrast solid status background with crisp white text and icons.
  • minimal-pill: Clean rounded card with the icon nested inside a soft tinted circular badge.
  • editorial-outline: Paper-clean surface framed by a 1.5px tinted status border.

You can preview all 5 presets in real time and trigger a live test toast directly from the Notifications & Alerts section in the customizer. Database notifications inside the bell drawer (.fi-inline) preserve their clean list layout along with their status colors.

Public Page Builder

Mía includes a modular block page builder for public landing pages. When enabled, it lets you compose pages from structured components (features, navigation bars, content sections) styled in the theme.

Enabling Page Builder

  1. Publish the migration and migrate:
php artisan vendor:publish --tag="filament-mia-migrations"
php artisan migrate
  1. Enable in your panel:
MiaTheme::make()
    ->pageBuilder(true, path: '/')
    ->pageBuilderAuthorization(fn (): bool => auth()->user()?->can('manage-pages') ?? true);

Branded Error & Maintenance Pages

Mía includes themed HTTP error pages for:

  • 403 Forbidden
  • 404 Not Found
  • 419 Session Expired
  • 500 Server Error
  • Maintenance Mode

These pages automatically match your panel's fonts, colors, and presets.

Publishing Error Views

To customize the views and unlock the interactive UI customizer, publish the error views:

php artisan vendor:publish --tag="filament-mia-errors"

Note

Once you run this command, a dedicated "Pantallas de Error" section will automatically appear inside the in-panel Theme Customizer (Apariencia).

Customizing Errors via UI (Theme Customizer)

When error views are published, authorized users can customize each error screen directly from the panel without modifying code:

  • Error Type Selector: Switch between 404, 403, 419, and 500.
  • Title (Heading) & Body: Custom copy for each error message.
  • Heroicon Selector: Choose any default Filament Heroicon (e.g. magnifying glass, shield, bolt, lock, server, etc.).
  • Accent & Halo Color: Custom status color for the circular icon glow.
  • Action Button Label: Custom label for the return button (always returns safely to the panel or homepage).
  • Toggle HTTP Code: Choose whether to display or hide the numeric HTTP status code.
  • Live High-Fidelity Preview: Instant reactive preview with textured canvas, backdrop blur, matching fonts, and live icon switching.

Locales & Translations

Mía ships with full translations in English and Spanish. You can enable the language switcher in the panel:

MiaTheme::make()
    ->localeSwitcher(['en', 'es']);

Publishing Assets & Stubs

You can publish any part of the package to customize it further:

# Config
php artisan vendor:publish --tag="filament-mia-config"

# Translations
php artisan vendor:publish --tag="filament-mia-translations"

# Views
php artisan vendor:publish --tag="filament-mia-views"

# Error templates
php artisan vendor:publish --tag="filament-mia-errors"

# Page builder migrations
php artisan vendor:publish --tag="filament-mia-migrations"

Upgrading

Whenever you update the package version via Composer, run:

php artisan filament:upgrade
php artisan optimize:clear

This ensures the published CSS file in public/css/eduardogp321/filament-mia-theme-v2/ is up-to-date with your installation.

License

This package is open-source software licensed under the MIT license.