-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update color-studio to 4.1.0 #99033
base: trunk
Are you sure you want to change the base?
Update color-studio to 4.1.0 #99033
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
Nice one. Code changes look good, and the overall motivation for this PR is also good: the old blue is not part of the brand guidelines and does not make sense to maintain or keep around. There's also a neat side-effect of code quality to this; instead of propogating the codebase with a mix of Those still need work to be unified into a single style, but the point remains, at least now the color is coherent with the accent color, intrinsically. On that, as well as all the spot-testing I could do in testing this PR, ✅ from a design perspective, happy to approve, this is a substantial and good step forward. That said, this touches a lot of moving pieces, we want to make sure this is thoroughly tested. Who do we need to give heads-up about the change? CC: @Automattic/dotcom-design, and @tyxla, in case they have instincts. Separately, this also underscores the need to continue with PRs like #98732 (which I'll rebase and shepherd on when this one lands), whose purpose it is to replace instances of hardcoded colors with the studio variables. Just one example from spot-testing, this TOC has a mix of old and new: Note, the above screenshot is the same before and after this PR, and isn't affected. That's just to say, there's a lot of followup work to also do, which I'll try to stay close to. |
I agree it touches a lot. Just to confirm, this is a comprehensive list of all the changes: https://npmdiff.dev/%40automattic%2Fcolor-studio/3.0.1/4.1.0/ I'd ping at least one designer from each product that's shipped in Calypso, to review and test some of the flows, since this literally affects all the flows around WP.com, Jetpack Cloud and A4A. If color changes are subtle, it's likely OK, but still, worth double-checking since there are too many color changes too 😅 |
Yes, that's correct. Worth noting that this also includes updates to WooCommerce Purple which weren't reflected in Calypso yet as it was still running an older version of color-studio. |
I'm diving into something tangential to this, and finding out that there will need to be some color scheme updates of, at least, this admin color scheme: https://github.com/Automattic/wp-calypso/tree/trunk/packages/calypso-color-schemes "Classic Blue", specifically, whose counterpart, best I can tell, is "Default" in wp-admin contexts. Those colors don't exist anymore. Not sure how broadly that particular color scheme is used, but if it goes beyond just wp-admin and into calypso, it suggests that we might need to keep the old colors around after all, perhaps "studio-blue-classic" or the like. The alternative, if it's only wp-admin, is to update https://github.com/Automattic/wp-calypso/blob/trunk/packages/calypso-color-schemes/src/shared/color-schemes/_classic-blue.scss with hardcoded color values. |
Further context from #99159 (comment), we need to fully grok the calypso color scheme system, and which files (between _default, _fresh, and _modern), actually make up the defaults and where. My instinct at this point is that _fresh is the classic WordPress core color set, which is set by default on Atomic (Modern is set on Simple), and that the fix here is to replace all the variables in _fresh.css with hard-coded values directly from the admin schemes. If someone could help affirm these instincts, I'd be happy to push code to help make that happen in this PR. |
Proposed Changes
Why are these changes being made?
The legacy blue is not part of the brand colors, and shouldn't be used for branded elements within Calypso.
Testing Instructions
We will need to extensively test all areas where
$studio-blue
variables are used in the UI to ensure this change doesn’t have unintended consequences for aesthetics or accessibility.We should also check instances where
$studio-woocommerce-purple
is used as this palette also changed in a previous release that was not adopted in Calypso yet.yarn
to install the update version of color-studio.yarn start
to start Calypso locally$studio-blue
and$studio-woocommerce-purple
variables are used to ensure proper contrast and aesthetics are maintainedPre-merge Checklist