Justin, This is because you can not concatinate text and the results of your macro *<<colour page-background>>* in the way you have.
The resource I am developing is a reference work <https://anthonymuscio.github.io/#Standard%20Nomenclature>for all such tiddly wiki methods that will help a learner, but in this case you may specifically be interested the following; - ❷ Widget and HTML attributes or parameters <https://anthonymuscio.github.io/#%E2%9D%B7%20Widget%20and%20HTML%20attributes%20or%20parameters> Eg <htmltag attribute= is equivalent to *<details open style=* <div class="left"> <$wikify name=styles text="text-align: center; width: 100%; border-radius: 12px; background-color:<<colour page-background>>;"> <details open style=<<styles>> > Content </details> </$wikify> </div> The above is one solution but you can use others to evaluate the variable and concatenate the variable. The same rules apply to Widgets as well. Another example is; \define styles() text-align: center; width: 100%; border-radius: 12px; background-color:<<colour page-background>>; <div class="left"> <$wikify name=styles text="<<styles>>"> <details open style=<<styles>> > Content </details> </$wikify> </div> Regards Tones On Friday, 22 January 2021 at 15:08:02 UTC+11 [email protected] wrote: > Hello all, > I was wondering how I could go about referencing the colors used in the > palette instead of using the colors hexcode, so I can have it change color > shemes to match other palettes, like this: > > *<div class="left">* > *<details open style="text-align: center; width: 100%; border-radius: > 12px; background-color:**<<colour page-background>>;">* > ... > > but when I try this, it doesn't seem to work, so i was wondering if > someone could help/explain why, or where I'm going wrong. > > If possible, explaining like I'm 5 would help, because I'm not very > familiar with the terms used for TW5 (I *just* learned what transclusion > meant haha) > > any help is really appreciated! > > -- 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/d3a24a07-b184-4ddf-b880-75a5c8a33100n%40googlegroups.com.

