Skip to content
Styleof the Text component

Highlighted Text

Add a marker-style highlight behind your headline with textBackgroundColor and change the copy on every API call. Generate highlighted text images free.

Updated

Highlighted Text style, sample render

What this style sets

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

{
  "title.text": "Launch day is here",
  "title.textBackgroundColor": "#FDE68A",
  "title.color": "#111827"
}

Good for

  • Quote cards with a highlighter swipe behind the key phrase
  • Sale banners that make the offer pop
  • Newsletter header images with emphasized keywords

Try your own data

Change the highlighted text 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 highlighted text with different values. The JSON is what you send.

Weekend sale banner

A store-wide offer with a green highlighter swipe behind the copy.

{
  "title.text": "Everything 30% off this weekend",
  "title.textBackgroundColor": "#BBF7D0",
  "title.color": "#111827",
  "title.fontSize": 44
}

Testimonial pull quote

A customer quote for social with the words set on a pink marker.

{
  "title.text": "“The best design API we’ve used”",
  "title.textBackgroundColor": "#FBCFE8",
  "title.color": "#111827",
  "title.fontSize": 42,
  "title.fontWeight": 600
}

New values, every render

Override the copy per render with '<key>.text', plus '<key>.color' and background/stroke colors for styling. 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 Highlighted style of the Text component (type "text") 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 '{
    "title.text": "Launch day is here",
    "title.color": "#111827",
    "title.textBackgroundColor": "#FDE68A"
  }' \
  -o image.png

Other text styles

Highlighted Text questions

What does the Highlighted style change on the text component?

A marker-style highlight behind the glyphs via textBackgroundColor. It sets 3 properties on the text component: text, textBackgroundColor, color. Everything else keeps the component's defaults, so your data and layout carry over.

How do I render the highlighted text through the API?

Add a text component to a design, then send its data together with the style's properties as flat overrides (for example title.text and title.textBackgroundColor) in the render request. Each render can carry different data while keeping the Highlighted look.

Can I change the text on every API call?

Yes. Mark the component dynamic and send '<key>.text' in the flat modifications JSON — every render can carry different copy, colors and styling.

What happens when long text overflows the box?

Enable autoResize and the font size shrinks or grows between minFontSize and maxFontSize to fit the box; autoWidth and autoHeight can let the box grow instead.

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