You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a theme with nextui, components with variant="flat" choose different colors for themes with custom names (i.e. not "light" or "dark"). I have observed this specifically with Button and Chip.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
when I create a "dark" theme with the following color config, a button with variant="flat" looks as expected:
However, when I create and use a theme with a custom name, but identical color values, the button appears to choose the 800 value for text instead of the DEFAULT color, and a different background color as well.
@rileybutterfield according to your PR, this change is intended to fix the color contrast. However, I believe for flat buttons it was already good: white text over a dark gray background. Is this a bug?
NextUI Version
2.4.8
Describe the bug
When creating a theme with nextui, components with
variant="flat"
choose different colors for themes with custom names (i.e. not "light" or "dark"). I have observed this specifically with Button and Chip.Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
when I create a "dark" theme with the following color config, a button with variant="flat" looks as expected:
However, when I create and use a theme with a custom name, but identical color values, the button appears to choose the 800 value for text instead of the DEFAULT color, and a different background color as well.
Expected behavior
I expected that this button would look identical in either of these themes. Instead, different colors are used for each theme.
Screenshots or Videos
dark (as expected):
funk (expected this to look identical to "dark"):
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: