1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-25 02:02:11 +00:00
seirdy.one/content/notes/minimal-website-responsiveness.md
2022-06-11 13:00:46 -07:00

2 KiB

title date replyURI replyTitle replyType replyAuthor replyAuthorURI
Minimal website responsiveness 2022-06-11T13:00:26-07:00 https://social.treehouse.systems/@ayushnix/108460135741971671 Can anyone explain why someone would want to scale font size using multiple media query breakpoints using different device widths or by using fluid typography? SocialMediaPosting Ayush Agarwal https://microblog.ayushnix.com/

My current approach to "responsiveness" is to increase the font sizes on screens. User interfaces should generally have smaller text while article bodies should prioritize readability and be larger. Default stylesheets are take a (literal) one-size-fits-all approach, trying to optimize for both. But I only use percentages for font sizes, to respect user preferences.

I also increase the default font size to make it easier to increase tap target sizes to Google's recommended 48x48 px sizes, without overlapping other targets in a 56x56 px radius. A size of 108.75% was the minimum necessary to achieve my goals in all combinations of major browsers and their default stylesheets across operating systems. Since scrollbars and screen edges are often tap targets, I also set minimum margin sizes.

I reduce the font size to the default 100% and eliminate the extra margins on extremely narrow screens (think KaiOS devices and smartwatches) where the screen is too small to fit several touch-friendly elements. I do the same on print.

My rationale:

  • If you use a smart feature phone, then you navigate with a keypad. The interface does not need to be touch-friendly.

  • If you use a smartwatch (like the Apple Watch) it should auto enable reading mode for long-form text, so compromising a little on readability might be worth improving navigation.

  • If you want to read in a sidebar then you are likely reading the article alongside some other text. My page's text should match most other content instead of "sticking out".

  • If you print it out then font sizes are already optimized for readability rather than for user interfaces.