API Reference
VisualTheme
A paired immutable theme shared by charts, diagrams and future composition packages.
Inheritance
- Object
- VisualTheme
Usage
Explore 81 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 45
- Property VisualCanvas.Theme
- Property ChartGrid.Theme
- Property ChartOptions.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.Aurora
- Method VisualTheme.Candy
- Method VisualTheme.Colorblind
- Method VisualTheme.Configure
- Method VisualTheme.Dashboard
- Method VisualTheme.Editorial
- Method VisualTheme.Executive
- Method VisualTheme.FromJson
- Method VisualTheme.FromPaletteJson
- Method VisualTheme.Graphite
- Method VisualTheme.Minimal
- Method VisualTheme.PeopleInfographic
- Method VisualTheme.Product
- Method VisualTheme.Report
- Method VisualTheme.RestaurantDashboard
- Method VisualTheme.SaasDashboard
- Method VisualTheme.Terminal
- Method VisualTheme.TransparentOverlay
- Method VisualTheme.WithFontFamily
- Method VisualTheme.WithPalette
- Method VisualTheme.WithTypography
- Method VisualThemeBuilder.Build
- Property TopologyChart.Theme
- Property SequenceArtifact.Theme
- Property VisualBlockOptions.Theme
- Property VisualGrid.Theme
Accepted by parameters 36
- Method VisualCanvas.WithTheme
- Method VisualCanvasKeyValueBlockLayer.MeasureHeight
- Method Chart.WithTheme
- Method ChartGrid.WithTheme
- Constructor VisualRenderContext.VisualRenderContext
- Method VisualStory.WithTheme
- Constructor VisualStoryReplaySurface.VisualStoryReplaySurface
- Method TerminalStory.DeclareTab
- Method TerminalStory.OpenTab
- Method TerminalStory.WithInitialTab
- Method TerminalStory.WithTheme
- Constructor VisualThemeBuilder.VisualThemeBuilder
- Extension method TopologyChart.WithTheme
- Method TopologyChartExtensions.WithTheme
- Method TopologyHtmlRenderer.BuildFragmentStyle
- Method ActivityTimelineBlock.WithTheme
- Method BlockLayoutBlock.WithTheme
- Method ChartList.WithTheme
- Method ChartTable.WithTheme
- Method DateStripBlock.WithTheme
- Method EntityStripBlock.WithTheme
- Method FactualVisualBlock.WithTheme
- Method FishboneDiagramBlock.WithTheme
- Method GitGraphBlock.WithTheme
- Method HeatmapInsightCard.WithTheme
- Method MetricCard.WithTheme
- Method PacketLayoutBlock.WithTheme
- Method RadialMetricCard.WithTheme
- Method ScheduleTimelineBlock.WithTheme
- Method SectionHeaderBlock.WithTheme
- Method SegmentedMetricBlock.WithTheme
- Method VennDiagramBlock.WithTheme
- Method VisualBlock.WithTheme
- Method VisualGrid.WithTheme
- Method WardleyMapBlock.WithTheme
- Method WorkloadListBlock.WithTheme
Constructors
public VisualTheme(VisualDesignTokens light, VisualDesignTokens dark, VisualTypography? typography = null, Double spacing = 12, Double seriesStrokeWidth = 2, Double markerRadius = 3, Double areaOpacity = 0.18, Double barRadius = 3, 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 System.Double = 12
- seriesStrokeWidth System.Double = 2
- markerRadius System.Double = 3
- areaOpacity System.Double = 0.18
- barRadius System.Double = 3
- gridStrokeWidth System.Double = 1
- axisStrokeWidth System.Double = 1
- cardRadius System.Double = 3
- cardShadowOpacity System.Double = 0
- cardShadowColor ChartForgeX.Primitives.ChartColor? = null
- gaugeStrokeWidth System.Double = 14
- gaugeBandWidth System.Double = 4
- plotRadius System.Double = 3
Methods
public static VisualTheme Accessible() #VisualThemeCreates a framed report palette with distinct colors for colorblind readers.
public static VisualTheme Aurora() #VisualThemeCreates a vibrant dark palette for product and status dashboards.
public static VisualTheme Candy() #VisualThemeCreates a soft light palette with rounded typography and surfaces.
public static VisualTheme Colorblind() #VisualThemeCreates a light report palette with distinct colors for colorblind readers.
public VisualTheme Configure(Action<VisualThemeBuilder> configure) #VisualThemeCreates a new immutable theme by configuring an independent builder.
Parameters
- configure System.Action<ChartForgeX.Themes.VisualThemeBuilder>
public static VisualTheme Dashboard() #VisualThemeCreates a bright operational dashboard palette for KPIs and utilization panels.
public static VisualTheme Editorial() #VisualThemeCreates a warm publication palette with serif typography.
public static VisualTheme Executive() #VisualThemeCreates a restrained executive report palette with framed surfaces.
public static VisualTheme FromJson(String json) #VisualThemeLoads a version 1 paired theme, including canonical palettes, typography and geometry.
Parameters
- json System.String
- The case-sensitive versioned theme document, at most one MiB of characters.
Returns
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) #VisualThemeCreates a theme from generated HtmlForgeX color palettes without changing geometry.
Parameters
- json System.String
- typography ChartForgeX.Themes.VisualTypography? = null
public static VisualTheme Graphite() #VisualThemeGets the Graphite layout preset with the canonical HtmlForgeX light/dark colors.
public static VisualTheme Minimal() #VisualThemeCreates a crisp light palette for dense business dashboards.
public static VisualTheme PeopleInfographic() #VisualThemeCreates a cyan and magenta palette for demographic and survey graphics.
public static VisualTheme Product() #VisualThemeCreates a vivid product dashboard palette with floating surfaces.
public static VisualTheme Report() #VisualThemeCreates a paired light and dark theme for reports and generated HTML.
public VisualThemeColors Resolve(VisualThemeMode mode) #VisualThemeColorsResolves the selected immutable color snapshot.
Parameters
- mode ChartForgeX.Themes.VisualThemeMode
public static VisualTheme RestaurantDashboard() #VisualThemeCreates a soft light dashboard palette for restaurant operations panels.
public static VisualTheme SaasDashboard() #VisualThemeCreates a light dashboard palette for revenue trends, targets and driver cards.
public static VisualTheme Terminal() #VisualThemeCreates a compact green technical palette with monospace typography.
public String ToJson() #StringExports the complete paired color, typography and geometry theme using schemaVersion 1.
Returns
A deterministic JSON document suitable for VisualTheme.FromJson.
public static VisualTheme TransparentOverlay() #VisualThemeCreates a transparent dark overlay palette for imagery and wallpapers.
public VisualTheme WithFontFamily(String family) #VisualThemeCreates a theme with the supplied family and all other typography preserved.
Parameters
- family System.String
public VisualTheme WithPalette(VisualThemeMode mode, params ChartColor[] colors) #VisualThemeCreates a theme with a categorical palette for one explicit mode.
Parameters
- mode ChartForgeX.Themes.VisualThemeMode
- colors ChartForgeX.Primitives.ChartColor[]
public VisualTheme WithPalette(params ChartColor[] colors) #VisualThemeCreates a theme with the supplied categorical palette in both modes.
Parameters
- colors ChartForgeX.Primitives.ChartColor[]
public VisualTheme WithTypography(VisualTypography typography) #VisualThemeCreates 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.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
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.