Skip to content

Font Config Schema ​

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/FontConfig
AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusNoForbiddenForbiddennoneconfig.schema.json*

FontConfig Type ​

object (Font Config)

FontConfig Properties ​

PropertyTypeRequiredNullableDefined by
fontSizeMultipleOptionalcannot be nullMermaid Config
fontFamilystringOptionalcannot be nullMermaid Config
fontWeightMultipleOptionalcannot be nullMermaid Config

fontSize ​

The font size to use

fontSize

fontSize Type ​

any of the following: string or number (CSS Font Size)

fontSize Default Value ​

The default value is:

json
14

fontFamily ​

The CSS font-family to use.

fontFamily

fontFamily Type ​

string

fontFamily Default Value ​

The default value is:

json
"\"Open Sans\", sans-serif"

fontWeight ​

The font weight to use.

fontWeight

  • is optional

  • Type: any of the following: string or number (Details)

  • cannot be null

  • defined in: Mermaid Config

fontWeight Type ​

any of the following: string or number (Details)

fontWeight Default Value ​

The default value is:

json
"normal"
Opens in mermaid.ai