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
What do I miss in theme-ui
Theme ui seems to only allow responsive values in the shape of an array where styled system allows object keys to be used too. When you have like 5 breakpoints, the developer experience of this array way of working becomes a pain. Check the bg and color difference in above snippet for example, the bg is easier to write down and parse.
The text was updated successfully, but these errors were encountered:
This is just an informative notice of how I use the power of theme-ui and styled-sytem together
So I took the AspectRatio component from theme-ui and made it's ratio value responsive like so:
And you can use it like so:
What do I miss in theme-ui
Theme ui seems to only allow responsive values in the shape of an array where styled system allows object keys to be used too. When you have like 5 breakpoints, the developer experience of this array way of working becomes a pain. Check the bg and color difference in above snippet for example, the bg is easier to write down and parse.
The text was updated successfully, but these errors were encountered: