*Is it possible to reference colors in the ColorPalette within a plugin/macro?* At first, I thought I'd be able to set a JS variable from the value of a slice within the color palette, like so:
> var myPluginColor1 = [[ColorPalette::PrimaryDark]]; ... but all that does is set my variable equal to the literal string '[[ColorPalette::PrimaryDark]]'. I tried adding quotes around the brackets, hoping it would parse the value of that tiddler slice, but that didn't work. Is there a way to get the hex value from the Color Palette and associate it with a variable? And on a related note: *Can you create shadow color palettes in a plugin, similar to the way you can create shadow stylesheets?* As far as I can tell, you can't pull in additional palettes by referencing them within the [[ColorPalette]] tiddler inside double brackets (i.e., [[MyExtraColorPalette]]) as you can additional style sheets. — Doing these things would certainly come in handy, as you could create plugins that used the pre-existing color schemes of TiddlyWikis rather than hard-coded colors. (As it is, I've have to tweak a few plugins when I move them to TWs with dark backgrounds and light foregrounds.) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To view this discussion on the web visit https://groups.google.com/d/msg/tiddlywiki/-/u3yRrYHxL-kJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

