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.

AccentText

public static StyleColor AccentText { get; }

The accent as text or a line (ArionTheme.AccentText).

AccentTint

public static StyleColor AccentTint { get; }

An accent-tinted surface.

Amber

public static StyleColor Amber { get; }

The status amber.

AmberTint

public static StyleColor AmberTint { get; }

A card's fill tinted with the status amber: the ground of a warning.

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.

DashBorder

public static StyleColor DashBorder { get; }

A dashed placeholder's border.

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.

GreenText

public static StyleColor GreenText { get; }

The status green as text, readable on the theme's grounds.

GreenTint

public static StyleColor GreenTint { get; }

A card's fill tinted with the status green: the ground of a status that is fine.

HeaderFill

public static StyleColor HeaderFill { get; }

The fill of a header band.

Red

public static StyleColor Red { get; }

The status red.

RedText

public static StyleColor RedText { get; }

The error colour as text or a line (ArionTheme.RedText).

RedTint

public static StyleColor RedTint { get; }

A card's fill tinted with the status red: the ground of an error.

RowHover

public static StyleColor RowHover { get; }

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

SegmentPickedBorder

public static StyleColor SegmentPickedBorder { get; }

The border of a segmented control's picked segment (the accent in high contrast).

SegmentTrack

public static StyleColor SegmentTrack { get; }

The track a segmented control's segments lie in.

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.

TypeDateInk

public static StyleColor TypeDateInk { get; }

The mark of a date field.

TypeDateTint

public static StyleColor TypeDateTint { get; }

The ground of a date field's mark.

TypeNumberInk

public static StyleColor TypeNumberInk { get; }

The mark of a number field.

TypeNumberTint

public static StyleColor TypeNumberTint { get; }

The ground of a number field's mark.

TypeTextInk

public static StyleColor TypeTextInk { get; }

The mark of a text field (a type badge).

TypeTextTint

public static StyleColor TypeTextTint { get; }

The ground of a text field's mark.

Warning

public static StyleColor Warning { get; }

A warning as a mark or a line (ArionTheme.Warning).

ZoneFill

public static StyleColor ZoneFill { get; }

The ground of a zone that holds items (a drop list), a step off the card.

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.