set_style assigns a default style per role, and a block level
style merges on top of its role style for that one block.
Roles
set_style takes a partial map from role to style. The roles are:
style:
Style properties
StyleProperties is a CSS like bag. The fields that matter most for documents:
One of the bundled font names or a custom registered name. See
Fonts and weights.
Font size in points.
Selects a real weight by instancing the variable font. Accepts a weight name or a number.
See Fonts and weights.
Line height multiplier.
Horizontal text alignment.
Opt string parts into markdown parsing. See Inline content.
Outer spacing. Also
margin_top, margin_right, margin_bottom, and margin_left.Inner spacing. Also
padding_top, padding_right, padding_bottom, and padding_left.Box width.
Box height.
color and background_color accept a hex string or a Color, so ColorLike = string | Color. See Color.