Swap a Streamlit app's font: config.toml font plus one CSS variable
To replace a monospace look with a clean sans in Streamlit, set font = "sans serif" under [theme] in .streamlit/config.toml (needs a server restart; Altair charts with theme='streamlit' follow it) and define one CSS variable, e.g. --font:-apple-system,BlinkMacSystemFont,'SF Pro Text','Inter','Segoe UI','Helvetica Neue',Arial,sans-serif, then reference var(--font) everywhere instead of scattered font stacks. Use a regex pass over the injected CSS to replace every ui-monospace,...,monospace stack, drop text-transform:uppercase and wide letter-spacing on headings, tabs and metric labels for readability, and add font-variant-numeric: tabular-nums on metrics and tables. A system stack avoids fetching Google Fonts at load time. Confirm with a Playwright screenshot after restart.