Tokens class Core

The theme's design tokens for styles - colours and lengths that are read from ArionTheme.Current when drawn, so a style built from them looks right in every theme, light, dark or high contrast. Each has a name (accent, font-body), and Tokens.TryGet finds it by that name - the lookup a text form of style sheets would use.

public static class Tokens
Namespace
ArionUI.Presentation.Controls
Package
ArionUI.Presentation · dotnet add package ArionUI.Presentation --prerelease

Properties

Accent

public static StyleColor Accent { get; }

THE accent colour.

AccentDeep

public static StyleColor AccentDeep { get; }

A deeper accent.

AccentTint

public static StyleColor AccentTint { get; }

An accent-tinted surface.

Amber

public static StyleColor Amber { get; }

The status amber.

Background

public static StyleColor Background { get; }

The page ground.

Blue

public static StyleColor Blue { get; }

The status blue.

Border

public static StyleColor Border { get; }

A container border, stronger than a hairline.

CardBorder

public static StyleColor CardBorder { get; }

The hairline around a card.

CardFill

public static StyleColor CardFill { get; }

The fill of a card.

ChipText

public static StyleColor ChipText { get; }

Text on an accent fill.

EditBackground

public static StyleColor EditBackground { get; }

The surface of a text input.

FocusBorder

public static StyleColor FocusBorder { get; }

The focus frame colour.

FocusRadius

public static StyleLength FocusRadius { get; }

The corner radius of the theme's focus frame.

FocusWidth

public static StyleLength FocusWidth { get; }

The stroke of the theme's focus frame.

FontBody

public static StyleLength FontBody { get; }

The size of body text (the theme's cell type size) - also what text without a style of its own is drawn at.

FontButton

public static StyleLength FontButton { get; }

The size of a button's caption.

FontCaption

public static StyleLength FontCaption { get; }

The size of small labels (the theme's chrome label size).

Green

public static StyleColor Green { get; }

The status green.

HeaderFill

public static StyleColor HeaderFill { get; }

The fill of a header band.

Red

public static StyleColor Red { get; }

The status red.

RowHover

public static StyleColor RowHover { get; }

The tint under the pointer (a hovered row, a quiet button).

SelectionFill

public static StyleColor SelectionFill { get; }

The selection tint.

Shadow

public static StyleColor Shadow { get; }

The shadow under a raised surface.

Text

public static StyleColor Text { get; }

Body text.

TextDim

public static StyleColor TextDim { get; }

Secondary text.

TextFaint

public static StyleColor TextFaint { get; }

The faintest text step.

Methods

TryGet

public static bool TryGet(string name, out StyleColor color);

The colour token called name ("accent"); false when there is none.

TryGet

public static bool TryGet(string name, out StyleLength length);

The length token called name ("font-body"); false when there is none.