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

custom class with @apply directive not working #882

Open
dextersiah opened this issue Jan 1, 2023 · 0 comments
Open

custom class with @apply directive not working #882

dextersiah opened this issue Jan 1, 2023 · 0 comments

Comments

@dextersiah
Copy link

dextersiah commented Jan 1, 2023

Hi there!

I'm currently setting up a new Nuxt3 project with Windi CSS however I stumble upon an issue where by

If I have a custom class within a file called _utility.scss that uses the @apply directive, Windi CSS doesn't seem to be able to use the @apply directive.

// ~/assets/styles/utility.scss

.custom-2 {
    @apply bg-blue-500;
}
// ~/assets/styles/main.scss

@import "./utility.scss";

.custom {
    @apply bg-blue-500;
}

.custom seems to be working but not .custom-2. I've created an identical project with Tailwind CSS and it seems to be working fine.

Is this a known issue?

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