Skip to content

First class support of styled-system by JSS  #471

@kof

Description

@kof

Hey, as discussed documenting issues I stumbled over while trying to integrate with JSS:

  1. Styled-system functions return value data structure.

    Currently, v4 returns a nested array, which could be a flat object as it has been before in v3. Seems like @jxnblk and I both want it flattened again 😂

  2. Dependency on React prop-types isn't ideal, because it could be done in a universal way. Also it was a bit confusing to find propTypes property on those functions, because it made them look like a React component. I am looking to have a first-class support for styled-system and keen to integrate the validation automatically.

Related issue on JSS repo cssinjs/jss#974

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