Use a Style object literal to modify the visual appearance of a mathfield or a portion of a mathfield.

You can control the color ("ink") and background color ("paper"), the font variant, weight (FontSeries), size and more.

See Also

interface Style {
    backgroundColor?: string;
    color?: string;
    fontFamily?: FontFamily;
    fontSeries?: FontSeries;
    fontShape?: FontShape;
    fontSize?: "auto" | FontSize;
    variant?: Variant;
    variantStyle?: VariantStyle;
}

Properties

backgroundColor?: string
color?: string
fontFamily?: FontFamily
fontSeries?: FontSeries
fontShape?: FontShape
fontSize?: "auto" | FontSize
variant?: Variant
variantStyle?: VariantStyle