Opening this to get consensus on how to proceed.
It feels to me like the overall design of what system props are available on which components is unintuitive — but it's also possible I don't have a good mental model of the overall strategy with regard to primitives.
Here's some of the things that bit me in the past hour:
- Box has
bg but Flex doesn't
- Flex has
top/bottom but not left/right
- Typography supports
as aliased as element but nothing else does
A good first step I think would be to move the flex mixin into Box, and then have Flex just become Box with display: flex as default.
Additionally I'd be interested in what is required to support as universally on our primitive elements.
Opening this to get consensus on how to proceed.
It feels to me like the overall design of what system props are available on which components is unintuitive — but it's also possible I don't have a good mental model of the overall strategy with regard to primitives.
Here's some of the things that bit me in the past hour:
bgbut Flex doesn'ttop/bottombut notleft/rightasaliased aselementbut nothing else doesA good first step I think would be to move the flex mixin into
Box, and then haveFlexjust becomeBoxwithdisplay: flexas default.Additionally I'd be interested in what is required to support
asuniversally on our primitive elements.