Custom tailwind

I need to use something like
<span class="bg-blue-100 text-blue-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300">Default</span>
<span class="bg-blue-100 text-blue-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300">Default</span>
But the style is not applied. I read this https://filamentphp.com/docs/2.x/notifications/installation#configuring-styles but I didn't solve the problem. How can I do it?
Filament
Installation - Notifications - Filament
Elegant TALL stack notifications for Laravel artisans.
7 Replies
Dennis Koch
Dennis Koch2y ago
You were reading "Notification" installation instructions. But you need the theme instructions for the admin panel: https://filamentphp.com/docs/2.x/admin/appearance#building-themes
Filament
Appearance - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
DianaMujoiu
DianaMujoiuOP2y ago
And with this changes should I be able add what tailwind component I want ?
Dennis Koch
Dennis Koch2y ago
Yes.
DianaMujoiu
DianaMujoiuOP2y ago
Ok. Thank you🙏🏻
DianaMujoiu
DianaMujoiuOP2y ago
My page is looking like this after I put this
Filament::serving(function () {
// Using Vite
Filament::registerViteTheme('resources/css/filament.css');
});
Filament::serving(function () {
// Using Vite
Filament::registerViteTheme('resources/css/filament.css');
});
in the boot method
Dennis Koch
Dennis Koch2y ago
Did you follow all the steps correctly? And ran npm run build or are running npm run dev?
DianaMujoiu
DianaMujoiuOP2y ago
It was a noob problem 🤦🏼‍♀️. I forgot to add postcss.config
Want results from more Discord servers?
Add your server