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

Make params and metrics colors more light-theme friendly #1773

Merged
merged 5 commits into from
May 26, 2022

Conversation

rogermparent
Copy link
Contributor

@rogermparent rogermparent commented May 25, 2022

This PR uses charts.yellow and charts.blue for params and metrics on the experiments table. When I was recording a feature video, I noticed that the current static colors, while still readable, don't work well on most light themes. As such, I tried this out and found that the charts colors do better in this regard (though they look markedly less appealing on some themes, namely my boy Kimbie Dark).

This PR adds different light default values for our Params and Metrics header colors. Previously it used charts.yellow and charts.blue, but those are slated for other uses in the future.

The colors I chose are simply the dark mode colors, but with the value inverted (100% - darkvalue% = lightvalue%)

Before:

non-charts-colors-demo.mp4

After:

light-theme-friendly-static-colors-demo.mp4

@rogermparent rogermparent requested review from sroy3 and mattseddon May 25, 2022 22:05
@rogermparent rogermparent self-assigned this May 25, 2022
@rogermparent rogermparent added 🎨 design Needs design input or is being actively worked on product PR that affects product labels May 25, 2022
@rogermparent rogermparent requested a review from wolmir May 25, 2022 22:06
"dark": "#fbd38d",
"light": "#fbd38d"
"dark": "charts.yellow",
"light": "charts.yellow"
Copy link
Member

@mattseddon mattseddon May 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather pick two different default colors as I intend to use these as colors for experiments when we make the switch from custom svgs to theme colors.

Copy link
Contributor Author

@rogermparent rogermparent May 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood, I changed to the alternate static implementation described in the OP.

@rogermparent rogermparent changed the title Use charts colors for params and metrics headers Make params and metrics colors more light-theme friendly May 26, 2022
@rogermparent rogermparent requested a review from mattseddon May 26, 2022 00:21
@rogermparent rogermparent enabled auto-merge (squash) May 26, 2022 02:40
@codeclimate
Copy link

codeclimate bot commented May 26, 2022

Code Climate has analyzed commit dd90d65 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.8% (0.0% change).

View more on Code Climate.

@rogermparent rogermparent merged commit 70bd692 into main May 26, 2022
@rogermparent rogermparent deleted the charts-colors branch May 26, 2022 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 design Needs design input or is being actively worked on product PR that affects product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants