ITheme Interface#
Defines a complete visual theme for the Verso notebook UI, including colors, typography, spacing, and syntax highlighting.
public interface ITheme : Verso.Abstractions.IExtension
Implements IExtension
Properties#
Colors Property#
Color tokens that define backgrounds, foregrounds, borders, and accent colors.
Verso.Abstractions.ThemeColorTokens Colors { get; }
Property Value#
DisplayName Property#
Human-readable theme name shown in the theme picker.
string DisplayName { get; }
Property Value#
Elevation Property#
Elevation tokens controlling how surfaces separate from the ones beneath them.
Verso.Abstractions.ThemeElevation Elevation { get; }
Property Value#
Remarks#
Defaulted so a theme that does not care about elevation stays valid without declaring it. Themes whose surfaces are close in lightness should override this, because at that point the shadow is the only thing telling one surface from another.
Spacing Property#
Spacing tokens controlling padding, margins, and gaps throughout the UI.
Verso.Abstractions.ThemeSpacing Spacing { get; }
Property Value#
ThemeId Property#
Unique identifier for the theme (e.g. "verso-dark", "solarized-light").
string ThemeId { get; }
Property Value#
ThemeKind Property#
Indicates whether this is a light, dark, or high-contrast theme.
Verso.Abstractions.ThemeKind ThemeKind { get; }
Property Value#
Typography Property#
Typography settings including font families, sizes, and line heights.
Verso.Abstractions.ThemeTypography Typography { get; }
Property Value#
Methods#
GetCustomToken(string) Method#
Returns the value of a custom theme token, allowing extensions to define and consume additional design tokens beyond the built-in set.
string? GetCustomToken(string key);
Parameters#
key System.String
The custom token key.
Returns#
System.String
The token value, or null if the key is not defined by this theme.
GetSyntaxColors() Method#
Returns the syntax highlighting color map used by code editors within this theme.
Verso.Abstractions.SyntaxColorMap GetSyntaxColors();
Returns#
SyntaxColorMap
A mapping of syntax token types to their colors.