How to change the logo size?
How to change the logo size?
<img src="{{ asset('/images/logo.svg') }}" alt="Logo" class="h-10">
Anything other than h-10
doesn't work?7 Replies
You need to use a custom theme to use tailwind classes that do not exist in filaments stylesheet. https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
@awcodes
I'm following that guide, I tried two ways to achieve it.
Method A: my own attempt on using Tailwind JIT (not working)
resources/views/vendor/filament-panels/components/logo.blade.php
Method B: css hooks suggested on doc (working)
resources/views/vendor/filament-panels/components/logo.blade.php
theme.css
Does anyone know whether styling filament components using tailwind JIT is possible? or is using css hooks + tailwind directives in css file the only way for now?
add
'./resources/views/vendor/filament-panels/**/*.blade.php',
to your panel's tailwind config's content
optionhi
@justjosef thankyou so much
solved, how do i close
right click on my answer, select apps, then mark as solution
This should be added to the official documentation, i was looking this solution for hours! Thx dude!