Skip to content

Rectangle

type: "rect"3 styles · 7 properties

A filled rectangle with borders, rounding, opacity and shadows — the building block for cards, panels, badges and backgrounds.

Updated

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

Try your own data

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

3 styles

Pick one to preview it

Examples

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

Deploy-succeeded toast panel

A green rounded panel serving as the backdrop of a "Deploy succeeded" notification card.

{
  "panel.fillColor": "#10B981",
  "panel.borderRadius": 12,
  "panel.boxShadow": "0 8px 20px rgba(16,185,129,0.35)"
}

Dark hero backdrop

A near-full-canvas navy panel laid behind an imagined OG-image headline and logo.

{
  "panel.fillColor": "#0F172A",
  "panel.borderRadius": 24
}

Good for

  • Card backdrops behind dynamic text and photos
  • Status badges recolored by state per render
  • Section panels for OG image layouts

New values, every render

Recolor per render with '<key>.fillColor'; opacity and borderColor are overridable too. 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 Rectangle component (type "rect") 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 '{
    "panel.fillColor": "#0EA5E9"
  }' \
  -o image.png

Properties

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

7 properties shown

PropertyTypeDefaultWhat it does
Look
fillColorcolor"#808080"Fill color.
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)".

Rectangle questions

Can I change the color per API call?

Yes — '<key>.fillColor' recolors the rectangle per render; opacity and border properties are overridable too.

Can I make rounded cards and pills?

borderRadius rounds the corners — push it high for a fully-rounded pill — and borders and box shadows finish the card look.

What is the rectangle typically used for?

It is the layout building block: cards, panels, badges, overlays and backgrounds layered behind text, images and charts.

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