What's the difference between ui-sans-serif and sans-serif fonts in font-family
in CSS? And ui-serif vs. serif? And ui-monospace vs. monospace?
Where does system-ui fit into this? Would you use it for all 3 types of fonts, and where would it go in the list of fonts?
I usually see the "ui-" variant coming first in the list of fonts in font-family
in CSS, and the other coming last. Something like font-family: ui-sans-serif, (more fonts here), sans-serif
. What's the point in doing that if the first matched font will be used? Since ui-sans-serif is a generic font, won't it always be matched and there's no need to add any fonts after it?