I am trying to make a card template with HTML, CSS and wiki-text which changes based on the palette, the code for it looks something along the lines like the following:
<div style="width:350px;background-color:<<colour muted-foreground>>;">
<$image source=image.png width=100% />
<center>{{!!title}}</center>
</div>
A problem that arises is that the colour macro will just be ignored by the parser and will not give the <div> a background colour. How am I able to use the macro, within a HTML elements style.
p.s - I know I shouldn’t be using style attributes inside an element but I want to write the least amount of code possible within the least amount of tiddlers possible, preferably one.