I'm using a Mi Pad SE that has a 1200x1920 resolution, but when I check the viewport size, the actual CSS width is only 600x960. This seems to be a common problem with many budget tablets that advertise higher resolutions. Because of this, the Tailwind V4 `sm` breakpoint (640px) doesn't apply correctly to my tablet, which results in viewing it in a mobile format instead of a tablet view. I'm considering customizing the default `sm` breakpoint to 30rem. Is that a good approach? How do others deal with this issue?
3 Answers
If you’re using a CSS reset or normalize, you really shouldn’t need to worry about rem issues. It’s been many years since rems became popular for breakpoints, so many developers are accustomed to using them effectively.
It sounds like a common issue with high-res tablets reporting lower CSS widths due to their device pixel ratios. You could definitely lower the `sm` breakpoint, but I’d suggest creating a dedicated tablet breakpoint instead. This way, you can keep your mobile and tablet layouts more consistent and predictable.
I wouldn't use `rem` for breakpoints since it’s linked to the font size, which can vary and be overridden by browsers. This might lead to unexpected breakpoint behavior. It’s also important to think about breakpoints beyond just mobile vs. tablet vs. desktop, as they don't always correlate with the presence of features like a mouse.

Related Questions
How to Build a Custom GPT Journalist That Posts Directly to WordPress
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads