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
[docs] Improve code font family #35027
[docs] Improve code font family #35027
Conversation
|
9b0bce6
to
321ce89
Compare
No objection from my side (macOS looks fine with the |
I have tried Windows on BrowserStack but they only stream with a 1 CSS pixel = 1 physical pixel (not 2) so it looked super blurry, I couldn't really judge. So I picked the font that Next.js uses that triggers on Windows, in lack of a better option, trusting they had designers testing this out. 👍 to check on Linux, iOS, Android what looks best. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mnajdova Among the benchmark that I linked on this PR's description, is there one that feels better (easier to read) than the others on Windows? It doesn't look like a step forward on Windows IMHO. |
Lucida Console is a font used in older (well, ancient ;)) versions of Windows. The one most widely used in code editors on Windows is Consolas (used by default by both VS Code and Visual Studio), followed by Cascadia Mono, more recently introduced by Microsoft. I personally like the "before" version more. Plus, it's a bit narrower, reducing the need to scroll horizontally. |
@michaldudak Agree #35053. |
The regression was introduced in https://github.com/mui/material-ui/pull/34954/files#r1008895718. It wasn't such a good idea.
Instead, we can use https://reactjs.org/docs/higher-order-components.html, https://beta.nextjs.org/docs/optimizing/images, https://beta.reactjs.org/learn/state-as-a-snapshot, https://tailwindcss.com/docs/installation, VS Code font families as benchmarks for what might look best
Before: https://master--material-ui.netlify.app/material-ui/react-button/#basic-button
After: https://deploy-preview-35027--material-ui.netlify.app/material-ui/react-button/#basic-button