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

Normalize colors and css var names for Phase 2 Redesign #2175

Merged
merged 16 commits into from
Jun 6, 2023

Conversation

jrochkind
Copy link
Contributor

@jrochkind jrochkind commented Jun 5, 2023

We create new SCSS variables for all applicable colors in Brand guide color pallette. We also preserve a separate set of SCSS vars with mnemonic names for the colors we actually use.

We remove all OLD brand color vars and usage, in most cases replacing them with new brand colors.

Removed a couple CSS classes that weren't actually applying to anything anymore, that we came across.

As part of Phase 2 we had a variable called shi-dark-blue, but after learning that Brand Guide refers to this as gray (it is a dark gray very slightly blue tinted), we changed variable name to shi-dark-gray.

We continue using a couple colors not from current Brand Guide:

  • Our links, we haven't yet decided what to do with them, but for now are keeping the old brand blue color, now in scss var $shi-blue-text.

  • We need a gray for muted text, but none of the Brand Guide grays suffice, they are too dark or too light, skipping a middle-ground we need. Rather than preserve the exact old brand gray we were using, we take the current brand dark gray, and lighten it in color until it is very close in lightness/darkness to previous brand gray. This is now in SCSS var $shi-alt-muted-text.

    • (There is some precedent for additional grays -- the gray in the logo "Museum & Library" is not actually in Brand Guide either).

All commits:

  • new brand color SCSS variables, with names from Brand Guide
  • remove unused -btn-alt-bg variable
  • remove bootstrap -dark-* overrides, we don't use them
  • remove old brand color -bright-green scss variable
  • remove old -yellow scss color, replace use with new brand color -yellow
  • replace old -red scss with new brand color -red
  • remove -light-gray, replace with new brand colors mostly -bg-gray-border, some red highlights
  • link hover color is brand-black, more consistent with main site and don't use old -dark-blue anymore
  • remove styles for .search-heading no longer in DOM
  • remove old now longer used -dark-blue, replace with new brand colors, mostly -blackish but sometimes other choices
  • remove now-unused -blue -- we're still for now using it in -blue-text for links though
  • use brand grey for missing-image fill that was previously not brand color
  • remove style that was not being applied -- we don't need different color for facet arrow
  • remove old brand-dark-grey -- but keep similar custom non-brand color for muted text
  • change css var name, the Brand Guide calls this dark gray not dark blue

@jrochkind jrochkind marked this pull request as ready for review June 5, 2023 22:17
@jrochkind
Copy link
Contributor Author

Oh, this also uses the new brand green color for bootstrap "success" theme color.

@eddierubeiz eddierubeiz merged commit 19898a8 into phase_2_redesign_base Jun 6, 2023
@eddierubeiz eddierubeiz deleted the color_normalization_phase_2 branch June 6, 2023 15:54
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