© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
taz

FIlament Blade components outside filament. Change default primary color

I am using some filament blade components outside Filament, in a classical blade template.
<x-filament::button
                        icon="heroicon-s-paper-airplane"
                        icon-position="after"
                        color="primary"
                    >
                        Start Free Trial
</x-filament::button>   
<x-filament::button
                        icon="heroicon-s-paper-airplane"
                        icon-position="after"
                        color="primary"
                    >
                        Start Free Trial
</x-filament::button>   

So in my app layout blade file I added Filament styles:
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="csrf-token" content="{{ csrf_token() }}">
        <title>{{ config('app.name', 'myapp') }}</title>
        <link rel="icon" href="favicon.ico" />
        @vite(['resources/css/app.css', 'resources/js/app.js'])
        @filamentStyles
    </head>
    <body {{ $attributes->merge(['class' => 'bg-noir-900']) }}>
        {{ $slot }}
        @stack('scripts')
    </body>
</html>
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="csrf-token" content="{{ csrf_token() }}">
        <title>{{ config('app.name', 'myapp') }}</title>
        <link rel="icon" href="favicon.ico" />
        @vite(['resources/css/app.css', 'resources/js/app.js'])
        @filamentStyles
    </head>
    <body {{ $attributes->merge(['class' => 'bg-noir-900']) }}>
        {{ $slot }}
        @stack('scripts')
    </body>
</html>

Everything works fine but how to change the primary color. I want to change the default yellow color for the components when setting 'primary' on the components color attribute. Thanks you. Filament is awesome by the way !
Solution
Did you add this in the provider?
https://filamentphp.com/docs/3.x/support/colors#customizing-the-default-colors
Colors - Core Concepts - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Blade components outside of Filament
FilamentFFilament / ❓┊help
2y ago
How to change primary color outside admin panel?
FilamentFFilament / ❓┊help
2y ago
Use filament Components outside filament
FilamentFFilament / ❓┊help
2y ago
How can i use filament blade components outside of filament panels?
FilamentFFilament / ❓┊help
2y ago