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

Support custom media queries and variants #15

Open
kripod opened this issue Dec 6, 2020 · 1 comment
Open

Support custom media queries and variants #15

kripod opened this issue Dec 6, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@kripod
Copy link

kripod commented Dec 6, 2020

As seen in the Tailwind docs, custom screens may be defined as follows:

module.exports = {
  theme: {
    screens: {
      tablet: "640px",
      laptop: "1024px",
      desktop: "1440px",
    },
  },
};

They should be taken into consideration when building the preferred order of classes.

Similar logic could be applied to variants, which may be deduced from variantOrder.

@kripod kripod added the enhancement New feature or request label Dec 6, 2020
@Svish
Copy link

Svish commented Mar 23, 2021

Any progress on this? I'm new with Tailwind and also copied the custom screens example because I find those easier to relate to than then default lg and such. Really love this auto-sorter, but also quickly ran into the same issue.

In the mean time, is there a workaround? Can I use the options of this plugin to make it sort my screen stuff properly for now? Understand neither Tailwind nor this plugin enough to see if it's possible on my own. 😕👶

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants