Skip to content

Overall system mixin strategy #704

@dzucconi

Description

@dzucconi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions