Using a font of your choice for an embedded agent
Merriweather
font from Google fonts.
fontFamily
parameter with the Google font name to the customFontTheme
attribute of the mindset.init()
method, as follows:
Parameter | Description |
---|---|
fontWeight | The weight of the font, e.g. 600 for semi-bold. |
sha256Checksum | The SHA-256 checksum of the font file is used to verify its integrity. (linux command : shasum -a 256 "$filename" cut -d' ' -f1 ) |
fontUrl | The URL where the font file is hosted. |
fileSize | The size of the font file in bytes. (linux command : wc -c < "$filename" tr -d ' ' ) |
fontStyle | The style of the font, e.g. italic . |
fontWeight
of your custom font, but if one fontWeight
is missing, the agent UI will use the closest existing fontWeight
.textStyles
attribute in the customFontTheme
object.
For example, let’s say we would like to change the Thread title font size of the agent UI, we can override it this way:
titleSmall
font size to 50
.
Other values of the type scale (titleSmall
) will be kept as the default values.
And all others, like displayLarge
, headlineMedium
, etc., will be retained as the default values.textStyles
parameters are called type scale tokens.
textStyles
parameters used in the agent UI. If you need to customize a value, you can override it with your value.
Category | Parameters | Description |
---|---|---|
Title | titleLarge titleMedium titleSmall | These tokens are used for key titles and headings, including: Dialog headers. Section titles in carousels, prompts, and reference lists. Metadata labels like source and segment titles. Zero state messages. |
Body | bodyMedium bodySmall | These tokens are used for general content and supporting text across the Agent UI, including: List items, thread titles, and section headers. Descriptive and metadata text (e.g., agent details, segment summaries, speaker names). Buttons, pills, and labels. Supporting UI text like follow-up questions, video names, and citations. |
Label | labelLarge labelMedium labelSmall | These tokens are used for short-form, utility, or supportive text, including: Labels and descriptions in content lists (e.g., sources, key moments, citations). Feedback form instructions and optional field hints. |
https://raw.githubusercontent.com/username/repo/branch/path-to/font.ttf