Data
- Components
- Shapes
- Rectangle
Rectangle
type: "rect"3 styles · 7 propertiesA filled rectangle with borders, rounding, opacity and shadows — the building block for cards, panels, badges and backgrounds.
Updated



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 itExamples
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.
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.pngconst res = await fetch(`https://render.imejis.io/v1/${process.env.IMEJIS_DESIGN_ID}`, {
method: "POST",
headers: {
"dma-api-key": process.env.IMEJIS_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"panel.fillColor": "#0EA5E9"
}),
})
if (!res.ok) throw new Error(`render failed: ${res.status}`)
const image = Buffer.from(await res.arrayBuffer())import os
import requests
response = requests.post(
f"https://render.imejis.io/v1/{os.environ['IMEJIS_DESIGN_ID']}",
headers={
"dma-api-key": os.environ["IMEJIS_API_KEY"],
"Content-Type": "application/json",
},
json={
"panel.fillColor": "#0EA5E9"
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Properties
Every property works the same in the editor, in design JSON and as an API override.
7 properties shown
| Property | Type | Default | What it does |
|---|---|---|---|
| Look | |||
fillColor | color | "#808080" | Fill color. |
| Frame | |||
opacity | number | 1 | Overall component opacity from 0 (transparent) to 1 (opaque). |
borderWidth | number | 0 | Border thickness in pixels around the component. |
borderColor | color | "transparent" | Border color (any CSS color). |
borderStyle | 'solid' | 'dashed' | 'dotted' | 'double' | 'none' | "solid" | Border line style. |
borderRadius | number | 0 | Corner radius in pixels. |
boxShadow | string | — | 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.
Where the rectangle component fits
Free tools built on it, guides that use it, and the components that sit beside it.