Metabase MB_APPLICATION_COLORS

Hello,

any sample on how to set MB_APPLICATION_COLORS with values on environment variables?

Thanks in advance
Nandish

Hi @nandishss
The easiest would be to look in your browser developer Network-tab, when saving colors on Admin > Settings > Whitelabel
But something like this should work, if you're trying to set all colors:

MB_APPLICATION_COLORS='{"value":{"accent1":"#00bfaf","accent2":"#a07fdc","accent3":"#7ecc66","accent4":"#f9c45c","accent5":"#3a213f","accent6":"#e65c1d","accent7":"#292450","brand":"#e35054","nav":"#e35054"}}'

I would recommend using the support email, when working with the Enterprise Edition.

@flamber's suggestion doesn't appear to work:

Error parsing Setting :application-colors: Unexpected character (''' (code 39)):

env var can be passed like
Docker:

MB_APPLICATION_COLORS: '{"brand":"#009688","filter":"#673AB7","summarize":"#2196F3","accent1":"#FF756B","accent2":"#3A6477","accent3":"#F34197","accent4":"#1976D2","accent5":"#673AB7","accent6":"#880E4F","accent7":"#FBCE2C","accent8":"#FF5722","accent9":"#4DD0E1","accent10":"#E91E63","accent11":"#F8BBD0","accent12":"#3F51B5","accent13":"#4CAF50","accent14":"#9C27B0","accent15":"#388E3C","accent16":"#FFA000","accent17":"#A1887F","accent18":"#FFB74D","accent19":"#87AEC1","accent20":"#E91E63","accent21":"#311B92","accent22":"#BA68C8","accent23":"#1B5E20","accent24":"#BF360C"}'

normal env var in a shell:

MB_APPLICATION_COLORS={"accent2":"#8CC8B9","accent0-dark":"#A3FFD0","accent5":"#FFC700","accent3-light":"#B400F5","accent5-dark":"#FFEA7C","accent6-light":"#FB6900","accent3-dark":"#E9ADFF","accent2-light":"#50A590","accent1-light":"#C09FF8","accent6":"#FF9518","brand":"#21282E","accent1":"#9D63FF","accent3":"#D356FF","filter":"#17DF87","accent0-light":"#13B971","accent6-dark":"#FFC485","accent0":"#17DF87","accent4":"#FF4158","accent7-light":"#F0F1F6","accent2-dark":"#BADED5","accent7-dark":"#E4E1DD","accent4-dark":"#FFADB7","accent1-dark":"#D4C5FF","accent7":"#21282E","accent4-light":"#FF7081","accent5-light":"#FFD747","summarize":"#21282E"}"

it works, I'm using them like that