Skip to content

Add limited sorting support for CSS-in-JS with interpolation #99

Open
@wdfinch

Description

Hi so after reading the docs I understand that CSS-in-JS will not be sorted on the root level due to property interpolation. I was wondering if there was any way to override this behavior or have more control here. For example, for my use case, I only use property interpolations when I'm using a mixin. So for example something like this:

export const Container = styled.div`
  ${myMixin};
 padding-left: 2px;
 text-align: center;
 ...

Therefore I would like the sorting to occur but after the interpolated property. Is anything like this possible?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions