Skip to content
Styleof the Rectangle component

Pill Badge Rectangle

A fully-rounded bar for badges, tags and labels — recolor it on every API call to reflect status or category. Generate badge visuals free with imejis.

Updated

Pill Badge Rectangle style, sample render

What this style sets

A style is the rectangle component with a few properties set. Send these, or start from the style in the editor.

{
  "panel.fillColor": "#4F46E5",
  "panel.borderRadius": 100
}

Good for

  • Status badges colored by state
  • Category tags on article cards
  • Button-style call-to-action visuals

Try your own data

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

Examples

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

Live status pill

A red pill sized to sit behind an imagined "LIVE" label on a stream announcement card.

{
  "panel.fillColor": "#EF4444",
  "panel.borderRadius": 100,
  "panel.boxShadow": "0 4px 14px rgba(239,68,68,0.4)"
}

Category tag on dark

A teal tag pill for labeling an article category on a dark blog OG image.

{
  "panel.fillColor": "#0D9488",
  "panel.borderRadius": 100
}

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 the Pill badge style of the 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": "#4F46E5",
    "panel.borderRadius": 100
  }' \
  -o image.png

Other rectangle styles

Pill Badge Rectangle questions

What does the Pill badge style change on the rectangle component?

Fully-rounded small bar — badges, tags and labels. It sets 2 properties on the rectangle component: fillColor, borderRadius. Everything else keeps the component's defaults, so your data and layout carry over.

How do I render the pill badge rectangle through the API?

Add a rectangle component to a design, then send its data together with the style's properties as flat overrides (for example panel.fillColor and panel.borderRadius) in the render request. Each render can carry different data while keeping the Pill badge look.

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.

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