jccoca/filament-chart-palette
A Filament plugin for defining and managing chart color palettes, helping you keep dashboard widgets and charts visually consistent. Configure reusable colors and apply them across your Filament panels with minimal setup.
Consider adopting when:
ChartWidget in admin panels or dashboards.Look elsewhere / skip when:
Adoption guardrails: pin the version, wrap the trait behind our own base chart widget class so a future swap is a one-file change, and eyeball rendered output against our brand palette before rolling out broadly.
For executives: A small, free, open-source add-on that makes the charts in our admin and reporting screens look consistent and on-brand with roughly one line of code per chart. It removes a recurring source of "why do our dashboards look unfinished?" polish work and reduces effort in our planned Filament upgrade. Cost is near zero; the main risk is a minor dependency on a young single-maintainer package, which we contain by pinning the version and isolating it behind our own widget class.
For engineering: A HasChartPalette trait that supplies chart-type-aware color palettes derived from Filament's Color facade, including automatic Tailwind v4 OKLCH→RGBA conversion and per-dataset/per-shade overrides. Supports Filament v4 and v5. Integration is a use statement plus a getChartPalette($this->getType()) call in getData(). It replaces hand-rolled color arrays and ad-hoc conversion helpers we would otherwise maintain. Caveats: v1.0.0, single maintainer, no stated accessibility validation — so wrap it in a project-owned base ChartWidget, pin the constraint, and don't let palette logic leak into individual widgets.
How can I help you explore Laravel packages today?