Skip to content

Fix margin, padding, and possibly other shorthands orders #22

@guivr

Description

@guivr

Current Behavior

.example {
  margin: 1rem;
  margin-top: 0;
}

converts to:

.example {
  @apply mt-0 m-4;
}

(it currently puts mt-0 always before m-4, no matter the order in the CSS)

Expected Behavior

.example {
  @apply m-4 mt-0;
}

or

.example {
  @apply mt-0 mr-4 mb-4 ml-4;
}

this allows the longhand margin-top to override the shorthand margin

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions