Skip to content
pixi-silk
GitHub repository
Interface

ThemeStyle

import type { ThemeStyle } from 'pixi-silk/i18n';

One style. Every field is optional: a tag’s style overrides only what it sets.

Properties#

PropertyTypeDescriptionDefined in
alpha?numberOpacity of the whole style, 0 to 1. Paint.packages/pixi-silk/src/i18n/theme.ts:55
family?stringFont family. Shape-relevant.packages/pixi-silk/src/i18n/theme.ts:73
features?string[]OpenType features, such as smcp. Shape-relevant.packages/pixi-silk/src/i18n/theme.ts:77
fill?stringFill colour, CSS hex. Paint.packages/pixi-silk/src/i18n/theme.ts:53
glow?ThemeGlow | nullGlow. Paint.packages/pixi-silk/src/i18n/theme.ts:59
interactive?booleanSpans with this style report taps (tagtap). Behaviour.packages/pixi-silk/src/i18n/theme.ts:79
letterSpacing?numberExtra space after each glyph, in em. Shape-relevant.packages/pixi-silk/src/i18n/theme.ts:75
outline?ThemeOutline | nullOutline. Paint.packages/pixi-silk/src/i18n/theme.ts:57
shadow?ThemeShadow | nullDrop shadow. Paint.packages/pixi-silk/src/i18n/theme.ts:61
size?numberSize as a factor of the message size. Shape-relevant.packages/pixi-silk/src/i18n/theme.ts:71
strike?ThemeLine | nullStrike-through. Paint.packages/pixi-silk/src/i18n/theme.ts:65
underline?ThemeLine | nullUnderline. Paint.packages/pixi-silk/src/i18n/theme.ts:63
weight?numberCSS weight, which picks another face. Shape-relevant.packages/pixi-silk/src/i18n/theme.ts:69
weightBias?numberSmall weight change as a shader threshold shift, in em, -0.05 to 0.05. Paint.packages/pixi-silk/src/i18n/theme.ts:67