branchandroot: oak against sky (Default)
Branch ([personal profile] branchandroot) wrote in [site community profile] dreamscapes 2009-08-21 04:26 pm (UTC)

No, no, the Properties Available section of this post.

Okay, let's see if I can explain this. Local variables, the ones without an asterisk, only work in the particular layer they are written in. They cannot be inherited, the way the universal variables (with asterisk) from the core can.

So any non-asterisk variables that you may see in the Transmogrified layout layer can only be used in that layer. The same is true for non-asterisk variables you see in the Tabula Rasa layer. They only get recognized and parsed locally (in that particular layer).

Now for the slightly complicated bit: if your theme is a child of the layer where the non-asterisk variables you show above are set, then if you simply set the asterisk variables involved ($*color_page_link_etc) to the colors you want, things will Magically Happen and you don't have to mess around with setting the CSS specifically yourself; the layout layer will do that for you, because the theme calls on everything the layout layer does and adds whatever it does on top of that.

If your theme is not a child of the layer where those variables are set (and I think that is a Tabula Rasa set of variables and not a Transmogrified one), you can't use them at all. You could, theoretically, paste those variable definition strings into your print_stylesheet function, but, because Transmogrified does not set the universal variables in question ($*color_page_link_etc) to "use", your theme layer still won't know what they are and what to do with them. You can only set "use" in a layout layer, not a theme layer.

Bottom line, if you are making a theme layer, you need to stick to the universal variables that are set to "use" in the parent layout layer and do not try to use local variables from any other layer.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting