Customize Branding
PaletteAI allows you to customize the appearance of the PaletteAI User Interface (UI) during installation or upgrades. Using Helm chart values, you can customize the following front-end elements:
- Header colors - Background and text colors for the top navigation bar.
- Sidebar colors - Background and text colors for the sidebar navigation.
- Custom logo - Replace the default PaletteAI logo with your organization's logo.
All branding fields are optional. For example, if you only want to customize the logo, you can provide just the logoUrl and leave the other fields empty. For any fields that are missing or contain invalid values, PaletteAI will use the default values.
Prerequisites
-
Helm installed.
-
kubectl installed and available in your
$PATH. -
The
KUBECONFIGenvironment variable set to the path of the PaletteAI hub cluster'skubeconfigfile.export KUBECONFIG=<kubeconfig-location> -
Access to the PaletteAI
values.yamlHelm chart. -
A text editor to modify the PaletteAI
values.yamlHelm chart. -
For custom logos, a publicly accessible image URL (HTTPS recommended).
Enablement
-
Open your PaletteAI
values.yamlfile in a text editor of your choice. Locate thecanvas.brandingsection. Modify the existing values, as desired.canvas:
branding:
brandColor: ''
headerBackgroundColor: ''
sidebarBackgroundColor: ''
logoUrl: ''The following table describes the fields in additional detail. All fields are optional.
Field Description Default brandColorPrimary brand color; drives the brand-bold token (buttons, links, etc.). `` (empty) headerBackgroundColorBackground color for the header. Text color is derived for contrast. `` sidebarBackgroundColorBackground color for the sidebar navigation. Text color is derived for contrast. `` logoUrlURL to custom logo image (HTTP/HTTPS only). Supported formats include PNG, SVG, JPG, and WebP. The URL must be accessible from the Canvas pods (i.e., not behind authentication). Logos will be scaled to 200px width and 40px height. `` (empty) tipColors can be specified in the following formats:
- Hex colors (
#FFFFFF,#FFF) - RGB (
rgb(255, 255, 255)) - RGBA (
rgba(255, 255, 255, 0.8))
- Hex colors (
-
Apply your changes by upgrading your PaletteAI installation.
helm upgrade paletteai spectrocloud/paletteai \
--namespace mural-system \
--values values.yaml
Validate
-
Check that the ConfigMap was created successfully.
kubectl get configmap branding --namespace mural-system -
View the ConfigMap contents. Check that the ConfigMap was populated with the correct values.
kubectl describe configmap branding --namespace mural-system -
Log in to PaletteAI to verify the UI reflects the values defined in the ConfigMap. If the UI is not using the expected colors or logo, check the Canvas pod logs for any branding-related errors.
kubectl logs deployment/canvas --namespace mural-system | grep --ignore-case brand