Citizen
Citizen
FFilament
Created by Citizen on 2/11/2025 in #❓┊help
How can I re-use the filament boolean icon in more places?
I found the icon documentary page but maybe I'm doing something wrong here: ->icon(static fn (User $record) => $record->phone_verified_at ? 'infolists::components.icon-entry.true' : 'infolists::components.icon-entry.true')
3 replies
FFilament
Created by Citizen on 2/11/2025 in #❓┊help
Why are my dashboard panels so small?
Oh snap, you were right but in the other direction. I needed to add it to my admin tailwind config, not the project root one. Thank you!!!
10 replies
FFilament
Created by Citizen on 2/11/2025 in #❓┊help
Why are my dashboard panels so small?
Here's my actual tailwind config:
import defaultTheme from 'tailwindcss/defaultTheme';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';

/** @type {import('tailwindcss').Config} */
export default {
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./vendor/laravel/jetstream/**/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
'./vendor/awcodes/overlook/resources/**/*.blade.php',
],

theme: {
extend: {
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
},

plugins: [forms, typography],
};
import defaultTheme from 'tailwindcss/defaultTheme';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';

/** @type {import('tailwindcss').Config} */
export default {
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./vendor/laravel/jetstream/**/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
'./vendor/awcodes/overlook/resources/**/*.blade.php',
],

theme: {
extend: {
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
},

plugins: [forms, typography],
};
10 replies
FFilament
Created by Citizen on 2/11/2025 in #❓┊help
Why are my dashboard panels so small?
My bad, the tailwind config I pasted was the one from my admin panel, not the overall, I'll check the real one
10 replies
FFilament
Created by Citizen on 2/11/2025 in #❓┊help
Why are my dashboard panels so small?
No worries. Size doesn't matter. I tried explaining this to my wife but apparently she's not a filament expert. I did run both assets and upgrade, and they're part of my composer.json scripts. I just realized that these widgets are generated by overlook. I think I did follow the steps and I made a custom theme. That theme file is just this:
@import '/vendor/filament/filament/resources/css/theme.css';

@config 'tailwind.config.js';
@import '/vendor/filament/filament/resources/css/theme.css';

@config 'tailwind.config.js';
and my tailwind config:
import preset from '../../../../vendor/filament/filament/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
}
import preset from '../../../../vendor/filament/filament/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
}
about yields this:
Filament .......................................................................................
Blade Icons ............................................................................. CACHED
Packages ....................................... filament, forms, notifications, support, tables
Panel Components ........................................................................ CACHED
Version ............................................................................... v3.2.139
Views ............................................................................ NOT PUBLISHED
Filament .......................................................................................
Blade Icons ............................................................................. CACHED
Packages ....................................... filament, forms, notifications, support, tables
Panel Components ........................................................................ CACHED
Version ............................................................................... v3.2.139
Views ............................................................................ NOT PUBLISHED
10 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
From the docs, making a theme was definitely the way to go. Thank you!
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
Sent!
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
Thanks I think for now I'll keep it simple but I'll dm when I get to the advanced stuff
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
I'll make a theme and have fun with it, thanks!
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
🙂
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
I'm portugese as well, but in USA. Obrigado friend
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
Having one sheet per panel kinda makes sense which is why I did it this way
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
I'm new and definitely want to do things the 'right' way
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
Should I anyway?
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
I didnt want to do a whole theme just to add a few classes to the main div
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
I solved it by adding it to vite since I use @apply tailwind classes. This works for me:
->assets([
Css::make('filament-organize', Vite::asset('resources/css/filament-organize.css')),
]);
->assets([
Css::make('filament-organize', Vite::asset('resources/css/filament-organize.css')),
]);
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
I added a pull request here to add this to the config docs since it isn't clear. Is this accurate? https://github.com/filamentphp/filament/pull/14629
25 replies
FFilament
Created by Citizen on 10/25/2024 in #❓┊help
Panel ->assets() result in 404. What am I missing?
Ok, so I found in the assets docs that I need to run php artisan filament:assets which I did and now it works. Do we just need to know this command and run it when we make css changes, or should this be added to my npm run dev command somehow? What's the normal setup here?
25 replies