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

Sorting with conditional classes #189

Open
silveltman opened this issue Jun 27, 2022 · 0 comments
Open

Sorting with conditional classes #189

silveltman opened this issue Jun 27, 2022 · 0 comments

Comments

@silveltman
Copy link

silveltman commented Jun 27, 2022

I have an 11ty site in which I use liquid as the template-language. I often use condifional classes, which causes headwind to stop working.

Example which doesn't sort:
<div class="rounded-full {{ bg }} relative"></div>

I would like it to at least keep sorting the regular tailwind classes and ignore the {{ bg }} part. Preferably it would move those custom tags to the front or end (like custom classes). So like this for instance:
<div class="{{ bg }} relative rounded-full"></div>

what might cause difficulties are things like this: focus:{{ bg }}

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

No branches or pull requests

1 participant