genart.dev
Plugins

Layout Guides

Compositional guides — grid, rule of thirds, golden ratio, diagonals, and custom.

Non-rendering overlay guides that help compose elements according to classical design principles.

Installation

npm install @genart-dev/plugin-layout-guides

Layer Types

Type IDDisplay NameDescription
guide:gridGridRegular grid overlay with configurable columns and rows
guide:thirdsRule of Thirds3x3 grid with intersection points
guide:golden-ratioGolden RatioPhi-based division lines
guide:diagonalDiagonalDiagonal guide lines from corners
guide:customCustom GuideUser-defined guide lines at arbitrary positions

Properties

guide:grid

PropertyTypeDefaultDescription
columnsnumber4Number of columns
rowsnumber4Number of rows
colorcolor"#00aaff40"Guide line color
lineWidthnumber1Line width in pixels
showIntersectionsbooleanfalseHighlight intersection points

guide:thirds

PropertyTypeDefaultDescription
colorcolor"#00aaff40"Guide line color
lineWidthnumber1Line width in pixels
showPowerPointsbooleantrueShow intersection power points

guide:golden-ratio

PropertyTypeDefaultDescription
colorcolor"#ffaa0040"Guide line color
lineWidthnumber1Line width in pixels
orientationselect"both"Orientation: horizontal, vertical, both

guide:diagonal

PropertyTypeDefaultDescription
colorcolor"#ff440040"Guide line color
lineWidthnumber1Line width in pixels
typeselect"corners"Type: corners, baroque, sinister

guide:custom

PropertyTypeDefaultDescription
guidesarray[]Array of guide line definitions
colorcolor"#ff00ff40"Default guide line color
lineWidthnumber1Default line width

MCP Tools

ToolDescription
design_add_guideAdd a standard guide layer (grid, thirds, golden-ratio, diagonal)
design_add_custom_guideAdd a custom guide with arbitrary line positions
design_clear_guidesRemove all guide layers
design_toggle_guidesToggle visibility of all guide layers
design_list_shapesList available guide types and their properties

Example

{
  "tool": "design_add_layer",
  "arguments": {
    "type": "guide:golden-ratio",
    "properties": {
      "color": "#ffaa0060",
      "lineWidth": 2,
      "orientation": "both"
    }
  }
}