You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So this could be tricky - it doesn't seem like there's a good way to compare sizes of different units.
In other words, I can easily get the "px" value of the current window, but I have no idea if users defined their breakpoints as "px", "em", "rem", or some other relevant user size.
It could be easier to force breakpoints to always be "px" values but looking at this for example: https://chakra-ui.com/docs/features/responsive-styles it seems like using font-size related sizes may not be uncommon?
Feels like breakpoints should either be px OR em. Maybe I can force breakpoints to be one or the other behind the scenes, or a sealed class to limit to only those two types, which may allow this feature to work (assuming I can at least convert between em and px in javascript)
This could be used to toggle code with logic, as an additional path besides component styling.
The text was updated successfully, but these errors were encountered: