---
title: "Accent Bar Image API — Heading underline accents | Imejis"
description: "A short thick bar for heading underlines and brand accents, recolored on every API call to match each campaign. Create accent visuals free with Imejis."
url: "https://www.imejis.io/components/line/accent-bar"
---

# Accent Bar Image API — Heading underline accents | Imejis

A short thick bar — heading underlines and brand accents.

## Use cases

- Brand-colored heading underlines
- Category color coding per render
- Decorative accents on social cards

## Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `fillColor` | `color` | `"#808080"` | Line 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": "Line sample",
  "description": "A dynamic divider line",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-line",
      "key": "divider",
      "type": "line",
      "position": {
        "x": 340,
        "y": 204
      },
      "rotation": 0,
      "size": {
        "width": 120,
        "height": 12
      },
      "dynamic": true,
      "properties": {
        "fillColor": "#4F46E5",
        "borderRadius": 6,
        "opacity": 1
      }
    }
  ]
}
```

## Examples

### Heading underline in brand red

A short crimson bar positioned as the underline of an imagined left-aligned page title.

API overrides that reproduce this example:

```json
{
  "divider.fillColor": "#DC2626",
  "divider.borderRadius": 6
}
```

### Vertical quote accent

An amber left-edge stripe marking an imagined pull-quote block on a social card.

API overrides that reproduce this example:

```json
{
  "divider.fillColor": "#F59E0B",
  "divider.borderRadius": 6
}
```

## 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
{
  "divider.fillColor": "#111827",
  "divider.borderRadius": 4,
  "divider.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 '{
    "divider.fillColor": "#111827",
    "divider.borderRadius": 4,
    "divider.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

- [Line component](https://www.imejis.io/components/line.md) — full reference and FAQs
- [Hairline](https://www.imejis.io/components/line/hairline.md) — A 2px rule — subtle section separators.
