Devices and breakpoints
Learn how to customise breakpoints in Shopstory
Shopstory uses 6 resolution ranges:
xs
- phones in a vertical modesm
- horizontal phones, small vertical tabletsmd
- vertical tablets, sometimes horizontal phoneslg
- small desktops, tablets in horizontal modexl
- desktops (mostly laptop)2xl
- large desktops
Each of them is represented by 4 properties:
startsFrom
- minimum resolutionw
- width of device representing the range in Shopstory Editorh
- height of device representing the range in Shopstory Editorhidden
- info whether we should show this resolution in Shopstory Editor
Defaults:
We hide sm
and lg
because too many breakpoints cause cognitive overload for editors. Usually mobile, vertical tablet and small desktop are enough to cover all resolutions in a correct way.
If you want to override specific breakpoints values, just use devices
property in shopstory/config.ts
Last updated