Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Chart Palette Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Dashboard/admin UX polish: Lets us standardize chart color theming across every Filament chart widget (pie, bar, line, etc.) with a single trait, so analytics dashboards look intentional rather than default-Chart.js random. Supports decisions like "do we invest in a design system for internal admin tools?" — this package is a cheap, high-leverage yes.
  • Build vs. buy for chart theming: The core functionality (palette generation, chart-type-aware ordering, OKLCH→RGBA conversion) is ~100–200 lines of glue code we could write ourselves. This package is a buy (adopt) decision primarily because of the Tailwind v4 OKLCH conversion, which is genuinely fiddly and likely to be re-broken by upstream Tailwind/Filament changes.
  • Tailwind v4 / Filament v4–v5 upgrade readiness: Directly unblocks or de-risks roadmap items involving Filament 4/5 migration. If we're planning a Filament upgrade, this package is compatible today and removes one "charts look broken after upgrade" risk from the migration checklist.
  • Feature scoping for reporting/BI surfaces: If we're building customer-facing or exec-facing reporting, consistent, semantically meaningful chart colors (e.g., ordered palettes for categorical pie charts vs. sequential for bar) are a real (if small) product quality lever. This package shifts "make charts look good" from design/eng effort to a composer require.
  • Not a differentiator: This does not support any decision about what to build or which market to serve. Treat it as infrastructure, not product strategy.

When to Consider This Package

Consider adopting when:

  • We are on (or migrating to) Filament v4 or v5 and use ChartWidget in admin panels or dashboards.
  • We are on Tailwind CSS v4, where theme colors are expressed in OKLCH and naive hex/RGBA assumptions in chart configs produce wrong or muddy colors.
  • We have multiple chart types in one app and want palette ordering that adapts per chart type without per-widget color arrays.
  • We want per-dataset or per-shade color control without hand-maintaining a color config file.
  • The alternative is bespoke helper code that we'd own forever, including the OKLCH→RGBA math and Tailwind-version coupling.

Look elsewhere / skip when:

  • We are not on Filament (plain Laravel, Livewire-only, Inertia/React, or a different admin framework) — the trait is Filament-specific and provides no value.
  • We are on Filament v3 or Tailwind v3 — compatibility is stated as v4/v5 and Tailwind v4 only; adopting creates a version-lock trap ahead of our own upgrade.
  • We have a strict design system where colors must come from a governed token source (brand tokens, accessibility-validated palettes). A package-generated palette may conflict with design governance and contrast/accessibility requirements.
  • Accessibility (WCAG contrast, colorblind-safe categorical sets) is a hard requirement — nothing in the release notes indicates a11y validation, so we'd be choosing convenience over compliance and would need to wrap/override palettes anyway.
  • Supply-chain risk tolerance is low: this is a single-maintainer, v1.0.0, narrowly-scoped package. If we can't accept a small third-party dependency for cosmetic chart coloring, vendor the logic instead.
  • We only have one or two charts — the abstraction cost isn't repaid.

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.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package