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

[Bug]: tailwindcss causes layout exception #1604

Open
ayangweb opened this issue Nov 19, 2024 · 2 comments
Open

[Bug]: tailwindcss causes layout exception #1604

ayangweb opened this issue Nov 19, 2024 · 2 comments
Labels
🐞 bug Something isn't working

Comments

@ayangweb
Copy link
Contributor

Version

System:
  OS: macOS 14.4
  CPU: (10) arm64 Apple M1 Pro
  Memory: 227.08 MB / 16.00 GB
  Shell: 5.9 - /bin/zsh
Browsers:
  Chrome: 130.0.6723.119
  Safari: 17.4
npmPackages:
  rspress: ^1.37.0 => 1.37.0

Details

Image

Image

The cause of the problem is that when I installed and used tailwindcss as per the official documentation, it introduced tailwindcss/utilities, which resulted in a layout exception!

I'm thinking that perhaps a style isolation scheme should be used to ensure that the styles of the built-in components are not affected by other custom components.

Reproduce link

https://github.com/EcoPasteHub/EcoPaste-Docs/tree/layout-bug

Reproduce Steps

pnpm install

pnpm dev

Delete tailwindcss/utilities and watch again!

@ayangweb ayangweb added the 🐞 bug Something isn't working label Nov 19, 2024
@ayangweb ayangweb changed the title [Bug]: css layout exception [Bug]: tailwindcss causes layout exception Nov 19, 2024
@Timeless0911
Copy link
Collaborator

This is a known issue, we will add special prefix of tailwindcss for internal components in the future, but it is a huge work and we will achieve it in Rspress 2.0.

You can add prefix for your tailwindcss instead.

@ayangweb
Copy link
Contributor Author

Okay, got it. Thanks.

@ayangweb ayangweb reopened this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants