RoutesArtifact themesPreview
/artifact-themes/preview
Render a sample Markdown document with a theme that is not saved yet, starting from the Gatana values for any field left out
AuthorizationBearer <token>
In: header
Request Body
application/json
backgroundColor?string
Page background, as a hex color (#rgb or #rrggbb)
Match
^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$textColor?string
Heading text; body text, lines and soft backgrounds are mixed from it and the background, as a hex color (#rgb or #rrggbb)
Match
^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$accentColor?string
Buttons, links on hover, the eyebrow line and the gradient, as a hex color (#rgb or #rrggbb)
Match
^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$headingFont?string
Font of headings
Value in
"inter" | "fraunces" | "system-sans" | "system-serif"bodyFont?string
Font of headings
Value in
"inter" | "fraunces" | "system-sans" | "system-serif"codeFont?string
Font of code
Value in
"jetbrains-mono" | "system-mono"logo?string
Logo shown at the top of every page, as a base64 data: URL of a PNG, JPEG, WebP or SVG image of at most 256 KB, or an empty string for none
Length
length <= 360000extraCss?string
CSS added after the theme's own rules; the page's own styles still win over it
Length
length <= 100000Response Body
application/json
curl -X POST "https://YOUR_ORG_ID.gatana.ai/api/v1/artifact-themes/preview" \ -H "Content-Type: application/json" \ -d '{}'{
"html": "string",
"css": "string"
}