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 Classes and css classes are not working because of ordering issue #3

Open
mostafa-rio opened this issue Jan 25, 2024 · 1 comment

Comments

@mostafa-rio
Copy link

When we apply nextjs registery styles are injected to HTML and overrides any CSS or Tailwind classes you use on components.

For example we define a class named bg-dark in our CSS file and use it on ant design button:

  `<Button type="primary" className="bg-dark">Button</Button>`

This behavior only appears when we wrap our entire app in the registry. So the default behavior of ant design itself is not to override the CSS classes.

@Deniffer
Copy link

Any update in this issues? i am facing the same situation.

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