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 for postcss @apply with complex classes, including responsive and pseudo-class variants #1293

Closed
syffs opened this issue Jul 18, 2022 · 1 comment

Comments

@syffs
Copy link

syffs commented Jul 18, 2022

using unocss with postcss, I am unable to use @apply for complex classes including responsive and pseudo-class variants (md:...,lg:...,...hover:...) as such:

h2 {
    @apply text-2xl md:text-5xl;
}

it's returning error: Semicolon or block is expected

It may be more of a postcss issue, but tailwind did address the issue, so I'm not sure.

@antfu
Copy link
Member

antfu commented Jul 19, 2022

You may try --at-apply: text-2xl md:text-5xl. UnoCSS is agnostic to PostCSS so we can't interpose its behavior.

@antfu antfu closed this as completed Jul 19, 2022
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

2 participants