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

Standardize font colors #863

Open
victorlin opened this issue May 15, 2024 · 4 comments
Open

Standardize font colors #863

victorlin opened this issue May 15, 2024 · 4 comments

Comments

@victorlin
Copy link
Member

victorlin commented May 15, 2024

Some examples of differences:

  • Splash page heading 1: #333 (src)
  • Splash page heading 2: #333 (src)
  • Splash page focus paragraph: unset, browser default (src)
  • Team page linked name: #333 (src)
  • Team page unlinked name: unset, browser default (src)
  • Team page blurb: unset, browser default (src)
  • All text on blog: #333 (src)

* for me, browser default is #000

Possible solution

  1. Settle on a standard font color
  2. Update explicit color definitions to use the standard font color
  3. Set the standard font color as the global default and remove other redundant color definitions

Links

@victorlin victorlin added the priority: low To be resolved after high and moderate priority issues label May 15, 2024
@victorlin
Copy link
Member Author

victorlin commented May 16, 2024

For the team page name differences, I'm guessing intent of setting link color to #333 is an attempt to match the non-link color.

The first thing to do is set the default color explicitly. global.css seems to an appropriate place to do this.

Next, those two color definitions should be synced. I don't think it's easily done with the current setup since global.css and styled components in JSX can't share a common variable (or maybe they can?). The lazy alternative is to add a comment next to each declaring the relationship.

@victorlin victorlin mentioned this issue May 16, 2024
2 tasks
@victorlin victorlin mentioned this issue May 28, 2024
2 tasks
@victorlin
Copy link
Member Author

victorlin commented Jul 31, 2024

Next, those two color definitions should be synced. I don't think it's easily done with the current setup since global.css and styled components in JSX can't share a common variable (or maybe they can?)

Improvements coming from discussions in #963 should aim to make things like this easier.

@victorlin victorlin changed the title Slight color difference between links and non-links on /team Standardize font colors Oct 28, 2024
@victorlin victorlin removed the priority: low To be resolved after high and moderate priority issues label Oct 28, 2024
@victorlin
Copy link
Member Author

Updated this issue after receiving email feedback on font colors for accessibility.

Another factor to consider alongside color might be font weight, which seems pretty thin to me.

@genehack
Copy link
Contributor

It should be much easier to accomplish this once everything is using App Router, because all the styled-components stuff will be gone and we can set this in globals.css and be done with it.

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

No branches or pull requests

2 participants