News for hackers. Stuff that matters.
Re:Show HN: Modern Font Stacks – New system font stack CSS f... by cantSpellSober on Wednesday March 15, 2023 @02:41PM (#35172807)
I've never had a designer tell me "if x typeface isn't available, fallback to y." Unless it's in the spec, I recommend avoiding font stacks and instead simply falling back to the generic name (ex `sans-serif`) if the specified font fails to load. (Well done demo, thanks for sharing!)
Re:Show HN: Modern Font Stacks – New system font stack CSS f... by danklammer on Wednesday March 15, 2023 @06:17PM (#35175487)
`ui-monospace` is an extended system font property [1] similar to `system-ui` that is currently only supported in Safari. This will render SF Mono on macOS and iOS [2].

[1] https://caniuse.com/extended-system-fonts

[2] https://github.com/system-fonts/modern-font-stacks#monospace...

Re:Show HN: Modern Font Stacks – New system font stack CSS f... by cantSpellSober on Wednesday March 15, 2023 @11:42PM (#35177886)
It's also a generic value, like `sans-serif` that typically comes at the end of a stack. If someone has Consolas installed why show them something else only on Safari?

https://developer.mozilla.org/en-US/docs/Web/CSS/font-family...