Skip to content

Shapes

type: "shape"4 styles · 12 properties

Renders any SVG path with fill, stroke and aspect-ratio control — stars, arrows, blobs, logos and every custom vector in between.

Updated

Open in the editor
Preview · DefaultReal render, 1200 × 630
Shapes component, Default style, sample render
The shapes component’s default look.

Try your own data

Change the shapes here with the same controls the editor shows. The preview updates as you type, and you get the API request for your changes.

4 styles

Pick one to preview it

Examples

Each example is the same shapes with different values. The JSON is what you send.

Featured-product star

A gold star with a darker outline, ready to sit beside an imagined "Editor's pick" product title.

{
  "star.fillColor": "#FBBF24",
  "star.strokeColor": "#D97706",
  "star.strokeWidth": 3
}

Star burst on a dark hero

A soft violet star as the decorative centerpiece of a dark launch-announcement backdrop.

{
  "star.fillColor": "#A78BFA"
}

Good for

  • Brand marks and logo shapes stamped into generated images
  • Decorative blobs and stars behind content
  • Arrows and callouts in explainer graphics

New values, every render

Recolor per render with '<key>.fillColor'; strokeColor, strokeWidth and even the path are overridable. Send only the properties you want to change; everything else keeps its design value. The API guides cover every language.

Or ask your AI agent“Using imejis, make a 1200 × 630 image with a Shapes component (type "shape") filled with my data, then give me a render link I can call with new values.”
curl -X POST "https://render.imejis.io/v1/$IMEJIS_DESIGN_ID" \
  -H "dma-api-key: $IMEJIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "star.fillColor": "#8B5CF6"
  }' \
  -o image.png

Properties

Every property works the same in the editor, in design JSON and as an API override.

12 properties shown

PropertyTypeDefaultWhat it does
Data
pathstring"M 10 10 L 90 90"SVG path data drawn inside the viewBox.
viewBoxstring"0 0 100 100"SVG viewBox the path coordinates are relative to.
Look
fillColorcolor"#808080"Fill color.
strokeColorcolor"transparent"Stroke (outline) color.
strokeWidthnumber0Stroke width in viewBox units.
preserveAspectRatiostring"xMidYMid meet"SVG preserveAspectRatio value controlling how the path scales.
Frame
opacitynumber1Overall component opacity from 0 (transparent) to 1 (opaque).
borderWidthnumber0Border thickness in pixels around the component.
borderColorcolor"transparent"Border color (any CSS color).
borderStyle'solid' | 'dashed' | 'dotted' | 'double' | 'none'"solid"Border line style.
borderRadiusnumber0Corner radius in pixels.
boxShadowstring—CSS box-shadow applied to the component, e.g. "0 4px 6px rgba(0,0,0,0.1)".

Shapes questions

Can I use my own SVG shapes?

Yes — the path property takes raw SVG path data with a matching viewBox, so any single-path vector renders directly.

Can I change the shape or color per API call?

Yes — '<key>.fillColor' recolors it, and strokeColor, strokeWidth and even the path itself are overridable per render.

Can I render outline-only shapes?

Set fillColor to transparent and give strokeColor and strokeWidth — the Outlined variant shows exactly this.

How does the shape scale inside its box?

Path coordinates are relative to the viewBox and scale to the component size; preserveAspectRatio controls whether the aspect ratio is kept.

Free tools built on it, guides that use it, and the components that sit beside it.