- Components
- Line
- Hairline
Hairline Line
A 2px rule for subtle section separators in generated images, recolorable on every API call. Add clean dividers to your templates free with imejis.
Updated

What this style sets
A style is the line component with a few properties set. Send these, or start from the style in the editor.
{
"divider.fillColor": "#E5E7EB",
"divider.borderRadius": 0
}Good for
- Separating sections in OG images
- Email header and footer rules
- Editorial layout dividers
Try your own data
Change the hairline line 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 hairline line with different values. The JSON is what you send.
Email footer rule
A full-width light gray hairline separating an imagined email body from its footer links.
{
"divider.fillColor": "#E5E7EB",
"divider.borderRadius": 0
}Dark-mode hairline
A charcoal hairline that reads as a subtle separator on a dark-themed OG image.
{
"divider.fillColor": "#374151",
"divider.borderRadius": 0
}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.
curl -X POST "https://render.imejis.io/v1/$IMEJIS_DESIGN_ID" \
-H "dma-api-key: $IMEJIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"divider.fillColor": "#E5E7EB",
"divider.borderRadius": 0
}' \
-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({
"divider.fillColor": "#E5E7EB",
"divider.borderRadius": 0
}),
})
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={
"divider.fillColor": "#E5E7EB",
"divider.borderRadius": 0
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Other line styles
Hairline Line questions
What does the Hairline style change on the line component?
A 2px rule — subtle section separators. It sets 2 properties on the line component: fillColor, borderRadius. Everything else keeps the component's defaults, so your data and layout carry over.
How do I render the hairline line through the API?
Add a line component to a design, then send its data together with the style's properties as flat overrides (for example divider.fillColor and divider.borderRadius) in the render request. Each render can carry different data while keeping the Hairline look.
Can I recolor the line per API call?
Yes — '<key>.fillColor' changes the color per render; opacity and border properties are overridable too.
How do I control the thickness?
The line is a thin rectangle, so its thickness is simply the component's height (or width when vertical) — 2px for a hairline, more for accents.
Where the line component fits
Free tools built on it, guides that use it, and the components that sit beside it.

