\define colorize() color:$(_c)$
\define cn()
<span style=<<colorize>>>
some text
</span>
\end
<$vars _c=red><<cn>></$vars>
<$vars _c=<<color tiddler-background>>><<cn>></$vars>
I have these macros defined
It works if I specify the color directly
<$vars _c=red><<cn>></$vars>
But how do I specify the color using a macro? This doesn't work:
<$vars _c=<<color tiddler-background>>><<cn>></$vars>
\define colour(name)
<$transclude tiddler={{$:/palette}} index="$name$"><$transclude tiddler="$:/palettes/Vanilla" index="$name$"/></$transclude>
\end
\define color(name)
<<colour $name$>>
\end
<$wikify name="_c" text=<<colour tiddler-background>>><<cn>></$wikify>