Skip to main content
The plan style sets the colours and line widths of the on-screen plan. opThemeDefaults lists the default of every --op-* CSS variable that the SDK controls and drawings read. Set a name on the container of an editor or sheet, or on :root, to replace its default.

Import

Example

Notes

  • A name that you do not set keeps the value in opThemeDefaults.

planStyle

The style of an element type, in the plan state that edgeClass names.

PLAN_STYLE

Keys are the literal ElementType values elements actually report, which is not always the name you would guess: a network Wall reports WALL, Space reports SPACECONTAINER, and every opening subclass — Door, Window, WallOpening — reports its own type or OPENING.

DEFAULT_PLAN_STYLE

opThemeDefaults

The default of every CSS variable that the SDK’s in-canvas controls and on-screen drawings read.

Types

PlanStyle type

Drafting style for one source element type in the plan view.
string
required
Ink (stroke) colour — overrides the element’s 3D material colour.
number
required
Screen-constant lineweight in px. Applied with vector-effect: non-scaling-stroke so weights stay crisp and zoom-independent — the hallmark of CAD drafting.
string
Poché fill for cut solids (region primitives only); undefined = no fill.
number[]
Dash runs in screen px; undefined = continuous.
Last modified on December 1, 2026