How to adjust the style for the terms only in a term list?

Hi,

I’m looking for some solutions to adjust the terms’ style in a term list. Basically, I want the terms are shown in red, but the descriptions shown as normal text. Although I can add some text() function to each term but I still want to achieve this via show-set rules. Can anyone help me?

I figured it out. The default layout of terms is “approximately” equals to

show terms: body => {
  body.children.map(it => pad(left: body.indent + body.hanging-indent, {
    box(inset: (left: -body.hanging-indent), it.term)
    body.separator
    it.description
  })).join()
}

So you can adjust the style of it.term in this show-set rule

There’s also the term.item element for configuring the appearance per item which may reduce some of the boilerplate.