ThemeStyle
import type { ThemeStyle } from 'pixi-silk/i18n';
One style. Every field is optional: a tag’s style overrides only what it sets.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
alpha? | number | Opacity of the whole style, 0 to 1. Paint. | packages/pixi-silk/src/i18n/theme.ts:55 |
family? | string | Font 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? | string | Fill colour, CSS hex. Paint. | packages/pixi-silk/src/i18n/theme.ts:53 |
glow? | ThemeGlow | null | Glow. Paint. | packages/pixi-silk/src/i18n/theme.ts:59 |
interactive? | boolean | Spans with this style report taps (tagtap). Behaviour. | packages/pixi-silk/src/i18n/theme.ts:79 |
letterSpacing? | number | Extra space after each glyph, in em. Shape-relevant. | packages/pixi-silk/src/i18n/theme.ts:75 |
outline? | ThemeOutline | null | Outline. Paint. | packages/pixi-silk/src/i18n/theme.ts:57 |
shadow? | ThemeShadow | null | Drop shadow. Paint. | packages/pixi-silk/src/i18n/theme.ts:61 |
size? | number | Size as a factor of the message size. Shape-relevant. | packages/pixi-silk/src/i18n/theme.ts:71 |
strike? | ThemeLine | null | Strike-through. Paint. | packages/pixi-silk/src/i18n/theme.ts:65 |
underline? | ThemeLine | null | Underline. Paint. | packages/pixi-silk/src/i18n/theme.ts:63 |
weight? | number | CSS weight, which picks another face. Shape-relevant. | packages/pixi-silk/src/i18n/theme.ts:69 |
weightBias? | number | Small weight change as a shader threshold shift, in em, -0.05 to 0.05. Paint. | packages/pixi-silk/src/i18n/theme.ts:67 |