How to define styling per grid column

Hi, I would like to specify styling options once per column in my grid, instead item-wise.

How can the following grid be styled more efficiently?

            #grid(
              columns: (auto, 1fr),
              align: (left, right),

              [#text(weight: "bold")[Item]], [#text(font: "Helvetica")[Item Info]],
              [#text(weight: "bold")[Item]], [#text(font: "Helvetica")[Item Info]],
              [#text(weight: "bold")[Item]], [#text(font: "Helvetica")[Item Info]],
              [#text(weight: "bold")[Item]], [#text(font: "Helvetica")[Item Info]]
            )

Hi there,

Something as simple as:

#show grid.cell.where(x:0): set text(blue)
#show grid.cell.where(x:1): set text(red)

#grid(
  columns: (auto, 1fr),
  align: (left, right),
  [Blue Text], [Red Text],
)
3 Likes