Skip to content

Like theme, Is there a way to change font style? #1010

Answered by mturoci
sairaamv asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sairaamv.

I am not sure I fully understand what you mean. ui/src/theme.ts cannot be edited directly via python. The only way to toggle theme currently is via meta_card.

Font is specified in

font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
. Although we don't support custom fonts natively, it should be very easy using newly added api for external stylesheets.

See:
https://github.com/h2oai/wave/blob/master/py/examples/meta_inline_stylesheet.py
https://github.com/h2oai/wave/blob/master/py/examples/meta_stylesheet.py

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sairaamv
Comment options

Answer selected by sairaamv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants