theme prop of GraphProvider.
Preset Themes
The@graphysdk/core package exports two default themes: graphyThemeLight and graphyThemeDark.
Custom themes
You can extend an existing theme by overriding properties or create your own from scratch.Color palettes
Color palettes determine the colors that will be used for each series on the graph itself. The Graphy SDK comes with preset color palettes, or you can provide your own.Custom color palettes
To use a custom palettes, provide an array ofColorPalette objects to the customPalettes prop of GraphProvider.
id that identifies it to the application. To activate a specific palette for a graph, use the customPalette theme with your palette’s id:
Using custom palettes in the Editor
Any palettes you register throughcustomPalettes automatically appear in the Color Palette section of the graph appearance settings.
Custom palettes replace the built-in presets under Presets, giving you complete control over the available color options. Each palette displays its name and a preview of its colors in order of use.
When a user selects a palette in the Editor, that choice is saved to appearanceConfig.palette, ensuring the same palette is applied when the graph is reloaded. If a graph contains more series than the palette defines, the Editor loops through the palette colors automatically. If a palette contains no valid colors, Graphy falls back to the default bright palette to maintain readability.
If a color defined in seriesConfig isn’t part of the active palette, it’s ignored and replaced with the nearest palette color to preserve theme consistency.