F
Filament2w ago
r0x

using ->font() on Panel, is not changed Custom Pages

Im following the documentation and added ->font('poppins') to the PanelProvider. Seems my Resources are changing the font but a Custom Page with Livewire components isnt. And the navigation menu font is not changed aswell (in the route with the custom page) Am i missing something ? Thanks
25 Replies
Mohamed Ayaou
Mohamed Ayaou2w ago
How did you create the custom page can you share more details
awcodes
awcodes2w ago
Try it with a capital P 'Poppins’. It’s should the actual name of the font as you would use it in a stylesheet.
r0x
r0xOP6d ago
i used Poppins. it was a typo it was a typo at my post, but the problem persists
LeandroFerreira
are you using a custom page in the panel builder?
r0x
r0xOP6d ago
Yes
LeandroFerreira
this works on my end. What about your custom page? What is the content?
r0x
r0xOP6d ago
Im using a livewire component with filament forms. When i Access this page, the navigation menu also lose the Poppins font
LeandroFerreira
could you share a screenshot?
r0x
r0xOP6d ago
Yes. Im at phone ATM but on some minutes i can provide the SS
LeandroFerreira
are you using spa mode?
r0x
r0xOP6d ago
I dont think so. Its my first project with filament. Im testing some stuff but the goal is build a bit project with F3. I read something about SPA but Im not using it Yeah not using ->spa()
LeandroFerreira
another font ->font('merriweather')
No description
r0x
r0xOP6d ago
No description
No description
r0x
r0xOP6d ago
even the navigation changes when i access the "dashboard" my dashboard is a custom page @vite('resources/css/app.css') <x-filament-panels::page> <x-filament-panels::form> <livewire:module:client-login-wizard/> </x-filament-panels::form> </x-filament-panels::page> this is my main-dashboard.blade.php hum.. i removed @vite and its working wtf 😄 dunno why i added that @vite there but.. did the job 😄
LeandroFerreira
are you using a custom theme?
r0x
r0xOP6d ago
no.. but i will in the future i pretend to have customization for each company/client i already tested the themes but im struggling with the panel customization.. i will delay that. not really important atm 😄 thanks 🙂 ah.... i remember now.. i'm using @vite because i cant use tailwind classes without it im trying to use grid/columns... but without @vite, they are not available and another thing that is wierd: navigation lost Poppins livewire with filament forms/wizard lost Poppins filament tabs lost Poppins but the grid test im doing here, have Poppins. eheh... wierd 😄
r0x
r0xOP6d ago
No description
LeandroFerreira
did you add this livewire component to the tailwind content array?
r0x
r0xOP6d ago
'./modules/*/.blade.php', im using the laravel-modules i did the build and the optimize but seems im doing something wrong
r0x
r0xOP6d ago
No description
r0x
r0xOP6d ago
@vite('resources/css/app.css') <x-filament-panels::page> <div class="grid grid-cols-1 lg:grid-cols-2 gap-4"> <div class=""> <x-filament-panels::form> <livewire:module:client-login-wizard/> </x-filament-panels::form> </div> <div class=""> <x-filament::tabs label="Content tabs"> <x-filament::tabs.item active> Tab 1 </x-filament::tabs.item>
<x-filament::tabs.item disabled> Tab 2 </x-filament::tabs.item>
<x-filament::tabs.item disabled> Tab 3 </x-filament::tabs.item> </x-filament::tabs> </div> </div> <div class="grid grid-cols-12 gap-4"> <div class="col-span-12 sm:col-span-12 md:col-span-3 lg:col-span-3 xl:col-span-3 2xl:col-span-3">Column</div> <div class="col-span-12 sm:col-span-12 md:col-span-3 lg:col-span-3 xl:col-span-3 2xl:col-span-3">Column</div> <div class="col-span-12 sm:col-span-12 md:col-span-3 lg:col-span-3 xl:col-span-3 2xl:col-span-3">Column</div> </div> <div class="grid grid-cols-3 gap-4"> <div class="...">01</div> <div class="...">02</div> <div class="...">03</div> <div class="col-span-2 ...">04</div> <div class="...">05</div> <div class="...">06</div> <div class="col-span-2 ...">07</div> </div>
</x-filament-panels::page> this is not applying to livewire and to filament tabs aswell
LeandroFerreira
check your content configuration in tailwind.config.js to also scan for classes inside your custom directory..
r0x
r0xOP6d ago
And then i could remove the @vite, right?

Did you find this page helpful?