Skip to content
nexdoc.design Docs

Brand

Pass colors, typography, and logos so generated designs match your brand.

Uploads accept png, jpeg, gif, and pdf only. A JSON brand kit (brand-kit.json) is rejected with 400. Put colors, fonts, and usage rules in instructions; upload logo image files and reference them by filename.

Brand tokens in instructions

Stated colors and fonts are authoritative. Keep it inline:

code
Brand: primary #2563EB, accent #F59E0B, fonts Inter; use logo.png in the nav.

Also cover audience, mood, and must-haves in the same brief. Avoid vague direction like “modern and professional”.

Logos and other assets

Attach images on the run (multipart files or presigned upload). Reference them from content by filename:

code
![Logo](logo.png)

NexDoc rewrites matching basenames to assets/<filename>.

code
curl -sS -X POST "$NXD_API_URL/v1/jobs/$JOB/runs" \
  -H "Authorization: Bearer $NXD_API_KEY" \
  -F "format=landing-page" \
  -F "instructions=Brand: primary #2563EB, accent #F59E0B, fonts Inter; use logo.png in the nav. Dark editorial landing page." \
  -F "content=@./content.md;type=text/markdown;filename=content.md" \
  -F "files=@./logo.png;type=image/png;filename=logo.png"