BoardGameBuilder Docs
Elements

Line Element

Draw a horizontal or vertical line with customizable stroke and color.

Line Element

The Line element draws a straight horizontal or vertical rule within its bounding box. Use it as a section divider, a decorative separator between title and body text, or a visual delimiter between stats.

Line element as a card divider

Properties

PropertyTypeDefaultDescription
Strokenumber0.5Line thickness in mm
StrokeColorstring#000000Line color (hex, named, or constant)
StrokeOpacitynumber1Line opacity (0–1)
OrientationstringHorizontalHorizontal or Vertical
AlignstringCenterAlignment of the line within its bounding box

Stroke

Stroke sets the thickness of the line in millimetres. A value of 0 makes the line invisible. The default of 0.5 mm produces a thin rule suitable for most card dividers. Increase this value for thicker decorative rules — typical range is 0.3 mm to 2 mm.

Stroke thickness 0.3, 0.5, 1.0, 2.0

StrokeColor

StrokeColor determines the color of the rendered line. Accepts #RRGGBB hex values, CSS named colors, and [[ConstantName]] constant references. When not specified, the line is black. Using constant references allows a consistent separator color to be changed across the template from one place.

StrokeColor — black, gold, faction color

StrokeOpacity

StrokeOpacity controls how transparent the line is, from 0 (invisible) to 1 (fully opaque). A semi-transparent value like 0.3 creates a subtle watermark-style divider that does not compete visually with the card content.

Orientation

Orientation specifies whether the line runs Horizontal or Vertical within its bounding box. A Horizontal line spans the full width of the element; a Vertical line spans the full height. The element must have a non-zero dimension perpendicular to the orientation (height for Horizontal, width for Vertical) for the line to be visible.

Horizontal vs Vertical orientation

Align

Align controls where within the bounding box the line is placed perpendicularly to its direction. For a Horizontal line this controls vertical placement: Top, Center, or Bottom within the element's height. For a Vertical line it controls horizontal placement: Left, Center, or Right. The default Center positions the line in the middle of the element.

On this page