- Components
- Text
- Inline pattern
Inline Pattern Text
Style parts of a sentence differently with delimiter-based textPatterns — colored pills around {{ }} spans, overridable on every API call. Try it free.
Updated

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": "Save {{40%}} on all plans",
"title.textPatterns": [
{
"startDelimiter": "{{",
"endDelimiter": "}}",
"textColor": "#4F46E5",
"backgroundColor": "#EEF2FF",
"paddingX": 8,
"paddingY": 2,
"borderRadius": 6
}
]
}Good for
- Discount callouts like "Save {{40%}}" styled inside a sentence
- Highlighting dynamic values in report headlines
- Brand-colored keywords in social captions
Try your own data
Change the inline pattern 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 inline pattern text with different values. The JSON is what you send.
Shipping update headline
A transactional email header with the order number set in an indigo pill.
{
"title.text": "Order {{#48293}} is on its way",
"title.textPatterns": [
{
"startDelimiter": "{{",
"endDelimiter": "}}",
"textColor": "#4F46E5",
"backgroundColor": "#EEF2FF",
"paddingX": 8,
"paddingY": 2,
"borderRadius": 6
}
],
"title.fontSize": 44
}Loyalty points earned
A rewards notification with the points value pulled out in a green pill.
{
"title.text": "You earned {{500 points}} today",
"title.textPatterns": [
{
"startDelimiter": "{{",
"endDelimiter": "}}",
"textColor": "#166534",
"backgroundColor": "#DCFCE7",
"paddingX": 8,
"paddingY": 2,
"borderRadius": 6
}
],
"title.fontSize": 44
}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.
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": "Save {{40%}} on all plans",
"title.color": "#4F46E5",
"title.textPatterns": [
{
"startDelimiter": "{{",
"endDelimiter": "}}",
"textColor": "#4F46E5",
"backgroundColor": "#EEF2FF",
"paddingX": 8,
"paddingY": 2,
"borderRadius": 6
}
]
}' \
-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({
"title.text": "Save {{40%}} on all plans",
"title.color": "#4F46E5",
"title.textPatterns": [
{
"startDelimiter": "{{",
"endDelimiter": "}}",
"textColor": "#4F46E5",
"backgroundColor": "#EEF2FF",
"paddingX": 8,
"paddingY": 2,
"borderRadius": 6
}
]
}),
})
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={
"title.text": "Save {{40%}} on all plans",
"title.color": "#4F46E5",
"title.textPatterns": [
{
"startDelimiter": "{{",
"endDelimiter": "}}",
"textColor": "#4F46E5",
"backgroundColor": "#EEF2FF",
"paddingX": 8,
"paddingY": 2,
"borderRadius": 6
}
]
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Other text styles
Inline Pattern Text questions
What does the Inline pattern style change on the text component?
Delimiter-based inline styling: anything wrapped in {{ }} gets its own color and pill background. It sets 2 properties on the text component: text, textPatterns. Everything else keeps the component's defaults, so your data and layout carry over.
How do I render the inline pattern 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.textPatterns) in the render request. Each render can carry different data while keeping the Inline pattern 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.
Where the text component fits
Free tools built on it, guides that use it, and the components that sit beside it.





