VisualTheme
ChartForgeX.Themes
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
- Property ChartGrid.Theme
- Property ChartOptions.Theme
- Property MermaidPresentationOptions.Theme
- Property VisualRenderContext.Theme
- Property VisualStory.Theme
- Property VisualStoryReplaySurface.Theme
- Method VisualStoryThemes.Linux
- Method VisualStoryThemes.MacOS
- Method VisualStoryThemes.Premium
- Method VisualStoryThemes.Windows
- Property TerminalStory.Theme
- Property TerminalTab.Theme
- Method TerminalThemes.Campbell
- Method TerminalThemes.Classic
- Method TerminalThemes.Default
- Method TerminalThemes.PowerShell
- Method TerminalThemes.Ubuntu
- Method TerminalThemes.WindowsPowerShell
- Method VisualTheme.Accessible
- Method VisualTheme.Configure
- Method VisualTheme.FromJson
- Method VisualTheme.FromPaletteJson
- Method VisualTheme.Graphite
- Method VisualTheme.TransparentOverlay
- Method VisualTheme.WithFontFamily
- Method VisualTheme.WithMinimumReadableTextSize
- Method VisualTheme.WithPalette
- Method VisualTheme.WithTypography
- Method VisualThemeBuilder.Build
- Property TopologyChart.Theme
- Property SequenceArtifact.Theme
- Property VisualArtifactInterchangeJourneyArtifact.Theme
- Property VisualArtifactInterchangeRailroadArtifact.Theme
- Property VisualArtifactInterchangeSequenceArtifact.Theme
- Property VisualArtifactInterchangeTheme.Definition
- Property VisualArtifactInterchangeTimelineArtifact.Theme
- Property VisualArtifactInterchangeTreeViewArtifact.Theme
- Property VisualArtifactInterchangeWaterfallArtifact.Theme
- Property VisualBlockOptions.Theme
- Property VisualGrid.Theme
Accepted by parameters 74
- Extension method VisualCanvas.Theme
- Method VisualCanvasFluent.Theme
- Method VisualCanvasKeyValueBlockLayer.MeasureHeight
- Extension method Chart.Theme
- Method ChartFluent.Theme
- Extension method ChartGrid.Theme
- Method ChartGridFluent.Theme
- Extension method ChartOptions.Theme
- Method ChartOptionsFluent.Theme
- Constructor VisualRenderContext.VisualRenderContext
- Method VisualSvgOptions.WithSharedDesignRoles
- Extension method VisualStory.Theme
- Method VisualStoryFluent.Theme
- Constructor VisualStoryReplaySurface.VisualStoryReplaySurface
- Extension method TerminalStory.Theme
- Method TerminalStory.DeclareTab
- Method TerminalStory.InitialTab
- Method TerminalStory.OpenTab
- Method TerminalStoryFluent.Theme
- Method SvgColorVariables.SharedRoles
- Constructor VisualThemeBuilder.VisualThemeBuilder
- Extension method TopologyChart.Theme
- Method TopologyChartFluent.Theme
- Method TopologyHtmlRenderer.StyleSheet
- Extension method SequenceArtifact.Theme
- Method SequenceArtifactFluent.Theme
- Extension method ActivityTimelineBlock.Theme
- Method ActivityTimelineBlockFluent.Theme
- Extension method BlockLayoutBlock.Theme
- Method BlockLayoutBlockFluent.Theme
- Extension method ChartList.Theme
- Method ChartListFluent.Theme
- Extension method ChartTable.Theme
- Method ChartTableFluent.Theme
- Extension method DateStripBlock.Theme
- Method DateStripBlockFluent.Theme
- Extension method EntityStripBlock.Theme
- Method EntityStripBlockFluent.Theme
- Extension method FishboneDiagramBlock.Theme
- Method FishboneDiagramBlockFluent.Theme
- Extension method GitGraphBlock.Theme
- Method GitGraphBlockFluent.Theme
- Extension method HeatmapInsightCard.Theme
- Method HeatmapInsightCardFluent.Theme
- Extension method JourneyDiagramBlock.Theme
- Method JourneyDiagramBlockFluent.Theme
- Extension method MetricCard.Theme
- Method MetricCardFluent.Theme
- Extension method PacketLayoutBlock.Theme
- Method PacketLayoutBlockFluent.Theme
- Extension method RadialMetricCard.Theme
- Method RadialMetricCardFluent.Theme
- Extension method RailroadDiagramBlock.Theme
- Method RailroadDiagramBlockFluent.Theme
- Extension method ScheduleTimelineBlock.Theme
- Method ScheduleTimelineBlockFluent.Theme
- Extension method SectionHeaderBlock.Theme
- Method SectionHeaderBlockFluent.Theme
- Extension method SegmentedMetricBlock.Theme
- Method SegmentedMetricBlockFluent.Theme
- Extension method TimelineDiagramBlock.Theme
- Method TimelineDiagramBlockFluent.Theme
- Extension method TreeViewBlock.Theme
- Method TreeViewBlockFluent.Theme
- Extension method VennDiagramBlock.Theme
- Method VennDiagramBlockFluent.Theme
- Extension method VisualBlockOptions.Theme
- Method VisualBlockOptionsFluent.Theme
- Extension method VisualGrid.Theme
- Method VisualGridFluent.Theme
- Extension method WardleyMapBlock.Theme
- Method WardleyMapBlockFluent.Theme
- Extension method WorkloadListBlock.Theme
- Method WorkloadListBlockFluent.Theme
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) #Creates a paired theme from independent token snapshots and geometry settings.
Parameters
- light ChartForgeX.Themes.VisualDesignTokens
- dark ChartForgeX.Themes.VisualDesignTokens
- typography ChartForgeX.Themes.VisualTypography? = null
- spacing double = 12
- seriesStrokeWidth double = 2
- markerRadius double = 4
- areaOpacity double = 0.12
- barRadius double = 4
- gridStrokeWidth double = 1
- axisStrokeWidth double = 1
- cardRadius double = 3
- cardShadowOpacity double = 0
- cardShadowColor ChartForgeX.Primitives.ChartColor? = null
- gaugeStrokeWidth double = 14
- gaugeBandWidth double = 4
- plotRadius double = 3
Methods
public static VisualTheme Accessible() #Creates the Graphite theme with a palette that colorblind readers can tell apart.
Returns
VisualThemepublic VisualTheme Configure(Action<VisualThemeBuilder> configure) #Creates a new immutable theme by configuring an independent builder.
Parameters
- configure System.Action<ChartForgeX.Themes.VisualThemeBuilder>
Returns
VisualThemepublic static VisualTheme FromJson(string json) #Loads a version 1 paired theme, including canonical palettes, typography and geometry.
Parameters
- json string
- The case-sensitive versioned theme document, at most one MiB of characters.
Exceptions
ArgumentException– The document is malformed, unsupported, incomplete or outside input limits.
public static VisualTheme FromPaletteJson(string json, VisualTypography? typography = null) #Creates a theme from generated HtmlForgeX palettes and optional shared visual primitives.
Parameters
- json string
- typography ChartForgeX.Themes.VisualTypography? = null
Returns
VisualThemepublic static VisualTheme Graphite() #Gets the Graphite layout preset with the canonical HtmlForgeX light/dark colors.
Returns
VisualThemepublic VisualThemeColors Resolve(ThemeMode mode) #Resolves the selected immutable color snapshot. ThemeMode.Auto resolves to the light colors.
Parameters
- mode ChartForgeX.ThemeMode
Returns
VisualThemeColorspublic string ToJson() #Exports the complete paired color, typography and geometry theme using schemaVersion 1.
public static VisualTheme TransparentOverlay() #Creates the Graphite theme with transparent backgrounds for drawing over imagery and wallpapers.
Returns
VisualThemepublic VisualTheme WithFontFamily(string family) #Creates a theme with the supplied family and all other typography preserved.
Parameters
- family string
Returns
VisualThemepublic VisualTheme WithMinimumReadableTextSize(double size) #Creates a theme whose readable diagram layouts keep text at or above size pixels.
Parameters
- size double
Returns
VisualThemepublic VisualTheme WithPalette(ThemeMode mode, params ChartColor[] colors) #Creates a theme with a categorical palette for one explicit mode.
Parameters
- mode ChartForgeX.ThemeMode
- colors ChartForgeX.Primitives.ChartColor[]
Returns
VisualThemepublic VisualTheme WithPalette(params ChartColor[] colors) #Creates a theme with the supplied categorical palette in both modes.
Parameters
- colors ChartForgeX.Primitives.ChartColor[]
Returns
VisualThemepublic VisualTheme WithTypography(VisualTypography typography) #Creates an independent paired theme with the supplied typography and the same colors, geometry and effects.
Parameters
- typography ChartForgeX.Themes.VisualTypography
- The complete font scale to use for the new theme.
Returns
VisualThemeInherited Methods
Properties
public double AreaOpacity { get; } #Gets the area fill opacity on light surfaces (0.12 by default).
public double MaximumBarWidth { get; } #Gets the maximum regular bar thickness in drawing pixels (64 by default).
public double CardRadius { get; } #Gets the shared outer card corner radius, independent of plot and data mark radii.
public double PlotRadius { get; } #Gets the plot surface corner radius, independent of card and mark radii.
public double CardShadowOpacity { get; } #Gets the shared card shadow opacity. Zero keeps the default flat surface.
public ChartColor CardShadowColor { get; } #Gets the shared card shadow color, including its authored alpha.
public double GaugeStrokeWidth { get; } #Gets the gauge track and value stroke width.
public IReadOnlyDictionary<ChartSeriesKind, VisualSeriesDefaults> SeriesDefaults { get; } #Gets independent copies of the per-kind series defaults, keyed by series kind.