-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better font-family defaults? #43
Comments
Don't forget to put system-ui at the front of the stack. |
Based on my research it's a bad idea to included system-ui in the font stack right now: |
...aw, man. Ruined by OS bugs, of all things. Why doesn't the bug affect -apple-system, BlinkMacSystemFont? Shouldn't they match the same font as system-ui when understood? |
Yeah, there are definitely some things to watch out for in this approach. I borrowed the stack above from Reboot but removed some emoji stuff from the end. There are other ways to approach it as well. |
@Sora2455 It looks like the bug is exclusive to Windows, so the MacOS keywords of |
Two things:
I was leaning towards us doing nothing regarding font-families. That way there's nothing to replace or override. Alternatively, we could provide a separate stylesheet that has options for pretty fonts. Even define a few options — a serif stack, a sans-serif stack. And build them 100% from fonts pre-installed on user's operating systems. Offer them as something to consider — much like the reminders. But I don't want to use |
I agree. Repurposing this thread to discuss default fonts generally. I was also leaning towards no: but then I'm not actually sure where the line is between UA "remedies" and pretty starter styles. UA styles are there to generate readable typography – and we're here to improve those defaults? Anyway, if there is a line, our existing |
I know this is low-hanging fruit, but I'm procrastiworking.
So, basically this necolas/normalize.css#665. Normalize stuck with
sans-serif
, but others (e.g. Reboot, modern-normalize) go with system UI fonts.There are plenty of examples of authoritative sites using a system UI stack (the words you're reading now: case-in-point). The idea is not new, obviously.
So stick with Times/TNR, go with
sans-serif
, or this?(Reboot still has
html { font-family: sans-serif; }
as well as the above)Or something else?
The text was updated successfully, but these errors were encountered: