Hi Tony, I think this can be done using tag and a conditional viewtemplate!
If you look at https://kookma.github.io/TW-Semantic-Colors/ It uses tags for this purpose. for example beginner tag create a blue border and like that If this work for you I can also create the one you asked above or you can hack the Semantic colors for your case. Best Mohammad On Sunday, November 3, 2019 at 7:26:17 AM UTC+3:30, TonyM wrote: > > Mohammad, > > Thanks for sharing this. I note multiple classes can be placed in a single > tiddlers class field and they are all applied. > > An additional style could be used to colour the background of the title > which I use myself. However I tend to change the colour according to a > condition. For example tiddlers set for archive have a black border around > the title and the title background is set to green (new) yellow (in > progress) Red (closed), Yellow (Canceled). > > It would be nice to document the way of doing this conditionally if > possible in css. > > Regards > Tony > > On Saturday, November 2, 2019 at 1:27:12 AM UTC+11, Mohammad wrote: >> >> Tiddlywiki from release 5.1.16 has a great feature called user class >> <https://tiddlywiki.com/prerelease/#Custom%20styles%20by%20user-class>. >> One can define a *class *field, that is directly inserted into the >> *ViewTemplate* and it can be used for styling. >> >> This feature is under-documented and have got a little attention, but it >> is quite powerful in customizing the visual style of tiddlers. >> >> >> Here in Shiraz plugin 2.0.0 beta 7 <https://github.com/kookma/Shiraz>, a >> section has been dedicated and several css classes are provided to be used >> with user class >> to customize tiddlers. Different examples have been provided to see how >> it works. >> >> demo: Tiddler Custom Style Tutorial >> <https://kookma.github.io/Shiraz/#Tiddler%20Custom%20Style%20Tutorial:%5B%5BTiddler%20Custom%20Style%20Tutorial%5D%5D%20demo%2Ftiddler-title-color-primary%20demo%2Ftiddler-text-color-danger%20demo%2Fcolored-left-border-primary%20demo%2Ftiddler-background-lavenderblush> >> >> >> --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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ba69fbbc-3934-4e30-8f6e-a0a3ba1e2762%40googlegroups.com.