Sorry guys, I know I have a lot of questions. I've gotten pretty far on 
what I'm trying to do. I have a macro where the main one that is called 
calls another in the way the tag pill macro works.

So I have colour={{{ [<__tag__>get[color]] }}} being passed to a 2nd where 
I do some manipulation and whatnot. 
This doesn't give me a variable like "#ff4455" but a list of parameters 
with colors. One of them is "primary" and I can see this is the color from 
the tiddler.

alert-background: #ffe476
alert-border: #b99e2f
alert-highlight: #881122
alert-muted-foreground: #b99e2f
background: #ffffff
blockquote-bar: <<colour muted-foreground>>
button-background:...
...
primary: #ff4455
...


SO this code:
<$vars foregroundColor=<<contrastcolour target:"""$colour$"""  
fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" 
colourB:"""$colourB$""">>
backgroundColor="""$colour$"""  >

won't work with this. I hardcoded a test color and it does work that way, 
which leads me to believe colour={{{ [<__tag__>get[color]] }}}. is indeed 
giving me something
other than a usable hex color.

How can I get a usable $colour$ variable into this macro from the color 
field in the tiddler?

Thanks again!

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c8ccfdcc-6c33-4f1d-8fe8-621d5f8ad420%40googlegroups.com.

Reply via email to