How to create a custom color palette in Panel?

Hey guys! :smiling_face_with_three_hearts:

I am working on a project that uses Panel for data visualization, and I’m itching to create a custom color palette. Panel’s default schemes are great, but I need something that aligns perfectly with our branding and keeps things visually clear across all the plots and widgets.

From what I have gathered, building a custom color palette means defining a set of colors that will consistently show up throughout the dashboard. The challenge is figuring out the exact steps and best practices to make this happen within Panel.

Any chance someone could walk me through creating and using a custom color palette in Panel? Here’s what I’m particularly interested in:

  • How do I pick and specify them?
  • How do I make sure these colors get applied uniformly across all the different components in my dashboard?
  • Can I integrate these custom colors with existing themes or styles I might be using?

Bonus points if anyone has examples or resources showing how to implement custom color palettes in Panel. Seeing things in action would be a huge help!
I also check this : https://discourse.holoviz.org/t/multi-page-panel-app-with-custom-templates-need-to-run-async-code-to-get-template-variabmendix But I have not found any solution.

Thanks a bunch for any help or insights you can offer.

Respected member :innocent:

@ahuang11 TastyMap GitHub - ahuang11/tastymap: 🎨 colormaps cooked for your palate or you can look at some of my questions :slight_smile:

1 Like

See Customize Template Theme — Panel v1.4.4 (holoviz.org) for applying colors to a template.

Check out TastyMap or the Panel UI TastyKitchen - a Hugging Face Space by ahuang11 for creating colormaps/palettes.

1 Like

Actually the first link is only for bokeh plots; see these params in FastListTemplate.