The question arose in me, "Why use CSS variables if TiddlyWiki can handle them too?". Thinking through the question, the answer is pretty clear: it improves a lot in terms of performance if the TiddlyWiki variables are only used when assigning a value to a CSS variable, and using CSS variables everywhere else. This way we don’t have to run macros and filters unnecessarily.
Good idea! Mohammad a következőt írta (2020. december 8., kedd, 8:58:41 UTC+1): > CSS tiddlers are an important part of Tiddlywiki to adjust look and feel > of different elements. For some use cases (like plugins, webpages, blogs) > you may need to set properties of many elements. > > What is your best practice for such cases: > > 1. Using *css variables* like > https://www.w3schools.com/css/css3_variables.asp > 2. Using a Tiddlywiki *dictionary tiddler* and a few *macros/transclusion* > > Note that this way one have some small parameter to set them manually and > a large number of properties will be set dynamically, so the > maintainability, hackability, scalability, ... all will be improved. > > --Mohammad > -- 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/82dc0acf-02d1-49be-a3f8-230e4c05022bn%40googlegroups.com.

