bootstack.style.update_font_token#
- bootstack.style.update_font_token(name, *, family=None, size=None, weight=None, slant=None, underline=None, overstrike=None)#
Override the attributes of a single font token.
Only the attributes you pass are changed; the rest of the token is left as is. The update applies everywhere the token is used.
- Parameters:
name (str) – Token to update (e.g.
'body','heading-lg','code').family (str | None) – New font family. Must be installed.
size (int | None) – New point size.
weight (Literal['normal', 'bold'] | None) –
'normal'or'bold'.slant (Literal['roman', 'italic'] | None) –
'roman'or'italic'.underline (bool | None) – Whether to underline the text.
overstrike (bool | None) – Whether to strike through the text.