Skip to content
ConsoleMonster

API Reference

Interface

ITheme

Namespace ConsoleMonster.Styling
Assembly ConsoleMonster
Modifiers abstract

Maps semantic tokens to styles per colour tier. Implement it for brand themes, or start from Theme.Dark and override tokens with Theme.With.

Usage

Explore 25 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.

Accepted by parameters 12

Methods

public abstract Style Resolve(ThemeToken token, ColorDepth depth) #
Returns: Style

Resolves a token to a concrete style for a colour depth.

Parameters

token ConsoleMonster.Styling.ThemeToken requiredposition: 0
The token.
depth ConsoleMonster.Capabilities.ColorDepth requiredposition: 1
The colour depth being rendered.

Returns

The style.

public abstract Boolean TryResolve(String name, ColorDepth depth, out Style style) #
Returns: Boolean

Resolves a token by name (case-insensitive), as used in markup such as [pass].

Parameters

name System.String requiredposition: 0
Token name, for example pass or muted.
depth ConsoleMonster.Capabilities.ColorDepth requiredposition: 1
The colour depth being rendered.
style ConsoleMonster.Styling.Style requiredposition: 2
The resolved style.

Returns

Whether the name is a token of this theme.

Properties

public abstract String Name { get; } #

The theme name.