# VisualTheme

A paired immutable theme shared by charts, diagrams and future composition packages.

 Class  

`ChartForgeX.Themes`

**Namespace**

`ChartForgeX.Themes`

**Assembly**

`ChartForgeX`

**Source**

[VisualTheme.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L21)

**Modifiers**

sealed

A paired immutable theme shared by charts, diagrams and future composition packages.

## Inheritance

- object
- VisualTheme

## Usage

 Explore 115 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 41

- Property [VisualCanvas.Theme](/api/chartforgex-composition-visualcanvas/#property-theme)
- Property [ChartGrid.Theme](/api/chartforgex-core-chartgrid/#property-theme)
- Property [ChartOptions.Theme](/api/chartforgex-core-chartoptions/#property-theme)
- Property [MermaidPresentationOptions.Theme](/api/chartforgex-mermaid-mermaidpresentationoptions/#property-theme)
- Property [VisualRenderContext.Theme](/api/chartforgex-rendering-visualrendercontext/#property-theme)
- Property [VisualStory.Theme](/api/chartforgex-stories-visualstory/#property-theme)
- Property [VisualStoryReplaySurface.Theme](/api/chartforgex-stories-visualstoryreplaysurface/#property-theme)
- Method [VisualStoryThemes.Linux](/api/chartforgex-stories-visualstorythemes/#method-linux)
- Method [VisualStoryThemes.MacOS](/api/chartforgex-stories-visualstorythemes/#method-macos)
- Method [VisualStoryThemes.Premium](/api/chartforgex-stories-visualstorythemes/#method-premium)
- Method [VisualStoryThemes.Windows](/api/chartforgex-stories-visualstorythemes/#method-windows)
- Property [TerminalStory.Theme](/api/chartforgex-terminal-terminalstory/#property-theme)
- Property [TerminalTab.Theme](/api/chartforgex-terminal-terminaltab/#property-theme)
- Method [TerminalThemes.Campbell](/api/chartforgex-terminal-terminalthemes/#method-campbell)
- Method [TerminalThemes.Classic](/api/chartforgex-terminal-terminalthemes/#method-classic)
- Method [TerminalThemes.Default](/api/chartforgex-terminal-terminalthemes/#method-default)
- Method [TerminalThemes.PowerShell](/api/chartforgex-terminal-terminalthemes/#method-powershell)
- Method [TerminalThemes.Ubuntu](/api/chartforgex-terminal-terminalthemes/#method-ubuntu)
- Method [TerminalThemes.WindowsPowerShell](/api/chartforgex-terminal-terminalthemes/#method-windowspowershell)
- Method [VisualTheme.Accessible](/api/chartforgex-themes-visualtheme/#method-accessible)
- Method [VisualTheme.Configure](/api/chartforgex-themes-visualtheme/#method-configure-action-chartforgex-themes-visualthemebuilder)
- Method [VisualTheme.FromJson](/api/chartforgex-themes-visualtheme/#method-fromjson-string)
- Method [VisualTheme.FromPaletteJson](/api/chartforgex-themes-visualtheme/#method-frompalettejson-string-chartforgex-themes-visualtypography)
- Method [VisualTheme.Graphite](/api/chartforgex-themes-visualtheme/#method-graphite)
- Method [VisualTheme.TransparentOverlay](/api/chartforgex-themes-visualtheme/#method-transparentoverlay)
- Method [VisualTheme.WithFontFamily](/api/chartforgex-themes-visualtheme/#method-withfontfamily-string)
- Method [VisualTheme.WithMinimumReadableTextSize](/api/chartforgex-themes-visualtheme/#method-withminimumreadabletextsize-double)
- Method [VisualTheme.WithPalette](/api/chartforgex-themes-visualtheme/#method-withpalette-chartforgex-thememode-chartforgex-primitives-chartcolor)
- Method [VisualTheme.WithTypography](/api/chartforgex-themes-visualtheme/#method-withtypography-chartforgex-themes-visualtypography)
- Method [VisualThemeBuilder.Build](/api/chartforgex-themes-visualthemebuilder/#method-build)
- Property [TopologyChart.Theme](/api/chartforgex-topology-topologychart/#property-theme)
- Property [SequenceArtifact.Theme](/api/chartforgex-visualartifacts-sequenceartifact/#property-theme)
- Property [VisualArtifactInterchangeJourneyArtifact.Theme](/api/chartforgex-visualartifacts-visualartifactinterchangejourneyartifact/#property-theme)
- Property [VisualArtifactInterchangeRailroadArtifact.Theme](/api/chartforgex-visualartifacts-visualartifactinterchangerailroadartifact/#property-theme)
- Property [VisualArtifactInterchangeSequenceArtifact.Theme](/api/chartforgex-visualartifacts-visualartifactinterchangesequenceartifact/#property-theme)
- Property [VisualArtifactInterchangeTheme.Definition](/api/chartforgex-visualartifacts-visualartifactinterchangetheme/#property-definition)
- Property [VisualArtifactInterchangeTimelineArtifact.Theme](/api/chartforgex-visualartifacts-visualartifactinterchangetimelineartifact/#property-theme)
- Property [VisualArtifactInterchangeTreeViewArtifact.Theme](/api/chartforgex-visualartifacts-visualartifactinterchangetreeviewartifact/#property-theme)
- Property [VisualArtifactInterchangeWaterfallArtifact.Theme](/api/chartforgex-visualartifacts-visualartifactinterchangewaterfallartifact/#property-theme)
- Property [VisualBlockOptions.Theme](/api/chartforgex-visualblocks-visualblockoptions/#property-theme)
- Property [VisualGrid.Theme](/api/chartforgex-visualblocks-visualgrid/#property-theme)

### Accepted by parameters 74

- Extension method [VisualCanvas.Theme](/api/chartforgex-composition-visualcanvas/#extension-theme-chartforgex-composition-visualcanvas-chartforgex-themes-visualtheme) parameter `value`
- Method [VisualCanvasFluent.Theme](/api/chartforgex-composition-visualcanvasfluent/#method-theme-chartforgex-composition-visualcanvas-chartforgex-themes-visualtheme) parameter `value`
- Method [VisualCanvasKeyValueBlockLayer.MeasureHeight](/api/chartforgex-composition-visualcanvaskeyvalueblocklayer/#method-measureheight-chartforgex-themes-visualtheme-chartforgex-thememode-chartforgex-composition-visualcanvasstyleoptions) parameter `theme`
- Extension method [Chart.Theme](/api/chartforgex-core-chart/#extension-theme-chartforgex-core-chart-chartforgex-themes-visualtheme) parameter `value`
- Method [ChartFluent.Theme](/api/chartforgex-core-chartfluent/#method-theme-chartforgex-core-chart-chartforgex-themes-visualtheme) parameter `value`
- Extension method [ChartGrid.Theme](/api/chartforgex-core-chartgrid/#extension-theme-chartforgex-core-chartgrid-chartforgex-themes-visualtheme) parameter `value`
- Method [ChartGridFluent.Theme](/api/chartforgex-core-chartgridfluent/#method-theme-chartforgex-core-chartgrid-chartforgex-themes-visualtheme) parameter `value`
- Extension method [ChartOptions.Theme](/api/chartforgex-core-chartoptions/#extension-theme-chartforgex-core-chartoptions-chartforgex-themes-visualtheme) parameter `value`
- Method [ChartOptionsFluent.Theme](/api/chartforgex-core-chartoptionsfluent/#method-theme-chartforgex-core-chartoptions-chartforgex-themes-visualtheme) parameter `value`
- Constructor [VisualRenderContext.VisualRenderContext](/api/chartforgex-rendering-visualrendercontext/#constructor-ctor-chartforgex-rendering-visuallayoutoptions-chartforgex-themes-visualtheme-chartforgex-thememode-chartforgex-rendering-visualframe-chartforgex-typography-fontspec) parameter `theme`
- Method [VisualSvgOptions.WithSharedDesignRoles](/api/chartforgex-rendering-visualsvgoptions/#method-withshareddesignroles-chartforgex-themes-visualtheme-chartforgex-thememode) parameter `theme`
- Extension method [VisualStory.Theme](/api/chartforgex-stories-visualstory/#extension-theme-chartforgex-stories-visualstory-chartforgex-themes-visualtheme) parameter `value`
- Method [VisualStoryFluent.Theme](/api/chartforgex-stories-visualstoryfluent/#method-theme-chartforgex-stories-visualstory-chartforgex-themes-visualtheme) parameter `value`
- Constructor [VisualStoryReplaySurface.VisualStoryReplaySurface](/api/chartforgex-stories-visualstoryreplaysurface/#constructor-ctor-chartforgex-stories-storyreplay-string-chartforgex-stories-visualstoryterminaloptions-chartforgex-themes-visualtheme-chartforgex-thememode-chartforgex-terminal-terminalstyleoptions) parameter `theme`
- Extension method [TerminalStory.Theme](/api/chartforgex-terminal-terminalstory/#extension-theme-chartforgex-terminal-terminalstory-chartforgex-themes-visualtheme) parameter `value`
- Method [TerminalStory.DeclareTab](/api/chartforgex-terminal-terminalstory/#method-declaretab-string-string-chartforgex-terminal-terminaldialect-string-chartforgex-themes-visualtheme-nullable-chartforgex-icon-string-chartforgex-thememode-chartforgex-terminal-terminalstyleoptions) parameter `theme`
- Method [TerminalStory.InitialTab](/api/chartforgex-terminal-terminalstory/#method-initialtab-string-string-chartforgex-terminal-terminaldialect-string-chartforgex-themes-visualtheme-nullable-chartforgex-icon-string-chartforgex-thememode-chartforgex-terminal-terminalstyleoptions) parameter `theme`
- Method [TerminalStory.OpenTab](/api/chartforgex-terminal-terminalstory/#method-opentab-string-string-chartforgex-terminal-terminaldialect-string-chartforgex-themes-visualtheme-nullable-chartforgex-icon-string-double-chartforgex-thememode-chartforgex-terminal-terminalstyleoptions) parameter `theme`
- Method [TerminalStoryFluent.Theme](/api/chartforgex-terminal-terminalstoryfluent/#method-theme-chartforgex-terminal-terminalstory-chartforgex-themes-visualtheme) parameter `value`
- Method [SvgColorVariables.SharedRoles](/api/chartforgex-themes-svgcolorvariables/#method-sharedroles-chartforgex-themes-visualtheme-chartforgex-thememode) parameter `theme`
- Constructor [VisualThemeBuilder.VisualThemeBuilder](/api/chartforgex-themes-visualthemebuilder/#constructor-ctor-chartforgex-themes-visualtheme) parameter `theme`
- Extension method [TopologyChart.Theme](/api/chartforgex-topology-topologychart/#extension-theme-chartforgex-topology-topologychart-chartforgex-themes-visualtheme) parameter `value`
- Method [TopologyChartFluent.Theme](/api/chartforgex-topology-topologychartfluent/#method-theme-chartforgex-topology-topologychart-chartforgex-themes-visualtheme) parameter `value`
- Method [TopologyHtmlRenderer.StyleSheet](/api/chartforgex-topology-topologyhtmlrenderer/#method-stylesheet-chartforgex-topology-topologyrenderoptions-chartforgex-themes-visualtheme-chartforgex-thememode) parameter `theme`
- Extension method [SequenceArtifact.Theme](/api/chartforgex-visualartifacts-sequenceartifact/#extension-theme-chartforgex-visualartifacts-sequenceartifact-chartforgex-themes-visualtheme) parameter `value`
- Method [SequenceArtifactFluent.Theme](/api/chartforgex-visualartifacts-sequenceartifactfluent/#method-theme-chartforgex-visualartifacts-sequenceartifact-chartforgex-themes-visualtheme) parameter `value`
- Extension method [ActivityTimelineBlock.Theme](/api/chartforgex-visualblocks-activitytimelineblock/#extension-theme-chartforgex-visualblocks-activitytimelineblock-chartforgex-themes-visualtheme) parameter `value`
- Method [ActivityTimelineBlockFluent.Theme](/api/chartforgex-visualblocks-activitytimelineblockfluent/#method-theme-chartforgex-visualblocks-activitytimelineblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [BlockLayoutBlock.Theme](/api/chartforgex-visualblocks-blocklayoutblock/#extension-theme-chartforgex-visualblocks-blocklayoutblock-chartforgex-themes-visualtheme) parameter `value`
- Method [BlockLayoutBlockFluent.Theme](/api/chartforgex-visualblocks-blocklayoutblockfluent/#method-theme-chartforgex-visualblocks-blocklayoutblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [ChartList.Theme](/api/chartforgex-visualblocks-chartlist/#extension-theme-chartforgex-visualblocks-chartlist-chartforgex-themes-visualtheme) parameter `value`
- Method [ChartListFluent.Theme](/api/chartforgex-visualblocks-chartlistfluent/#method-theme-chartforgex-visualblocks-chartlist-chartforgex-themes-visualtheme) parameter `value`
- Extension method [ChartTable.Theme](/api/chartforgex-visualblocks-charttable/#extension-theme-chartforgex-visualblocks-charttable-chartforgex-themes-visualtheme) parameter `value`
- Method [ChartTableFluent.Theme](/api/chartforgex-visualblocks-charttablefluent/#method-theme-chartforgex-visualblocks-charttable-chartforgex-themes-visualtheme) parameter `value`
- Extension method [DateStripBlock.Theme](/api/chartforgex-visualblocks-datestripblock/#extension-theme-chartforgex-visualblocks-datestripblock-chartforgex-themes-visualtheme) parameter `value`
- Method [DateStripBlockFluent.Theme](/api/chartforgex-visualblocks-datestripblockfluent/#method-theme-chartforgex-visualblocks-datestripblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [EntityStripBlock.Theme](/api/chartforgex-visualblocks-entitystripblock/#extension-theme-chartforgex-visualblocks-entitystripblock-chartforgex-themes-visualtheme) parameter `value`
- Method [EntityStripBlockFluent.Theme](/api/chartforgex-visualblocks-entitystripblockfluent/#method-theme-chartforgex-visualblocks-entitystripblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [FishboneDiagramBlock.Theme](/api/chartforgex-visualblocks-fishbonediagramblock/#extension-theme-chartforgex-visualblocks-fishbonediagramblock-chartforgex-themes-visualtheme) parameter `value`
- Method [FishboneDiagramBlockFluent.Theme](/api/chartforgex-visualblocks-fishbonediagramblockfluent/#method-theme-chartforgex-visualblocks-fishbonediagramblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [GitGraphBlock.Theme](/api/chartforgex-visualblocks-gitgraphblock/#extension-theme-chartforgex-visualblocks-gitgraphblock-chartforgex-themes-visualtheme) parameter `value`
- Method [GitGraphBlockFluent.Theme](/api/chartforgex-visualblocks-gitgraphblockfluent/#method-theme-chartforgex-visualblocks-gitgraphblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [HeatmapInsightCard.Theme](/api/chartforgex-visualblocks-heatmapinsightcard/#extension-theme-chartforgex-visualblocks-heatmapinsightcard-chartforgex-themes-visualtheme) parameter `value`
- Method [HeatmapInsightCardFluent.Theme](/api/chartforgex-visualblocks-heatmapinsightcardfluent/#method-theme-chartforgex-visualblocks-heatmapinsightcard-chartforgex-themes-visualtheme) parameter `value`
- Extension method [JourneyDiagramBlock.Theme](/api/chartforgex-visualblocks-journeydiagramblock/#extension-theme-chartforgex-visualblocks-journeydiagramblock-chartforgex-themes-visualtheme) parameter `value`
- Method [JourneyDiagramBlockFluent.Theme](/api/chartforgex-visualblocks-journeydiagramblockfluent/#method-theme-chartforgex-visualblocks-journeydiagramblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [MetricCard.Theme](/api/chartforgex-visualblocks-metriccard/#extension-theme-chartforgex-visualblocks-metriccard-chartforgex-themes-visualtheme) parameter `value`
- Method [MetricCardFluent.Theme](/api/chartforgex-visualblocks-metriccardfluent/#method-theme-chartforgex-visualblocks-metriccard-chartforgex-themes-visualtheme) parameter `value`
- Extension method [PacketLayoutBlock.Theme](/api/chartforgex-visualblocks-packetlayoutblock/#extension-theme-chartforgex-visualblocks-packetlayoutblock-chartforgex-themes-visualtheme) parameter `value`
- Method [PacketLayoutBlockFluent.Theme](/api/chartforgex-visualblocks-packetlayoutblockfluent/#method-theme-chartforgex-visualblocks-packetlayoutblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [RadialMetricCard.Theme](/api/chartforgex-visualblocks-radialmetriccard/#extension-theme-chartforgex-visualblocks-radialmetriccard-chartforgex-themes-visualtheme) parameter `value`
- Method [RadialMetricCardFluent.Theme](/api/chartforgex-visualblocks-radialmetriccardfluent/#method-theme-chartforgex-visualblocks-radialmetriccard-chartforgex-themes-visualtheme) parameter `value`
- Extension method [RailroadDiagramBlock.Theme](/api/chartforgex-visualblocks-railroaddiagramblock/#extension-theme-chartforgex-visualblocks-railroaddiagramblock-chartforgex-themes-visualtheme) parameter `value`
- Method [RailroadDiagramBlockFluent.Theme](/api/chartforgex-visualblocks-railroaddiagramblockfluent/#method-theme-chartforgex-visualblocks-railroaddiagramblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [ScheduleTimelineBlock.Theme](/api/chartforgex-visualblocks-scheduletimelineblock/#extension-theme-chartforgex-visualblocks-scheduletimelineblock-chartforgex-themes-visualtheme) parameter `value`
- Method [ScheduleTimelineBlockFluent.Theme](/api/chartforgex-visualblocks-scheduletimelineblockfluent/#method-theme-chartforgex-visualblocks-scheduletimelineblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [SectionHeaderBlock.Theme](/api/chartforgex-visualblocks-sectionheaderblock/#extension-theme-chartforgex-visualblocks-sectionheaderblock-chartforgex-themes-visualtheme) parameter `value`
- Method [SectionHeaderBlockFluent.Theme](/api/chartforgex-visualblocks-sectionheaderblockfluent/#method-theme-chartforgex-visualblocks-sectionheaderblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [SegmentedMetricBlock.Theme](/api/chartforgex-visualblocks-segmentedmetricblock/#extension-theme-chartforgex-visualblocks-segmentedmetricblock-chartforgex-themes-visualtheme) parameter `value`
- Method [SegmentedMetricBlockFluent.Theme](/api/chartforgex-visualblocks-segmentedmetricblockfluent/#method-theme-chartforgex-visualblocks-segmentedmetricblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [TimelineDiagramBlock.Theme](/api/chartforgex-visualblocks-timelinediagramblock/#extension-theme-chartforgex-visualblocks-timelinediagramblock-chartforgex-themes-visualtheme) parameter `value`
- Method [TimelineDiagramBlockFluent.Theme](/api/chartforgex-visualblocks-timelinediagramblockfluent/#method-theme-chartforgex-visualblocks-timelinediagramblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [TreeViewBlock.Theme](/api/chartforgex-visualblocks-treeviewblock/#extension-theme-chartforgex-visualblocks-treeviewblock-chartforgex-themes-visualtheme) parameter `value`
- Method [TreeViewBlockFluent.Theme](/api/chartforgex-visualblocks-treeviewblockfluent/#method-theme-chartforgex-visualblocks-treeviewblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [VennDiagramBlock.Theme](/api/chartforgex-visualblocks-venndiagramblock/#extension-theme-chartforgex-visualblocks-venndiagramblock-chartforgex-themes-visualtheme) parameter `value`
- Method [VennDiagramBlockFluent.Theme](/api/chartforgex-visualblocks-venndiagramblockfluent/#method-theme-chartforgex-visualblocks-venndiagramblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [VisualBlockOptions.Theme](/api/chartforgex-visualblocks-visualblockoptions/#extension-theme-chartforgex-visualblocks-visualblockoptions-chartforgex-themes-visualtheme) parameter `value`
- Method [VisualBlockOptionsFluent.Theme](/api/chartforgex-visualblocks-visualblockoptionsfluent/#method-theme-chartforgex-visualblocks-visualblockoptions-chartforgex-themes-visualtheme) parameter `value`
- Extension method [VisualGrid.Theme](/api/chartforgex-visualblocks-visualgrid/#extension-theme-chartforgex-visualblocks-visualgrid-chartforgex-themes-visualtheme) parameter `value`
- Method [VisualGridFluent.Theme](/api/chartforgex-visualblocks-visualgridfluent/#method-theme-chartforgex-visualblocks-visualgrid-chartforgex-themes-visualtheme) parameter `value`
- Extension method [WardleyMapBlock.Theme](/api/chartforgex-visualblocks-wardleymapblock/#extension-theme-chartforgex-visualblocks-wardleymapblock-chartforgex-themes-visualtheme) parameter `value`
- Method [WardleyMapBlockFluent.Theme](/api/chartforgex-visualblocks-wardleymapblockfluent/#method-theme-chartforgex-visualblocks-wardleymapblock-chartforgex-themes-visualtheme) parameter `value`
- Extension method [WorkloadListBlock.Theme](/api/chartforgex-visualblocks-workloadlistblock/#extension-theme-chartforgex-visualblocks-workloadlistblock-chartforgex-themes-visualtheme) parameter `value`
- Method [WorkloadListBlockFluent.Theme](/api/chartforgex-visualblocks-workloadlistblockfluent/#method-theme-chartforgex-visualblocks-workloadlistblock-chartforgex-themes-visualtheme) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 `public VisualTheme(VisualDesignTokens light, VisualDesignTokens dark, VisualTypography? typography = null, double spacing = 12, double seriesStrokeWidth = 2, double markerRadius = 4, double areaOpacity = 0.12, double barRadius = 4, double gridStrokeWidth = 1, double axisStrokeWidth = 1, double cardRadius = 3, double cardShadowOpacity = 0, ChartColor? cardShadowColor = null, double gaugeStrokeWidth = 14, double gaugeBandWidth = 4, double plotRadius = 3)` [#](#member-6d60f929890f1daa137b230a) 

[VisualTheme.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L21)

Creates a paired theme from independent token snapshots and geometry settings.

Parameters

**light ChartForgeX.Themes.VisualDesignTokens required**

**dark ChartForgeX.Themes.VisualDesignTokens required**

**typography ChartForgeX.Themes.VisualTypography? = null optional**

**spacing double = 12 optional**

**seriesStrokeWidth double = 2 optional**

**markerRadius double = 4 optional**

**areaOpacity double = 0.12 optional**

**barRadius double = 4 optional**

**gridStrokeWidth double = 1 optional**

**axisStrokeWidth double = 1 optional**

**cardRadius double = 3 optional**

**cardShadowOpacity double = 0 optional**

**cardShadowColor ChartForgeX.Primitives.ChartColor? = null optional**

**gaugeStrokeWidth double = 14 optional**

**gaugeBandWidth double = 4 optional**

**plotRadius double = 3 optional**

## Methods

 `public static VisualTheme Accessible()` [#](#method-accessible) 

[VisualTheme.Presets.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.Presets.cs#L10)

Creates the Graphite theme with a palette that colorblind readers can tell apart.

Returns

 `VisualTheme` 

 `public VisualTheme Configure(Action<VisualThemeBuilder> configure)` [#](#method-configure-action-chartforgex-themes-visualthemebuilder) 

[VisualTheme.cs:97](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L97)

Creates a new immutable theme by configuring an independent builder.

Parameters

**configure System.Action<ChartForgeX.Themes.VisualThemeBuilder> required**

Returns

 `VisualTheme` 

 `public static VisualTheme FromJson(string json)` [#](#method-fromjson-string) 

[VisualTheme.Json.cs:31](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.Json.cs#L31)

Loads a version 1 paired theme, including canonical palettes, typography and geometry.

Parameters

**json string required**

The case-sensitive versioned theme document, at most one MiB of characters.

Returns

 `VisualTheme` An immutable theme snapshot. 

Exceptions

- `ArgumentException` – The document is malformed, unsupported, incomplete or outside input limits.

 `public static VisualTheme FromPaletteJson(string json, VisualTypography? typography = null)` [#](#method-frompalettejson-string-chartforgex-themes-visualtypography) 

[VisualTheme.cs:112](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L112)

Creates a theme from generated HtmlForgeX palettes and optional shared visual primitives.

Parameters

**json string required**

**typography ChartForgeX.Themes.VisualTypography? = null optional**

Returns

 `VisualTheme` 

 `public static VisualTheme Graphite()` [#](#method-graphite) 

[VisualTheme.cs:87](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L87)

Gets the Graphite layout preset with the canonical HtmlForgeX light/dark colors.

Returns

 `VisualTheme` 

 `public VisualThemeColors Resolve(ThemeMode mode)` [#](#method-resolve-chartforgex-thememode) 

[VisualTheme.cs:82](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L82)

Resolves the selected immutable color snapshot. [ThemeMode.Auto](/api/chartforgex-thememode/) resolves to the light colors.

Parameters

**mode ChartForgeX.ThemeMode required**

Returns

 `VisualThemeColors` 

 `public string ToJson()` [#](#method-tojson) 

[VisualTheme.Json.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.Json.cs#L68)

Exports the complete paired color, typography and geometry theme using schemaVersion 1.

Returns

 `string` A deterministic JSON document suitable for [VisualTheme.FromJson](/api/chartforgex-themes-visualtheme/). 

 `public static VisualTheme TransparentOverlay()` [#](#method-transparentoverlay) 

[VisualTheme.Presets.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.Presets.cs#L15)

Creates the Graphite theme with transparent backgrounds for drawing over imagery and wallpapers.

Returns

 `VisualTheme` 

 `public VisualTheme WithFontFamily(string family)` [#](#method-withfontfamily-string) 

[VisualTheme.cs:103](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L103)

Creates a theme with the supplied family and all other typography preserved.

Parameters

**family string required**

Returns

 `VisualTheme` 

 `public VisualTheme WithMinimumReadableTextSize(double size)` [#](#method-withminimumreadabletextsize-double) 

[VisualTheme.cs:105](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L105)

Creates a theme whose readable diagram layouts keep text at or above size pixels.

Parameters

**size double required**

Returns

 `VisualTheme` 

 WithPalette 2 overloads 

 `public VisualTheme WithPalette(ThemeMode mode, params ChartColor[] colors)` [#](#method-withpalette-chartforgex-thememode-chartforgex-primitives-chartcolor) 

[VisualTheme.cs:107](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L107)

Creates a theme with a categorical palette for one explicit mode.

Parameters

**mode ChartForgeX.ThemeMode required**

**colors ChartForgeX.Primitives.ChartColor[] required**

Returns

 `VisualTheme` 

 `public VisualTheme WithPalette(params ChartColor[] colors)` [#](#method-withpalette-chartforgex-primitives-chartcolor) 

[VisualTheme.cs:109](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L109)

Creates a theme with the supplied categorical palette in both modes.

Parameters

**colors ChartForgeX.Primitives.ChartColor[] required**

Returns

 `VisualTheme` 

 `public VisualTheme WithTypography(VisualTypography typography)` [#](#method-withtypography-chartforgex-themes-visualtypography) 

[VisualTheme.cs:90](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L90)

Creates an independent paired theme with the supplied typography and the same colors, geometry and effects.

Parameters

**typography ChartForgeX.Themes.VisualTypography required**

The complete font scale to use for the new theme.

Returns

 `VisualTheme` 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public VisualTypography Typography { get; }` [#](#property-typography) 

[VisualTheme.cs:47](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L47)

Gets the typography scale.

 `public double Spacing { get; }` [#](#property-spacing) 

[VisualTheme.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L49)

Gets the standard layout gap.

 `public double SeriesStrokeWidth { get; }` [#](#property-seriesstrokewidth) 

[VisualTheme.cs:51](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L51)

Gets the default data-line width.

 `public double MarkerRadius { get; }` [#](#property-markerradius) 

[VisualTheme.cs:53](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L53)

Gets the default point radius.

 `public double AreaOpacity { get; }` [#](#property-areaopacity) 

[VisualTheme.cs:55](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L55)

Gets the area fill opacity on light surfaces (0.12 by default).

 `public double BarRadius { get; }` [#](#property-barradius) 

[VisualTheme.cs:62](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L62)

Gets the bar corner radius.

 `public double MaximumBarWidth { get; }` [#](#property-maximumbarwidth) 

[VisualTheme.cs:64](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L64)

Gets the maximum regular bar thickness in drawing pixels (64 by default).

 `public double CardRadius { get; }` [#](#property-cardradius) 

[VisualTheme.cs:66](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L66)

Gets the shared outer card corner radius, independent of plot and data mark radii.

 `public double PlotRadius { get; }` [#](#property-plotradius) 

[VisualTheme.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L68)

Gets the plot surface corner radius, independent of card and mark radii.

 `public double CardShadowOpacity { get; }` [#](#property-cardshadowopacity) 

[VisualTheme.cs:70](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L70)

Gets the shared card shadow opacity. Zero keeps the default flat surface.

 `public ChartColor CardShadowColor { get; }` [#](#property-cardshadowcolor) 

[VisualTheme.cs:72](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L72)

Gets the shared card shadow color, including its authored alpha.

 `public double GridStrokeWidth { get; }` [#](#property-gridstrokewidth) 

[VisualTheme.cs:74](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L74)

Gets the guide width.

 `public double AxisStrokeWidth { get; }` [#](#property-axisstrokewidth) 

[VisualTheme.cs:76](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L76)

Gets the axis width.

 `public double GaugeStrokeWidth { get; }` [#](#property-gaugestrokewidth) 

[VisualTheme.cs:78](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L78)

Gets the gauge track and value stroke width.

 `public double GaugeBandWidth { get; }` [#](#property-gaugebandwidth) 

[VisualTheme.cs:80](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L80)

Gets the gauge threshold band width.

 `public IReadOnlyDictionary<ChartSeriesKind, VisualSeriesDefaults> SeriesDefaults { get; }` [#](#property-seriesdefaults) 

[VisualTheme.SeriesDefaults.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.SeriesDefaults.cs#L16)

Gets independent copies of the per-kind series defaults, keyed by series kind.

<!-- PowerForge markdown artifact sha256:CE2039071F1E8B19FFD6B363F89D0D998CCB42A88EC7927D9734845E53C9EA1E -->
