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

Tailwind @apply is not working on 'static dev' but works in built #22

Open
madsouris opened this issue Apr 23, 2024 · 0 comments
Open

Comments

@madsouris
Copy link

When developing locally, in main.css

@layer components {
    .button {
        @apply text-neutral-200 hover:bg-white/5 border-white/20 hover:text-white;
    }
}

The style is not applied, but after built, the style is applied properly.

Upon inspecting the injected style tag doesn't have type="text/tailwindcss" like the official Tailwind documentation suggested.

Could this be an 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