-
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
Add ectoplasm color scheme (Method A) #47122
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~8 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~62 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 (~136 bytes added 📈 [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. |
- From wp-admin
908cce4
to
d748b64
Compare
So, having all -10 -90 assigned to the same color was causing some issues as illustrated above. I used color-studio to generate a range of colors and it fixes the issue. Since we set the sidebar colors exactly, we can make sure that those match wp-admin exactly and don't use the "palette" colors. So this way, we retain parity with wp-admin but provide calypso with some of the extra colors it wants. in
|
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.
Thanks @mreishus for wrangling this!
Generally it works as expected. I navigated around and checked the components page! Let's check if we can easily address the following:
Menu Heading should be the same as links or at least vivid enough
packages/calypso-color-schemes/src/shared/color-schemes/_ectoplasm.scss
Outdated
Show resolved
Hide resolved
@sixhours thanks for chiming in! As it seems all wp-admin color schemes make no distinction between the masterbar and the sidebar in terms of colour or bordering. I agree it would be best, but I am not sure that we should start making changes to already wp-admin defined colour schemes. This would increase maintainability of schemes and make the scope of porting the colour schemes even larger. @davemart-in , @lcollette what is your take on this? |
🤦♂️ I just realized that these don't work when the nav unification flag is on, because these overrides take precedence. I made a crude fix that re-specifies all the theme variables inside a |
Changes in |
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.
Thanks for pushing the changes @mreishus!
LGTM!
One part of #47036
Method A is defined in #47103. There's a "Method B" copy of the PR here: #47075.
Changes proposed in this Pull Request
Testing instructions
To see the wp-admin color scheme, create an atomic site, then visit /wp-admin/profile.php, choose color scheme and save.
Calypso:
Wp-Admin:
Known Issues