Vault Banner Icon Customisation - damiankorcz/Prism-Theme GitHub Wiki

🤔 What is the Vault Banner Icon?

Vault Banner Example

By default, Prism comes with the Vault Banner enabled. This converts the Vault name into an element with an icon next to it! This is purely an aesthetic change which enables you to change the icon and add that extra bit of customisation to your vault.

📂 How to change the Vault Banner Icon?

There are two ways outlined below to replace the Vault Banner Icon in Prism. A great source of icons is Icons8. To replace the icon do the following:

  1. Look for an icon you like on Icons8 and click on it.
  2. Then click on the Download Button.

image

Option 1 - Style Settings

You should be presented with the following window:

Icons8 Link(CDN) Example

  1. Select the Link (CDN) format. You can leave the Icon size on the default setting since usually it looks fine.
  2. Copy the URL highlighted and nothing else.
  3. Take the URL and navigate to Style Settings in your Obsidian Vault.
  4. The option to change the Vault Banner Icon is under: Prism Theme -> Appearance -> Custom Vault Banner -> Custom Vault Banner (URL).
  5. Now paste the URL inside the text field encapsulated in a url(). e.g. url(https://img.icons8.com/arcade/64/null/toolbox.png)

Option 2 - CSS Snippet (Best for offline vaults)

The second option is to use a Base64 encoded icon instead. This assures that the icon will always render even if your device doesn't have an internet connection since all the data necessary for the icon is stored.

You should be presented with the following window:

Icons8 Base64 Example

  1. Select the Base64 format. You can leave the Icon size on the default setting since usually it looks fine.
  2. Select everything in-between and including the quotes "".
  3. Due to an incompatibility with using Base64 encodes in Style Settings, in order to use this option, you will need to create this simple CSS Snippet:
body {
    --custom-vault-banner-icon-url: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAAEJElEQVR4nO2bS28bVRTHf9cT2yWmjp0gmgQhAVFAbCiteFWqKrICCl3wAUBIFCo27aZRJT4C7JAKtOIlAcoHYMUqKUIFJBCglnRBKjUPWlrHj8SuH+N5sPA4LxLfO/aMx03mJ105c3PmzLn/uffMneMEQkJCQkJC9izCL8dfPHvpYcsWHwLHgJE23dwCLtmaOfnOLxNL3kW3ji8COIP/Axj0yGXW1syn/RAh4rVDAOfOezV4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6zfxV7HAhaAqzLDXVMQ2QalvXY7S2AQGKD3lkARWAWyTvN0CeyEahLcmPA0GjNPlgQ39jUTYDPxeZYE/wMxwHA3N25UwgAAAABJRU5ErkJggg==");
}
  1. Replace the text between the brackets in url() with what you copied for your chosen icon.
  2. Save and Enable the snippet in your vault.