Skip to content

Tokens beta ​

Interface of @v12-engine/client

ts
export interface Tokens

Every variable of the interface's look, by its name without the --. Colours are CSS colours

Members ​

"accent-dim" ​

ts
'accent-dim': string;

The same, quieter: edges, scroll bars

"accent-foreground" ​

ts
'accent-foreground': string;

Text on a face of the accent's colour

"border-strong" ​

ts
'border-strong': string;

A stronger edge: what floats, what the pointer is over

"faint-foreground" ​

ts
'faint-foreground': string;

Fainter still: section labels, hints, what is off

"frame-face" ​

ts
'frame-face': string;

The face behind a frame of the HUD, under its texture: near black, a little of the skin's colour in it

"health-high" ​

ts
'health-high': string;

The color of a health bar that is nearly full

"health-low" ​

ts
'health-low': string;

The color of a health bar that is nearly empty

"health-mid" ​

ts
'health-mid': string;

The color of a health bar that is half full

"key-face-bottom" ​

ts
'key-face-bottom': string;

The lower end of the raised face of a command-card key

"key-face-mid" ​

ts
'key-face-mid': string;

The middle of the raised face of a command-card key

"key-face-top" ​

ts
'key-face-top': string;

The raised face of a key of the command card, from its lit top left to its dark bottom right...

"key-hover-bottom" ​

ts
'key-hover-bottom': string;

The lower end of a key's face under the pointer

"key-hover-mid" ​

ts
'key-hover-mid': string;

The middle of a key's face under the pointer

"key-hover-top" ​

ts
'key-hover-top': string;

...and under the pointer

"key-letter" ​

ts
'key-letter': string;

The colour of the keys written on the HUD's keys (Q, F1, M) and of what is ready to take: a point to learn, a level

"metal-dark" ​

ts
'metal-dark': string;

...and where it is in shadow (the foot of a plaque, the edge of a bar)

"metal-light" ​

ts
'metal-light': string;

The metal the HUD's frames are cast in, from where the light falls on it... (the edge inside a frame, the lit top of a plaque, a hero's name)

"muted-foreground" ​

ts
'muted-foreground': string;

Text that explains, and what is not to stand out

"panel-deep" ​

ts
'panel-deep': string;

...to its bottom, and the darkest of fields and buttons

"panel-raised" ​

ts
'panel-raised': string;

What stands out of a panel: a button under the pointer, a raised part

"stat-down" ​

ts
'stat-down': string;

The color of a stat that went down

"stat-up" ​

ts
'stat-up': string;

A stat that goes up, or down

"tone-defense" ​

ts
'tone-defense': string;

The color of a stat line about holding off blows (defense)

"tone-magic" ​

ts
'tone-magic': string;

The color of a stat line about magic damage (StatLine.tone magic)

"tone-physical" ​

ts
'tone-physical': string;

What a stat line is about, coloured so (StatLine.tone): physical damage, magic, holding off blows, holding off magic

"tone-resist" ​

ts
'tone-resist': string;

The color of a stat line about holding off magic (resist)

"typeface-display" ​

ts
'typeface-display': string;

Typefaces: of headings and titles, and of everything else

"typeface-mono" ​

ts
'typeface-mono': string;

Of numbers, keys and code

"typeface-text" ​

ts
'typeface-text': string;

The typeface of everything besides headings, numbers and code, as a CSS font family

accent ​

ts
accent: string;

What is picked, headings, what the pointer is over

background ​

ts
background: string;

Behind everything: the page

border ​

ts
border: string;

The edge of buttons and fields

danger ​

ts
danger: string;

What is wrong, and what is lost

edge ​

ts
edge: string;

The fine edge inside every panel

food ​

ts
food: string;

The color of the food (supply) in the HUD's resource bar

foreground ​

ts
foreground: string;

Text, and what is drawn on panels

gem ​

ts
gem: string;

The gem set in the HUD's metal: the one under the clock

gold ​

ts
gold: string;

The color of the gold in the HUD: the resource bar's chip and numbers

mana ​

ts
mana: string;

The color of the mana bar

metal ​

ts
metal: string;

...its body (a frame's border, the edge of a key)...

motion ​

ts
motion: string;

How much the interface moves: 1 as it is, 0 for no motion at all, 2 for twice as slow. A number, as a string

ornament ​

ts
ornament: string;

The shape of the ornament on a frame's corners, as a CSS clip-path (polygon(50% 0, 100% 50%, 50% 100%, 0 50%), a diamond), of a square pointing up and out of the corner. none for no ornament

panel ​

ts
panel: string;

The face of a panel, from its top...

progress ​

ts
progress: string;

The color of a progress bar: construction, training, research

radius ​

ts
radius: string;

How round corners are: 0px for the square ones of the classic RTS look

ring ​

ts
ring: string;

Around what has the keyboard

selected ​

ts
selected: string;

The edge of what is selected

shade ​

ts
shade: string;

The dark line around panels, and their shadow

success ​

ts
success: string;

What went well

texture ​

ts
texture: string;

The texture over a frame's face, as a CSS background image (a URL, a gradient, several of them), or none: the grain of leather, stone or bark

warning ​

ts
warning: string;

What may be wrong

xp ​

ts
xp: string;

The color of the experience bar