Skip to content

Text

type: "text"7 styles · 36 properties

Rich text with full typography control — fonts, weights, alignment, auto-resize, inline pattern styling, gradient fills, outside outlines, curved baselines and shadows. The workhorse for titles, captions, cover art and any dynamic copy.

Updated

Open in the editor
Preview · DefaultReal render, 1200 × 630
Text component, Default style, sample render
The text component’s default look.

Try your own data

Change the text here with the same controls the editor shows. The preview updates as you type, and you get the API request for your changes.

7 styles

Pick one to preview it

Examples

Each example is the same text with different values. The JSON is what you send.

Blog OG title

An Open Graph headline pulling the article title per render.

{
  "title.text": "How we cut render times by 80%",
  "title.fontSize": 48,
  "title.color": "#111827"
}

Certificate recipient name

The learner name stamped onto a course certificate via API.

{
  "title.text": "Priya Sharma",
  "title.fontFamily": "Playfair Display",
  "title.fontWeight": 600,
  "title.fontSize": 60,
  "title.color": "#92400E"
}

Good for

  • Open Graph images that pull each article title and author per render
  • Certificates with the recipient name, course and date filled in via API
  • Personalized social and email header images addressing every user by name
  • Localized marketing banners — one design, copy swapped per language

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 a 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": "Welcome, Dharmik!",
    "title.color": "#4F46E5"
  }' \
  -o image.png

Properties

Every property works the same in the editor, in design JSON and as an API override.

36 properties shown

PropertyTypeDefaultWhat it does
Data
textstring—The text content to display.
textPatternsobject[]—Delimiter-based inline styling rules. A delimiter can be escaped with a backslash ("2 \\* 3") to keep it as literal copy. Each rule carries the delimiters plus the styling for the span between them: textColor, backgroundColor, paddingX/paddingY, border*, its own typography (fontSize or fontScale, fontFamily, fontWeight, fontStyle, letterSpacing, lineHeight, textTransform, textDecoration), effects (strokeWidth/strokeColor, textShadow, opacity) and block:true to put the span on its own line.
Look
fontSizenumber24Font size in pixels.
fontFamilystring"Inter"Font family name (Google Fonts supported).
fontWeightnumber | string400Font weight (100-900 or a keyword like "bold").
colorcolor"#000000"Text color.
textAlignment'left' | 'center' | 'right' | 'justify'"left"Horizontal text alignment.
verticalAlignment'top' | 'center' | 'bottom'"top"Vertical alignment of text within its box.
textDirection'ltr' | 'rtl'"ltr"Text direction (left-to-right or right-to-left).
lineHeightnumber | string"normal"Line height (unitless multiplier or CSS value).
letterSpacingnumber | string"normal"Spacing between characters (pixels or CSS value).
backgroundColorcolor"transparent"Background color of the whole text container.
textBackgroundColorcolor"transparent"Background color behind the text glyphs only (highlight effect).
paddingstring—CSS padding inside the text container, e.g. "8px 12px".
autoResizeboolean—Automatically shrink/grow the font size to fit the box.
minFontSizenumber8Lower font-size bound when autoResize is on.
maxFontSizenumber200Upper font-size bound when autoResize is on.
strokeWidthnumber0Outline stroke width around the glyphs in pixels.
strokeColorcolor"transparent"Outline stroke color around the glyphs.
textDecoration'none' | 'underline' | 'overline' | 'line-through' | 'underline overline'"none"Text decoration line(s).
textTransform'none' | 'uppercase' | 'lowercase' | 'capitalize'"none"Case transformation applied to the text.
constraint'tl' | 'tr' | 'tc' | 'cc' | 'cl' | 'cr' | 'bl' | 'br' | 'bc'—Legacy per-component anchor point (prefer the component-level anchor field).
autoWidthboolean—Let the box grow horizontally to fit the text.
autoHeightboolean—Let the box grow vertically to fit the text.
textShadowstring—CSS text-shadow, e.g. "2px 2px 4px rgba(0,0,0,0.5)".
strokeAlign'center' | 'outside'"center"Where the glyph stroke sits: 'center' (CSS default, thin outlines) or 'outside' — the poster / book-cover outline that never eats into the letterform.
textOutlinesobject[]—Stacked outline rings painted outside the glyphs, innermost first — [{ width, color, opacity? }]. The sticker-title look (white ring then a dark one). Overrides strokeWidth/strokeColor.
textGradientobject—Gradient fill painted through the glyphs: { colors: [...2+], angle?: degrees (180 = top to bottom), type?: "linear" | "radial" }.
curvenumber0Arc the text onto a curved baseline: the angle in degrees the line bends through — positive arches up (rainbow), negative arches down (smile). Needs a fixed-size box and renders as a single line.
curveRadiusnumber—Explicit arc radius in px. Leave unset to fit the arc to the text so `curve` always bends the line by exactly that angle.
Frame
opacitynumber1Overall component opacity from 0 (transparent) to 1 (opaque).
borderWidthnumber0Border thickness in pixels around the component.
borderColorcolor"transparent"Border color (any CSS color).
borderStyle'solid' | 'dashed' | 'dotted' | 'double' | 'none'"solid"Border line style.
borderRadiusnumber0Corner radius in pixels.
boxShadowstring—CSS box-shadow applied to the component, e.g. "0 4px 6px rgba(0,0,0,0.1)".

Text questions

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.

Can I use custom fonts?

The fontFamily property accepts any Google Font by name, combined with weight, letter spacing, line height and text transforms for full typographic control.

Can I curve or arch the text, like a book cover?

Yes — set curve to the angle the line should bend through (45 arches it up, -45 arches it down). The radius is fitted to the text, so the same value bends a short name and a long title by the same amount.

How do I get a thick outline that does not eat into the letters?

Set strokeAlign to "outside" with strokeWidth/strokeColor, or use textOutlines for several stacked rings (a white ring then a dark one). The outline is painted outside the glyphs, so the letterform stays intact however thick it gets.

Can I highlight part of a sentence in a different style?

Yes — textPatterns applies delimiter-based inline styling, so anything wrapped in markers like {{ }} gets its own color, background pill and padding.

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