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

fix(style): adjust bg-elv color for light mode #373

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

kiaking
Copy link
Member

@kiaking kiaking commented Nov 10, 2023

Adjust --c-bg-elv color on light mode. It makes --c-bg-elv slightly darker.

The issue is, while bg-elv works the same way n both Light/Dark mode where the higher the number is, it gets brighter (elevated), light mode has upper limit on how bright it can be and that is bg-elv-3 where it reaches #ffffff.

Therefore bg-elv-4 becomes darker on light mode. This is because bg-elv-4 is used to distinguish the element from bg-elv-2 and bg-elv-3.

Until now, we were using the same color for both bg-elv-2 and bg-elv-4. But it is a bit hard on eye when used on component like Card (with header) or table.

This change makes bg-elv-2 a bit darker so that it can be a bit more easier to see the difference. Aiding the visuals.

The contrast might not be enough compared to dark mode. But, we still do place texts on top of bg-elv-2, so we can't be too dark in order to keep good contrast ratio with --c-text-2 color.


Card before/after

Screenshot 2023-11-10 at 16 58 14 Screenshot 2023-11-10 at 16 58 54

Table before/after

Screenshot 2023-11-10 at 17 06 52 Screenshot 2023-11-10 at 17 06 58

@kiaking kiaking added the enhancement New feature or request label Nov 10, 2023
@kiaking kiaking requested a review from brc-dd November 10, 2023 08:08
@kiaking kiaking self-assigned this Nov 10, 2023
Copy link

netlify bot commented Nov 10, 2023

Deploy Preview for sefirot-story ready!

Name Link
🔨 Latest commit e21b178
🔍 Latest deploy log https://app.netlify.com/sites/sefirot-story/deploys/654de4ee58d7d50009f16666
😎 Deploy Preview https://deploy-preview-373--sefirot-story.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kiaking kiaking added bug Something isn't working and removed enhancement New feature or request labels Nov 10, 2023
Copy link

netlify bot commented Nov 10, 2023

Deploy Preview for sefirot-docs ready!

Name Link
🔨 Latest commit e21b178
🔍 Latest deploy log https://app.netlify.com/sites/sefirot-docs/deploys/654de4ee58d7d50009f16668
😎 Deploy Preview https://deploy-preview-373--sefirot-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Nov 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (582ae81) 79.70% compared to head (e21b178) 79.70%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #373   +/-   ##
=======================================
  Coverage   79.70%   79.70%           
=======================================
  Files         151      151           
  Lines       12154    12154           
  Branches      517      517           
=======================================
  Hits         9687     9687           
  Misses       2467     2467           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kiaking kiaking merged commit ee4791e into main Nov 10, 2023
13 checks passed
@kiaking kiaking deleted the adjust-bg-elv-for-light-mode branch November 10, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants