Skip to main content

Put your own name and logo on it

Prism runs on your infrastructure, in front of your engineers. Out of the box it calls itself Prism, which is the right answer while you are evaluating it and the wrong one once you have rolled it out internally under a name of your own.

Three values change that: what it calls itself, the mark it wears, and its accent colour. Nothing else is themeable — there is one colour and no stylesheet override, deliberately — and all three are optional, so an install that leaves them alone looks exactly like the install you had before.

What changes, and what does not​

Setting branding.productName replaces the word Prism in the browser tab, in the header bar of every page, in the chat page's own wording, in the notes under an answer, on the pages that list and replay your answers, in the answer-feedback export, and in an exported PDF's title (Acme Insights · ROI Insights) and file name. The bar shows the name with the page's name beneath it: with the name set to Acme Insights, the chat page's bar reads Acme Insights over ROI Insights, and the App users page's reads Acme Insights over App users. The self test and the ingestion activity page have no bar; their heading reads Acme Insights · Built-in Self Test and so on. So set the product name alone: Acme Insights, not Acme Insights ROI Insights.

What it does not change:

  • The answers. Ask Prism about itself and it still says Prism. The name is page furniture, not something the model has been told.
  • These docs, in any of the three places you can read them.
  • Anything inside Kubernetes — the release name, the namespace, the object names, the images. Nothing about helm, kubectl or your registry changes.

Setting the name​

branding:
productName: "Acme Insights"

Then helm upgrade as usual. It takes effect when the app pod restarts, which that upgrade does for you. It is plain text: markup in it is escaped and shown as characters, not rendered.

The logo has one constraint worth understanding before you prepare the file: it travels inside the install, as SVG source. It is not a URL. Prism may have no route out of your network and must not depend on one to draw its own header — the same reason its browser libraries are baked into the image rather than loaded from a CDN — so the mark itself lives in your values file and is rendered straight into the page.

That means SVG, not PNG or JPEG. If what you have is a raster export, ask whoever owns your brand assets for the vector original; it is what they drew it in.

Supply it with --set-file rather than pasting it into the values file:

helm upgrade prism ./prism-<version>.tgz \
-f my-values.yaml \
--set-file branding.logoSvg=./acme-insights.svg

If you would rather keep everything in one file, a block scalar works too:

branding:
productName: "Acme Insights"
logoSvg: |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<path d="..." fill="#0b5fff"/>
</svg>

Give it a viewBox, and do not worry about its width and height. Prism ignores both and sizes the mark itself: 32 pixels tall in the header bar, and the height of the heading on the self test and the ingestion activity page. So a 512-pixel export does not arrive 512 pixels tall. Without a viewBox there is nothing to scale and the result will be wrong — that is the one thing to check in the file before you use it.

The mark appears immediately before the product name: at the left of every page's header bar, at the start of the heading on the self test, the ingestion activity page and the sign-in page, and as the browser tab's icon. With no logo set, the tab shows Prism's own mark in your accent colour.

What Prism does to the file​

The logo is rebuilt from shape-drawing elements before it reaches a page. This is not about distrusting you — anyone who can edit your values file can already change the images the appliance runs — it is that the logo is the only setting that lands in a page as markup, and everything else on that page is escaped.

So a file is stripped down to its drawing: <path>, <rect>, <circle>, <g>, gradients, clip paths, <text> and their presentation attributes. Parts that could execute, fetch or navigate do not survive — <script>, <style>, <a>, <image>, <use>, <foreignObject>, animation elements and any event handler.

A file is refused entirely, and the header renders with no logo at all, if:

  • its root element is not <svg> — including an HTML file with an SVG in it;
  • it is not well-formed XML;
  • it is over 64 KB, or expands to over 64 KB.

Refusing beats half-drawing: a mark missing pieces looks like a bug in Prism.

Setting the accent colour​

branding:
accent: "#0b5fff"

Quote the value. Unquoted, accent: #0b5fff is a YAML comment, so the value is empty and Prism's accent stays.

The accent is the fill of a page's main button and the colour of links, active tabs, outlined buttons and the border of a focused input. It appears on every page except the self test and the ingestion activity page, which keep their own colours. It is one hex colour: #rrggbb or the short #rgb. A colour name such as blue, an rgb() value, or anything else is refused when the app pod starts, and the pages keep Prism's own accent. The pod's log says so:

kubectl -n <namespace> logs deploy/prism-app | grep branding

You do not have to check your colour's contrast. Prism uses it in three ways:

  • The main button is filled with your colour. Its label is dark or white, whichever reads better against it. For a few mid-tone colours where neither does, Prism darkens or lightens the fill slightly until one does. Every other colour fills the button exactly. (The administration pages still fill every button with it; they move to one filled button in a later release.)
  • Links and other text in your colour use it as given when it reads against every background Prism draws them on. When it does not, Prism uses a shade of it that does: lighter on a dark page (a dark navy, for example), darker on a light one (a pale yellow). So a link can be a different shade of your colour from the main button.
  • Borders and marks in your colour, such as a focused input's border, an active tab's underline and the star on the organizational context stream, work the same way. They use a shade that stays visible against the page and against the ordinary border colour.

In light mode the header bar is filled with your accent colour, adjusted the same way as the main button, and its text is dark or white, whichever reads better. Your logo sits on a small tile in the dark header colour, so it looks exactly as it does in dark mode, whatever your accent colour. The same tile holds the logo on the sign-in page in light mode. In dark mode there is no tile. So check your logo in dark mode: if it reads there, it reads in both.

Check it worked​

Look at the header. That is the whole check for the name and the logo, and it is why the version is on the page beside it — after a helm upgrade you can see in one glance both that the new name is live and which release is serving it. For the accent, look at a button: the chat page's send button is filled with it.

If the name changed and the logo did not appear, the file was refused. The app pod's log says which of the reasons above applied:

kubectl -n <namespace> logs deploy/prism-app | grep branding

Most often it is the first one: an .svg file that is really an HTML wrapper, or a designer's export whose root element is a comment block. Open it in a text editor and check the first tag.

If neither changed, the values did not reach the pod — check that the upgrade used the values file you think it did, and that the pod actually restarted.