Skip to content

feat: expand body colors to include neutrals and reduce secondary usage #457

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

Merged
merged 1 commit into from
Aug 13, 2025

Conversation

serikjensen
Copy link
Member

@serikjensen serikjensen commented Aug 12, 2025

This PR updates to expand the colors for body colors and migrates most secondary colors (outside of button) to reference body colors instead.

The reasoning here is that body colors will be a better fit for most elements currently using secondary. Secondary might be considered a secondary brand color alongside primary, but we were using it before for things like neutral hover states just because it is gray in the SDK. If someone were to use secondary as another brand color it would look good for button but would have all sorts of cascading effects to things like typography.

Instead we update to use body colors for those instances. This means that changing secondary colors just updates the button, and body colors have more to do with UI elements such as lists/menus etc which are meant to have the body as the backdrop.

Proof of functionality

Screenshot 2025-08-13 at 1 06 20 PM Screenshot 2025-08-13 at 1 06 47 PM Screenshot 2025-08-13 at 1 07 25 PM (2) Screenshot 2025-08-13 at 1 08 36 PM Screenshot 2025-08-13 at 1 08 36 PM Screenshot 2025-08-13 at 1 09 10 PM Screenshot 2025-08-13 at 1 09 47 PM Screenshot 2025-08-13 at 2 19 08 PM Screenshot 2025-08-13 at 2 24 20 PM Screenshot 2025-08-13 at 2 28 27 PM Screenshot 2025-08-13 at 2 28 48 PM Screenshot 2025-08-13 at 2 40 09 PM Screenshot 2025-08-13 at 2 43 51 PM

@serikjensen serikjensen changed the title [WIP] Add neutral colors feat: expand body colors to include neutrals Aug 13, 2025
@serikjensen serikjensen changed the title feat: expand body colors to include neutrals feat: expand body colors to include neutrals and reduce secondary usage Aug 13, 2025
@serikjensen serikjensen marked this pull request as ready for review August 13, 2025 21:01
border-color: var(--g-colorSecondaryContent);
background: var(--g-colorSecondaryAccent);
opacity: 0.25;
cursor: not-allowed;
Copy link
Contributor

@jeffredodd jeffredodd Aug 13, 2025

Choose a reason for hiding this comment

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

Just a gripe at CSS, why is this just not the default styling when the disabled attribute is present?

Copy link
Contributor

@jeffredodd jeffredodd left a comment

Choose a reason for hiding this comment

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

Horse Head Thumb

@serikjensen serikjensen merged commit e5e8ffe into main Aug 13, 2025
3 checks passed
@serikjensen serikjensen deleted the feat/GWS-5387 branch August 13, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants