A unique identifier for this theme
This property gives the SDK a hint to how to derive colors from your theme for features such as tinted backgrounds and border styles.
| Value | Description |
|---|---|
light | Light theme |
dark | Dark theme |
The style tokens to use for this theme. See below for a list of all possible values.
An array of colors available in the color picker for annotations. See Canvas colors for usage details.
Specifies which canvas colors to use as defaults when creating new annotations. Each property references a color
id from the canvasColors array. If a referenced ID doesn’t exist or is not provided, Graphy falls back to the first canvas color. See Default annotation colors for usage details.GraphThemeCanvasColor
A unique identifier for the color. This ID is used to persist color choices across theme changes—if two themes define a color with the same ID, annotations will automatically use the color value from the active theme.
A human-readable name for the color, displayed in the color picker UI.
The hex color value (e.g.,
#3b82f6).GraphThemeAnnotationColorIds
The
id of the canvas color to use as the default stroke color for arrow annotations.The
id of the canvas color to use as the default fill color for shape annotations.