-
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 hardcoded blue color values to match Studio counterparts #98732
base: trunk
Are you sure you want to change the base?
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
@Automattic/dotcom-design—let me know if this ping is becoming too busy! |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~16 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~3 bytes removed 📉 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
It's ok for me, not sure about the others 👀 |
CC: @Automattic/team-calypso in case you have thoughts on this approach! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The approach looks good, and I confirm the chosen colors are the closest ones and the difference is negligible 👍
Might make sense to have some before/after comparisons of the affected areas, just so we can be sure there are no unexpected differences.
Left a few questions, I don't think they're blockers.
} | ||
} | ||
|
||
button.components-button.is-link { | ||
padding: 20px 0 6px 0; | ||
color: #1d2333; | ||
color: var(--studio-blue-90); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CC: @davemart-in since this touches the logged out reader. But I think it's fine. In this case, open http://calypso.localhost:3000/tag/writing in an incognito window, then press "Like" on a post, you'll see this:
The "Log in" button is now getting the studio color. Which has sufficient contrast with a white background.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important context: "Modern" is both the default WordPress.com brand color, but also the default color scheme that's set for every new Simple site created. Which means if we land this PR and Automattic/color-studio#764, then new users will see a consistent Blueberry, #3858e9 across all those sections, including the example you show.
In https://github.com/Automattic/dotcom-forge/issues/8519#issuecomment-2593275569 it was discussed what the role of this color scheme should be, the decision (CC: @fditrapani) is that if you set a color scheme, we respect that choice for that particular site. The nuance is: that choice is per-site, and you might have 10 sites in your account, each of them with a different color scheme. So what does that mean for sections like /me, /sites, or /read? For the moment, with the two PRs mentioned in the first paragraph, those will be Blueberry, regardless of your individual site color scheme.
What do you think, and did that answer your question?
$onboarding-accent-blue: #117ac9; | ||
$onboarding-accent-blue-background: #fafcfe; | ||
$onboarding-accent-blue: var(--studio-blue-50); | ||
$onboarding-accent-blue-background: var(--studio-blue-0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That PR was a while ago! Let me take a look and see if I can remember with any additional context about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasmussen the previous colors were indeed introduced during the Focused Launch project, but I think that Marin comments still stands — the new suggested colors produce a worse contrast when used in combination:
Before | After |
---|---|
In particular, the --studio-blue-0
variable used as the background color seems quite dark.
Are there any guidelines for using studio colors on backgrounds? Could we alternatively use white as the background?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for testing.
As of this PR, however, with puPv3-nYp-p2 as a counterpart, the new studio color values will be #fbfcfe for Blue 0, and #3858e9 for Blue 50. Resulting in this:
I'm happy to postpone rolling this one out until those variables are updated, if that changes the conversation? I can also just omit those particular instances if need be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great! Probably cleanest course of action is to update this project to use the latest color studio version, before resuming work on this PR.
I went ahead and opened a PR to update the color studio version: #99037 (although I'll need your and every other dotcom designer help to properly test it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
92e828e
to
d0d11e0
Compare
Related to https://github.com/Automattic/dotcom-forge/issues/10307#issuecomment-2607061431, alternative to #98730
Proposed Changes
This PR scoured the codebase looking for instances of hard-coded legacy blue colors, and updates them to Blue 50 from Color Studio.
This work will later benefit from Automattic/color-studio#764, which updates the values of Blue 50 to match Blueberry.
Why are these changes being made?
Blueberry is the official WordPress.com accent color, the legacy blue is deprecated.
Testing Instructions
Test the contexts referenced from the list of changed files. That includes the logged out Reader, available at wordpress.com/read in an incognito window. It also includes the cookie notice, and an onboarding stepper.
Pre-merge Checklist