The $:/palette tiddler is simply a reference to a selected “dictionary tiddler” (e.g., $:/palettes/Vanilla) with type=application/x-tiddler-dictionary that contains a list of color indexes and values.
Within this dictionary tiddler, the values can be any valid CSS color (including hex, rgb(), or X11 color names). A value can also be a macro reference (commonly the <<colour>> macro, which “delegates processing to another entry”), or any other wikitext such as simple transclusion (e.g. {{myColor}}), filtered transclusion (e.g. {{{ [{MyColor}!match[]] ~[[pink]] }}}) or even more complex wikiscript syntax including conditional %if syntax.
Try this:
- go to https://tiddlywiki.com
- open
$:/ControlPanel > Appearance > Palette
- scroll to the bottom and click the “show editor” button
- The 5th listed item is “General background”, with a default value of
#ffffff
- Change this value to
{{{ [{MyColor}!match[]] ~[[pink]] }}}
- The tiddler backgrounds (and some other page elements) will now be pink
- Then, create a “MyColor” tiddler containing text
red
- The tiddler backgrounds (and some other page elements) will now be red
If this isn’t working for you, then there’s something else interferring with the TWCore standard handling for color palettes.
Also, you might like to try my enhanced TiddlyTools/Palettes/Manager which provides several nice TWCore-compatible features including:
- A [+] button to add new custom entries to a palette definition
- A summary “color map” that shows all colors being used. Click a map “swatch” for a popup to quickly assign a new color value to all palette entries that are using that color
- “Undo” handling for each palette entry to revert to the last saved value
- Each palette value edit field also has a popup (click the down arrow) to select from a list of available palette entries (plus “transparent” and “inherit”). If you install TiddlyTools/Settings/Colors/X11 then the list will also show 145 standard X11 color names.
enjoy,
-e