Skip to content

Conversation

@adamwathan
Copy link
Member

@adamwathan adamwathan commented Mar 13, 2019

Previously we switched the sm breakpoint from 576px (borrowed from Bootstrap) to 568px (to match the landscape viewport of an iPhone SE.)

The iPhone SE is no longer manufactured and no other smartphone maker makes a phone with a viewport size that low, so I think it makes more sense to use a larger size for sm than it does to try and optimize for a screen size that will eventually no longer really be used.

By changing the sm breakpoint from 568 to 640, you only have to worry about making your design work in the 640-768 range instead of the 568-768 range. This is really helpful if you have some sort of side-by-side layout that would work great at say 620px, but looks bad below that size.

Using 568px as the sm breakpoint, you would be forced to compromise on the design and serve a more stacked layout to devices all the way up to 768px, just because your original layout broke down right at the bottom end of the range.

At first it might sound wasteful to have to use the same layout for any viewport in the 0-640px range for similar reasons, but in practice the next viewport size you are likely to encounter under 640px is 480px, and the iPhone SE in portrait mode is 320px, so you're only really designing for the 320px-480px range in practice.

640px was chosen because it was the second smallest landscape viewport size I could find in this article (it's the size of the Galaxy S7). It also happens to be 128px away from 768px, which is exactly half the 256px gap between 768 and 1024, so that's at least a little satisfying :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants