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]: adding shadcn to existing remix project with dark mode creates bug #6874

Open
2 tasks done
HNx1 opened this issue Mar 6, 2025 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@HNx1
Copy link

HNx1 commented Mar 6, 2025

Describe the bug

Hi just wanted to share a small bug I observed.

I had an existing project in remix with darkMode enabled i.e. in tailwind.config.ts I already had:

export default {
  ...
  darkMode: 'class'
}

Adding shadcn updated the config to this incorrect setting which broke dark mode

export default {
  ...
  darkMode: ['class', 'class']
}

Understand this is a niche and uncommonly faced issue - just pointing it out - and it may apply to other frameworks not just remix.

Affected component/components

Dark Mode

How to reproduce

  1. Have existing tailwind/remix project with darkMode enabled but no shadcn
  2. Install shadcn

Codesandbox/StackBlitz link

No response

Logs

System Info

Remix, Tailwind, is a code issue not an infrastructure issue.

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@HNx1 HNx1 added the bug Something isn't working label Mar 6, 2025
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

1 participant