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

Light/dark mode: display of tags/categories #1927

Closed
Tracked by #331
deining opened this issue Apr 8, 2024 · 2 comments · Fixed by #1952
Closed
Tracked by #331

Light/dark mode: display of tags/categories #1927

deining opened this issue Apr 8, 2024 · 2 comments · Fixed by #1952
Labels
enhancement New feature or request UX

Comments

@deining
Copy link
Collaborator

deining commented Apr 8, 2024

Out of interest, I enabled a preview of the newly added light/mode for one of my sites (thanks Patrice, great job!).
With dark mode enabled, I had a look at the right sidebar and realized that we don't really have a dark display here:

grafik

@chalin: can you please have a look and check whether we can alter the background and text color of the tags used here? AFAICS, the tags remain unchanged in dark mode which doesn't really give a great user experience here! Thanks!

@deining deining added enhancement New feature or request UX labels Apr 8, 2024
@chalin chalin mentioned this issue Apr 8, 2024
26 tasks
@chalin
Copy link
Collaborator

chalin commented Apr 8, 2024

Thanks for the feedback.

Is it possible that you have custom styling for your project? Here's what I see when I visit https://www.docsy.dev/docs:

  • Dark mode:
    image
  • Light mode (the same as it has been for a while):
    image

IMHO, the color contrast in dark mode seems ok in what is shown above. WDYT @deining @LisaFC @emckean et al.?

The tag text of your project does seem lighter, but that also seems to be specific to your project.

@deining
Copy link
Collaborator Author

deining commented Apr 8, 2024

Thanks for the feedback.

Is it possible that you have custom styling for your project? Here's what I see when I visit https://www.docsy.dev/docs:

* Dark mode:
  > <img alt="image" width="208" src="https://private-user-images.githubusercontent.com/4140793/320447791-1c167cfa-a818-4ea8-a9fa-33537e6d03af.png?jwt=eyJhbGciBiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI1NzI5ODcsIm5iZiI6MTcxMjU3MjY4NywicGF0aCI6Ii80MTQwNzkzLzMyMDQ0Nzc5MS0xYzE2N2NmYS1hODE4LTRlYTgtYTlmYS0zMzUzN2U2ZDAzYWYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MDhUMTAzODA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTAyMTk1ZGJmZjMxMTE1YjZhODYyM2U0NGZkMjg3YWJlNjcwNTY3ZWUxOTgzMWZhZGRmOWFmNWE1YTA1ZDhjNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.sPLfDHFQIBbMvn73DHQN3zGNvo7okLz3htxZA6PELIM">

* Light mode (the same as it has been for a while):
  > <img alt="image" width="202" src="https://private-user-images.githubusercontent.com/4140793/320447986-aadf4997-c772-4e39-b7fc-a4208295c928.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI1NzI5ODcsIm5iZiI6MTcxMjU3MjY4NywicGF0aCI6Ii80MTQwNzkzLzMyMDQ0Nzk4Ni1hYWRmNDk5Ny1jNzcyLTRlMzktYjdmYy1hNDIwODI5NWM5MjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MDhUMTAzODA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzAwOWFjMzY1MmM3OTA5ZmI4ZDYxOWU1OWRkMTY1NTBhNWEzYWI5OGMxNzg4M2M3NmNjMDM0MDRlMzIyN2Q5NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.QAQcQxaRD0gSopwnvIKDXCF2fXGPRqS4mMdNMikiKOY">

IMHO, the color contrast in dark mode seems ok in what is shown above. WDYT @deining @LisaFC @emckean et al.?

I just checked: no I don't have custom styling in place here, I'm using the css that comes with docsy by default:

.taxonomy-term {
background: $gray-200;
border-width: 0;
border-radius: 0 3px 3px 0;
color: $gray-600;

Background and text color of the tags are fix, they do not change with color mode. For a small cloud of categories/tags, this looks o.k., but with a larger tag cloud in place, I woudn't call this a dark theme any more. Just my two cents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request UX
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants