nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
22k stars 1.54k forks source link

[BUG] - Color palette classname appears wrong for custom colors #4080

Open Choneas opened 2 hours ago

Choneas commented 2 hours ago

NextUI Version

2.4.8

Describe the bug

I am setting up my custom colors in taildwind.config.ts but my theme colors are not showing up correctly in some of nextui's components, for example I am passing color=primary to the component and then in the actual rendering it may have a class name of text-primary-100 but the hue is not like my custom primary color, but blue (common color), and the same goes for the other colors as well

Your Example Website or App

https://codesandbox.io/p/github/Choneas/next-choneas/main?workspaceId=ec97bfd1-0fc3-46e6-8089-e6c95c9878d6&embed=1

Steps to Reproduce the Bug or Issue

  1. Configuring custom colors for nextui in tailwind.config.ts
  2. Import a NextUI component, e.g. Select, Chip, Button.
  3. Set the color for it, e.g. primary secondary

Expected behavior

I expect the component's color (text-primary-100, etc.) to be based on my primary or secondary color, but I'm seeing it based on a weird I-didn't-define-it color like blue or purple.

Screenshots or Videos

https://github.com/user-attachments/assets/b6e50cf8-b3bd-4470-a29b-ae952bef991f

Operating System Version

Browser

Edge

linear[bot] commented 2 hours ago

ENG-1564 [BUG] - Color palette class name appears wrong for custom colors