© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
2 replies
Samir

Change background color of my widgets

What I am trying to do:

I have widgets where i'm trying to add colors thresholds
For example on the 1st screen, i'd like to have red colored background between 0 and 2.5, orange between 2.5 and 4 and red if more than 4

What I did:

Creating a thresholdbackground.js in resources>js
adding it to vite.config.js
adding to my widget the function getChartConfiguration()
php artisan optimize:clear
run npm build

My issue/the error: no error but colors not appearing

Code:
(code in screenshots)

PS: i'm new to laravel, been learning to code since 3 months but i rely heavily on chatgpt for this type of custom implementation

Thanks in advance 🙂
image.png
image.png
image.png
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

change background color
FilamentFFilament / ❓┊help
3y ago
Change background color
FilamentFFilament / ❓┊help
3y ago
change row background color
FilamentFFilament / ❓┊help
2y ago
change row background color
FilamentFFilament / ❓┊help
2y ago