---
title: "Card Background API — Outlined cards with shadow | Imejis"
description: "A white card with a subtle border and soft shadow — the classic content container, recolorable on every API call. Build card layouts free with Imejis."
url: "https://www.imejis.io/components/rect/outlined-card"
---

# Card Background API — Outlined cards with shadow | Imejis

White card with a subtle border and shadow — content containers.

## Use cases

- Content containers in OG images
- Testimonial and quote cards
- Stat tile backdrops

## Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `fillColor` | `color` | `"#808080"` | Fill color. |
| `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)". |

## Design JSON (this variant)

```json
{
  "title": "Rectangle sample",
  "description": "A rounded dynamic panel",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-rect",
      "key": "panel",
      "type": "rect",
      "position": {
        "x": 220,
        "y": 110
      },
      "rotation": 0,
      "size": {
        "width": 360,
        "height": 200
      },
      "dynamic": true,
      "properties": {
        "fillColor": "#ffffff",
        "borderRadius": 16,
        "opacity": 1,
        "borderWidth": 1,
        "borderColor": "#E5E7EB",
        "boxShadow": "0 10px 25px rgba(0,0,0,0.08)"
      }
    }
  ]
}
```

## Examples

### Testimonial quote card

A wide white card on a soft gray canvas — the container behind an imagined customer quote and avatar.

API overrides that reproduce this example:

```json
{
  "panel.fillColor": "#ffffff",
  "panel.borderWidth": 1,
  "panel.borderColor": "#E5E7EB",
  "panel.borderRadius": 20,
  "panel.boxShadow": "0 10px 25px rgba(0,0,0,0.08)"
}
```

### KPI stat tile

A compact tile sized for a single metric and its label in a dashboard snapshot.

API overrides that reproduce this example:

```json
{
  "panel.fillColor": "#ffffff",
  "panel.borderWidth": 1,
  "panel.borderColor": "#E5E7EB",
  "panel.borderRadius": 12,
  "panel.boxShadow": "0 4px 12px rgba(0,0,0,0.06)"
}
```

## API overrides

Recolor per render with '<key>.fillColor' (or just '<key>'); opacity and borderColor are overridable too.

Flat override payload (`key.property` addressing) with the sample design's current values — send only the keys you want to change:

```json
{
  "panel.fillColor": "#4F46E5",
  "panel.borderRadius": 16,
  "panel.opacity": 1
}
```

```bash
curl --location 'https://render.imejis.io/v1/{{YOUR_DESIGN_ID}}' \
--header 'dma-api-key: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
    "panel.fillColor": "#4F46E5",
    "panel.borderRadius": 16,
    "panel.opacity": 1
}'
```

`{{YOUR_DESIGN_ID}}` and `{{YOUR_API_KEY}}` are placeholders: first create
the design in your account (paste the sample design JSON above into the
editor at https://app.imejis.io, or create it programmatically via the
imejis MCP server's `create_design` + `update_design` tools), then render
it with the design's id and one of your API keys.

Agents: the MCP server at https://api.imejis.io/api/mcp exposes this same
catalog as structured data via the `list_component_types` tool (property
kinds, allowed values, bounds, ready-to-use sample designs).

## Related

- [Rectangle component](https://www.imejis.io/components/rect.md) — full reference and FAQs
- [Pill badge](https://www.imejis.io/components/rect/pill-badge.md) — Fully-rounded small bar — badges, tags and labels.
