Enum
ThemeToken
ConsoleMonster.Styling
Semantic style tokens. Widgets only ask for tokens, never for concrete colours, so a theme (dark, light, high contrast, a brand theme) restyles everything and maps cleanly to every colour tier. Markup can use the token names directly, for example [pass]OK[/] or [muted]12:00[/].
Inheritance
- Enum
- ThemeToken
Usage
Explore 137 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 67
- Property TextInput.Role
- Property TextInputOptions.Role
- Property Panel.BorderRole
- Property OverviewItem.Role
- Property HighlightPresenter.TypeRole
- Property NumberPresenter.NonZeroRole
- Property NumberPresenter.ZeroRole
- Property PresentedValue.Role
- Property RoleRule.Role
- Property PromptSegmentValue.Role
- Property RichColor.Role
- Property RichStyle.Role
- Extension method StatusKind.ToToken
- Method StatusKinds.ToToken
- Method StatusScale.Role
- Property Theme.AdjustedTokens
- Property ThemeCheckReport.AdjustedTokens
- Property ThemeCheckResult.Tokens
- Field ThemeToken.Accent
- Field ThemeToken.Accent2
- Field ThemeToken.Border
- Field ThemeToken.Critical
- Field ThemeToken.Fail
- Field ThemeToken.Focus
- Field ThemeToken.Gap
- Field ThemeToken.Header
- Field ThemeToken.Highlight
- Field ThemeToken.Info
- Field ThemeToken.Low
- Field ThemeToken.Muted
- Field ThemeToken.Pass
- Field ThemeToken.Pending
- Field ThemeToken.Running
- Field ThemeToken.Series1
- Field ThemeToken.Series2
- Field ThemeToken.Series3
- Field ThemeToken.Series4
- Field ThemeToken.Series5
- Field ThemeToken.Series6
- Field ThemeToken.Skip
- Field ThemeToken.Strong
- Field ThemeToken.Subtle
- Field ThemeToken.Surface
- Field ThemeToken.SurfaceAccent
- Field ThemeToken.Text
- Field ThemeToken.Title
- Field ThemeToken.Warn
- Method Tones.ToToken
- Extension method Tone.ToToken
- Property BarChart.Role
- Property ChartItem.Role
- Property ChartOptions.Role
- Property ChartSeries.Role
- Property FactFlow.Role
- Property FooterSegment.Role
- Property Histogram.Role
- Property KeyValueList.KeyRole
- Property Matrix.LegendRoles
- Property PathHop.Role
- Property RecordItem.Role
- Property Rule.LineRole
- Property ScatterPlot.Role
- Property ScatterPoint.Role
- Property ScoreGauge.Role
- Property Sparkline.Role
- Property TextBlock.Role
- Property ViewFact.Role
Accepted by parameters 70
- Method RenderContext.Style
- Method HighlightStyles.ToLines
- Extension method TextInput.Role
- Method TextInputFluent.Role
- Extension method TextInputOptions.Role
- Method TextInputOptionsFluent.Role
- Extension method Panel.BorderRole
- Method PanelFluent.BorderRole
- Constructor OverviewItem.OverviewItem
- Constructor RoleRule.RoleRule
- Method RoleRule.Above
- Method RoleRule.AtLeast
- Method RoleRule.AtMost
- Method RoleRule.Below
- Method RoleRule.Equal
- Method RoleRule.When
- Constructor PromptSegmentValue.PromptSegmentValue
- Method ITheme.Resolve
- Method RichColor.FromRole
- Method RichColor.op_Implicit
- Constructor RichStyle.RichStyle
- Constructor Theme.Theme
- Method Theme.Get
- Method Theme.Resolve
- Method Theme.TryParseToken
- Method Theme.With
- Extension method ThemeToken.ToTone
- Method Tones.ToTone
- Extension method BarChart.Role
- Method BarChart.Add
- Method BarChartFluent.Role
- Constructor ChartItem.ChartItem
- Extension method ChartItem.Role
- Method ChartItemFluent.Role
- Extension method ChartOptions.Role
- Method ChartOptions.Item
- Method ChartOptionsFluent.Role
- Constructor ChartSeries.ChartSeries
- Extension method ChartSeries.Role
- Method ChartSeriesFluent.Role
- Extension method FactFlow.Role
- Method FactFlowFluent.Role
- Constructor FooterSegment.FooterSegment
- Extension method Histogram.Role
- Method HistogramFluent.Role
- Extension method KeyValueList.KeyRole
- Method KeyValueListFluent.KeyRole
- Extension method LineChart.Series
- Method LineChartFluent.Series
- Extension method PathHop.Role
- Method PathHopFluent.Role
- Method RecordView.Heading
- Method RecordView.Section
- Extension method Rule.LineRole
- Method RuleFluent.LineRole
- Extension method ScatterPlot.Role
- Method ScatterPlot.Add
- Method ScatterPlotFluent.Role
- Constructor ScatterPoint.ScatterPoint
- Constructor ScoreGauge.ScoreGauge
- Extension method ScoreGauge.Role
- Method ScoreGaugeFluent.Role
- Extension method Sparkline.Role
- Method SparklineFluent.Role
- Method StackedBar.Add
- Extension method TextBlock.Role
- Method TextBlock.Plain
- Method TextBlockFluent.Role
- Constructor ViewFact.ViewFact
- Method ViewFacts.Add
Inherited Methods
ToString 4 overloads
public string ToString(IFormatProvider? provider) #Inherited from Enum
Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
Returns
stringpublic string ToString(string? format, IFormatProvider? provider) #Inherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format string?
- provider IFormatProvider?
Returns
stringValues
public const ThemeToken Focus #The focused row or control in interactive prompts, menus and forms (carries a background).
Value:
24Extension Methods
public static Tone ToTone(ThemeToken token) #The tone of a theme token: a built-in tone where one matches, otherwise the token by name.
Parameters
- token ConsoleMonster.Styling.ThemeToken
- The token.