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

Add B&W Theme #10523

Merged
merged 1 commit into from
Feb 18, 2025
Merged

Add B&W Theme #10523

merged 1 commit into from
Feb 18, 2025

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Feb 17, 2025

A new, modern theme, inspired by Shadcn.

bwDarkTheme2
bwLightTheme2
bwDarkTheme1
bwLightTheme1

Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it expected to have different colors for the menu items (sections vs items)? Besides, the logo looks weird in light mode. Otherwise, this looks pretty good!

@fzaninotto
Copy link
Member Author

The color of the section items in the menu is defined in the Demo, not in the theme. The theme can't do much about it.

margin: `0 ${SPACING}px`,
paddingRight: 0,
borderRadius: 5,
color: isDarkMode ? grey['200'] : common['black'],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The color of the section items in the menu is defined in the Demo, not in the theme. The theme can't do much about it.

Suggested change
color: isDarkMode ? grey['200'] : common['black'],

This is enough to fallback to the styles defined in the component while still respecting the theme colors according to my tests. Have I missed something? The BW theme is the only one where that happens btw

@djhi djhi merged commit 42af819 into next Feb 18, 2025
16 checks passed
@djhi djhi added this to the 5.6.0 milestone Feb 18, 2025
@djhi djhi deleted the bwTheme branch February 18, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants