Is there a recommended way of getting palette colors in JavaScript? I think
I need this for working with HTML custom elements where CSS outside of the
shadow shadow DOM cannot apply.
This is what I'm doing right now:
twColor(colorName){
return $tw.wiki.extractTiddlerDataItem(
$tw.wiki.getTiddlerText("$:/palette","$:/palettes/Vanilla"),
colorName
);
}
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/tiddlywikidev/b531c512-9404-4b4e-ab23-3e471ba70e40%40googlegroups.com.