Tabler Icons
Replace every icon in your Filament panel with Tabler Icons, in outline or filled style, including the rich editor toolbar and multi-factor auth. All 6,275 icons as an enum, one line of setup.
What it does
Swaps every icon Filament draws for its Tabler Icons counterpart, in one line. That covers the sidebar, tables, forms, actions, notifications and the user menu, and also the parts icon packs usually miss: the rich editor toolbar, multi-factor auth, callouts and the query builder. All 222 icon aliases in Filament 5.12 are mapped. All 6,275 Tabler icons are available as a PHP enum, so you can use them in your own resources too.
Requirements
- PHP 8.2+
- Filament v4 or v5
Installation
Install the package with Composer:
composer require filafly/filament-tabler-icons
Then register the plugin in your Filament panel provider:
use Filafly\Icons\Tabler\TablerIcons;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(TablerIcons::make());
}
That's it: reload the panel and every Heroicon is replaced.
Outline or filled
Tabler Icons come in an outline style (the default) and a filled style. Switch the whole panel with one call:
TablerIcons::make()->filled();
Or keep outline icons and make only a few filled:
use Filafly\Icons\Tabler\Enums\Tabler;
use Filafly\Icons\Tabler\Enums\TablerStyle;
use Filament\Actions\View\ActionsIconAlias;
TablerIcons::make()
->overrideStyleForAlias(ActionsIconAlias::DELETE_ACTION, TablerStyle::Filled)
->overrideStyleForIcon(Tabler::Trash, TablerStyle::Filled);
Only icons that Tabler draws in both styles switch; the rest, such as the editor toolbar icons, stay the same.
Using the icons in your own resources
use Filafly\Icons\Tabler\Enums\Tabler;
protected static string | BackedEnum | null $navigationIcon = Tabler::Users;
Overriding individual icons
Change the icon for a Filament alias
use Filafly\Icons\Tabler\TablerIcons;
use Filafly\Icons\Tabler\Enums\Tabler;
use Filament\Tables\View\TablesIconAlias;
use Filament\View\PanelsIconAlias;
// One alias
TablerIcons::make()->overrideAlias(TablesIconAlias::ACTIONS_FILTER, Tabler::AdjustmentsHorizontal);
// Several aliases at once
TablerIcons::make()->overrideAliases([
TablesIconAlias::ACTIONS_FILTER => Tabler::AdjustmentsHorizontal,
PanelsIconAlias::SIDEBAR_EXPAND_BUTTON => Tabler::ChevronsRight,
]);
Replace one icon with another everywhere
// One icon
TablerIcons::make()->overrideIcon(Tabler::Trash, Tabler::TrashX);
// Several icons at once (PHP arrays can't use enums as keys, so use ->value)
TablerIcons::make()->overrideIcons([
Tabler::Trash->value => Tabler::TrashX,
Tabler::Edit->value => Tabler::Pencil,
]);
Source and credits
- Source code and issues: filafly/filament-tabler-icons on GitHub
- Icons by Tabler Icons (MIT License), via Blade Tabler Icons
- Built on Filament Icons
The package is free and open source under the MIT license.
Have questions about Tabler Icons? Get help in our Discord community.
FilaFly also makes premium themes for Filament panels: Lucent, Prizm, Cypher and Citrus. Browse the themes.