create_text
Create a text shape in a Penpot file, with options for typography, color, alignment, shadows, blur effects, and blend modes.
Instructions
Create a text shape with color, styling, alignment, shadows, blur effects, and blend modes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position | |
| y | No | Y position | |
| name | No | Shape name | |
| text | No | Text content | Text |
| fileId | Yes | File ID | |
| pageId | Yes | Page ID | |
| opacity | No | Overall shape opacity (0-1) | |
| fontSize | No | Font size | |
| blendMode | No | Blend mode: "normal", "multiply", "screen", "overlay", etc. | normal |
| blurValue | No | Blur intensity in pixels | |
| fillColor | No | Text color (HEX, e.g., "#000000") | #000000 |
| fontStyle | No | Font style: "normal" or "italic" | normal |
| textAlign | No | Text alignment: "left", "center", "right", or "justify" | left |
| fontFamily | No | Font family name | Work Sans |
| fontWeight | No | Font weight: "normal", "bold", "100"-"900" | normal |
| lineHeight | No | Line height multiplier | |
| shadowBlur | No | Shadow blur radius in pixels | |
| fillOpacity | No | Text opacity (0-1) | |
| shadowColor | No | Shadow color (HEX, e.g., "#000000") | #000000 |
| shadowStyle | No | Shadow style: "drop-shadow" or "inner-shadow" | drop-shadow |
| shadowSpread | No | Shadow spread in pixels | |
| letterSpacing | No | Letter spacing in pixels | |
| shadowOffsetX | No | Shadow X offset in pixels | |
| shadowOffsetY | No | Shadow Y offset in pixels | |
| shadowOpacity | No | Shadow opacity (0-1) | |
| verticalAlign | No | Vertical alignment: "top", "center", or "bottom" | top |
| textDecoration | No | Text decoration: "none", "underline", "line-through" | none |