(Solved) How to force Anki to use iOS default system font for the type field?

EDIT: The solution is to target the font “ui-sans-serif”. So the font-family like must look like this:

font-family: ui-sans-serif, Calibri, Helvetica, Arial, sans-serif;

----Original Post----

Hi! In “type answer” fields, Anki uses a monospaced typewriter-style font. I can easily force this to use a different font with these three lines:

code#typeans {
font-family: Calibri, Helvetica, Arial, sans-serif;

For all other fields, if I delete the “font-family” line, iOS Anki will use iOS’ default system font, SF Pro. But on the “type answer” field I haven’t found a way to force it to use this font. I’ve tried calling it by several names in the font-family line: SF Pro, San Francisco, etc, but nothing works.

Any help is appreciated.

1 Like

Update: This method only targets iOS’ system font, but it does not target macOS system font. To target both, replace “ui-sans-serif” with “system-ui”.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.