Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder user plugins #400

Merged
merged 1 commit into from
Apr 20, 2021
Merged

Reorder user plugins #400

merged 1 commit into from
Apr 20, 2021

Conversation

ben-rogerson
Copy link
Owner

After updating twin to tailwind@2.1.0 and rerunning tests I found that tailwind no longer supplies data from the user plugins in the same order. I believe this was due to an update in postcss rather than tailwind - either way I had to reorder the plugin data.

The ordering is now:

  1. Base styles
  2. Sub selectors - sorted by length
  3. At rules - sorted by order specified

I've tested the new ordering working with the latest official tailwind typography and form plugins.

@ben-rogerson ben-rogerson merged commit 3f49c17 into master Apr 20, 2021
@ben-rogerson ben-rogerson deleted the feature/reorder-user-plugins branch April 20, 2021 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant