Hi everyone,
I have an issue with the color of custom callouts not showing up in Publish.
I have the following code for callouts in my callout.css file under /snippets:
.callout[data-callout="narration"] {
--callout-color: rgb(28, 137, 184);
--callout-icon: lucide-message-square-text;
}
In Obsidian, my custom callout !narration displays the color and icon correctly (green text starting with “Eine SMS”):
When I copy the code into the publish.css file and publish the vault, the site recognizes the callout AND displays the icon, but not the color (text or background).
In the following example, I have only defined the callouts !narration and !map. Two other custom callouts switch to the default appearance and one (!question) is defined as a standard callout. For !narration and !map, the icon appears, but the color is missing.
I have tried using other color formatting in the css (e.g. hex), but that didn’t change anything.
Since the icons are displayed, the css is being recognized and at least partly working, so it can’t be completely wrong. I have tried using the Callout Studio plugin, but the issue remains.
Any help would be appreciated, thanks!

