Railroad Diagram Config Schema
https://mermaid.js.org/schemas/config.schema.json#/$defs/RailroadDiagramConfigConfiguration for Railroad (Syntax) Diagrams
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|---|---|---|---|---|---|---|---|
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | config.schema.json* |
RailroadDiagramConfig Type
object (Railroad Diagram Config)
all of
RailroadDiagramConfig Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| compactMode | boolean | Optional | cannot be null | Mermaid Config |
| padding | number | Optional | cannot be null | Mermaid Config |
| verticalSeparation | number | Optional | cannot be null | Mermaid Config |
| horizontalSeparation | number | Optional | cannot be null | Mermaid Config |
| arcRadius | number | Optional | cannot be null | Mermaid Config |
| fontSize | number | Optional | cannot be null | Mermaid Config |
| fontFamily | string | Optional | cannot be null | Mermaid Config |
| terminalFill | string | Optional | cannot be null | Mermaid Config |
| terminalStroke | string | Optional | cannot be null | Mermaid Config |
| terminalTextColor | string | Optional | cannot be null | Mermaid Config |
| nonTerminalFill | string | Optional | cannot be null | Mermaid Config |
| nonTerminalStroke | string | Optional | cannot be null | Mermaid Config |
| nonTerminalTextColor | string | Optional | cannot be null | Mermaid Config |
| lineColor | string | Optional | cannot be null | Mermaid Config |
| strokeWidth | number | Optional | cannot be null | Mermaid Config |
| markerFill | string | Optional | cannot be null | Mermaid Config |
| commentFill | string | Optional | cannot be null | Mermaid Config |
| commentStroke | string | Optional | cannot be null | Mermaid Config |
| commentTextColor | string | Optional | cannot be null | Mermaid Config |
| specialFill | string | Optional | cannot be null | Mermaid Config |
| specialStroke | string | Optional | cannot be null | Mermaid Config |
| ruleNameColor | string | Optional | cannot be null | Mermaid Config |
| showMarkers | boolean | Optional | cannot be null | Mermaid Config |
| markerRadius | number | Optional | cannot be null | Mermaid Config |
compactMode
Use compact layout mode
compactMode
is optional
Type:
booleancannot be null
defined in: Mermaid Config
compactMode Type
boolean
compactMode Default Value
The default value is:
falsepadding
Padding around elements
padding
is optional
Type:
numbercannot be null
defined in: Mermaid Config
padding Type
number
padding Constraints
minimum: the value of this number must greater than or equal to: 0
padding Default Value
The default value is:
10verticalSeparation
Vertical separation between elements
verticalSeparation
is optional
Type:
numbercannot be null
defined in: Mermaid Config
verticalSeparation Type
number
verticalSeparation Constraints
minimum: the value of this number must greater than or equal to: 0
verticalSeparation Default Value
The default value is:
8horizontalSeparation
Horizontal separation between elements
horizontalSeparation
is optional
Type:
numbercannot be null
defined in: Mermaid Config
horizontalSeparation Type
number
horizontalSeparation Constraints
minimum: the value of this number must greater than or equal to: 0
horizontalSeparation Default Value
The default value is:
10arcRadius
Radius for curved paths
arcRadius
is optional
Type:
numbercannot be null
defined in: Mermaid Config
arcRadius Type
number
arcRadius Constraints
minimum: the value of this number must greater than or equal to: 0
arcRadius Default Value
The default value is:
10fontSize
Font size for text
fontSize
is optional
Type:
numbercannot be null
defined in: Mermaid Config
fontSize Type
number
fontSize Constraints
minimum: the value of this number must greater than or equal to: 0
fontSize Default Value
The default value is:
14fontFamily
Font family for text
fontFamily
is optional
Type:
stringcannot be null
defined in: Mermaid Config
fontFamily Type
string
fontFamily Default Value
The default value is:
"monospace"terminalFill
Fill color for terminal elements
terminalFill
is optional
Type:
stringcannot be null
defined in: Mermaid Config
terminalFill Type
string
terminalFill Default Value
The default value is:
"#FFFFC0"terminalStroke
Stroke color for terminal elements
terminalStroke
is optional
Type:
stringcannot be null
defined in: Mermaid Config
terminalStroke Type
string
terminalStroke Default Value
The default value is:
"#000000"terminalTextColor
Text color for terminal elements
terminalTextColor
is optional
Type:
stringcannot be null
defined in: Mermaid Config
terminalTextColor Type
string
terminalTextColor Default Value
The default value is:
"#000000"nonTerminalFill
Fill color for non-terminal elements
nonTerminalFill
is optional
Type:
stringcannot be null
defined in: Mermaid Config
nonTerminalFill Type
string
nonTerminalFill Default Value
The default value is:
"#FFFFFF"nonTerminalStroke
Stroke color for non-terminal elements
nonTerminalStroke
is optional
Type:
stringcannot be null
defined in: Mermaid Config
nonTerminalStroke Type
string
nonTerminalStroke Default Value
The default value is:
"#000000"nonTerminalTextColor
Text color for non-terminal elements
nonTerminalTextColor
is optional
Type:
stringcannot be null
defined in: Mermaid Config
nonTerminalTextColor Type
string
nonTerminalTextColor Default Value
The default value is:
"#000000"lineColor
Color for connection lines
lineColor
is optional
Type:
stringcannot be null
defined in: Mermaid Config
lineColor Type
string
lineColor Default Value
The default value is:
"#000000"strokeWidth
Width of strokes
strokeWidth
is optional
Type:
numbercannot be null
defined in: Mermaid Config
strokeWidth Type
number
strokeWidth Constraints
minimum: the value of this number must greater than or equal to: 0
strokeWidth Default Value
The default value is:
2markerFill
Fill color for start/end markers
markerFill
is optional
Type:
stringcannot be null
defined in: Mermaid Config
markerFill Type
string
markerFill Default Value
The default value is:
"#000000"commentFill
Fill color for comments
commentFill
is optional
Type:
stringcannot be null
defined in: Mermaid Config
commentFill Type
string
commentFill Default Value
The default value is:
"#E8E8E8"commentStroke
Stroke color for comments
commentStroke
is optional
Type:
stringcannot be null
defined in: Mermaid Config
commentStroke Type
string
commentStroke Default Value
The default value is:
"#888888"commentTextColor
Text color for comments
commentTextColor
is optional
Type:
stringcannot be null
defined in: Mermaid Config
commentTextColor Type
string
commentTextColor Default Value
The default value is:
"#666666"specialFill
Fill color for special sequences
specialFill
is optional
Type:
stringcannot be null
defined in: Mermaid Config
specialFill Type
string
specialFill Default Value
The default value is:
"#F0E0FF"specialStroke
Stroke color for special sequences
specialStroke
is optional
Type:
stringcannot be null
defined in: Mermaid Config
specialStroke Type
string
specialStroke Default Value
The default value is:
"#8800CC"ruleNameColor
Color for rule names
ruleNameColor
is optional
Type:
stringcannot be null
defined in: Mermaid Config
ruleNameColor Type
string
ruleNameColor Default Value
The default value is:
"#000066"showMarkers
Show start/end markers
showMarkers
is optional
Type:
booleancannot be null
defined in: Mermaid Config
showMarkers Type
boolean
showMarkers Default Value
The default value is:
truemarkerRadius
Radius of start/end markers
markerRadius
is optional
Type:
numbercannot be null
defined in: Mermaid Config
markerRadius Type
number
markerRadius Constraints
minimum: the value of this number must greater than or equal to: 0
markerRadius Default Value
The default value is:
5