Is it possible to use class field to style only the body of the tiddler

I used class field, but it applies the style to the whole tiddler.

Is it possible to use the class field but apply the style only the body of the tiddler?

Demo

https://random-2023-06-04-1685835909.tiddlyhost.com/

Workaround

An obvious solution is in use a custom field to style a tiddler guide.

1 Like

Give this a try:

.talha-demo .tc-tiddler-body {
background-color: gold;
direction: rtl;

padding: 1px 1.5em;
border-radius: 4px;
}
1 Like

Create a CSS tiddler tagged: $:/tags/Stylesheet

using the following text,

.xx .tc-tiddler-body {
  border: 1px solid green;
}

Where xx is the class defined in the class field of the tiddler that should be styled.
It will be applied to the tiddler body element.

2 Likes