Skip to content

Conversation

gregswinehart
Copy link
Collaborator

@gregswinehart gregswinehart commented May 7, 2025

This PR uses Posit's brand for dark mode colors, with AA WCAG color contrast in mind. It also includes some spacing nudges to the homepage, because designers gotta design, I guess. While that might sound concerning, it's pretty minor stuff... I just utilized bootstrap's grid classes to make things look nice at every breakpoint, which is obviously for both light or dark mode.

Additional thoughts:

  • I'm not sure how to swap out the navbar logo for a dark mode version. I tried ![](./logo-dark.png){.dark-content} ![](./logo.png){.light-content}, but it didn't work. The great news here is the current logo passes for accessibility for dark mode, so we can punt on this now if we need to. Having said that.... It barely passes. So I'd love to be able to swap to a much more accessible, dark mode logo as soon as we can.

  • I'd love to suggest Shiny's light/dark mode switch, seen in the video below. The Shiny team says this component ready to be ported over whenever we have the time.

dark.mode.switch.mov

@gregswinehart gregswinehart requested a review from cscheid May 7, 2025 22:24
Copy link
Contributor

github-actions bot commented May 7, 2025

🚀 Deployed on https://deploy-preview-1658.quarto.org

@github-actions github-actions bot temporarily deployed to pull request May 7, 2025 22:30 Inactive
@cscheid
Copy link
Collaborator

cscheid commented May 8, 2025

This looks great, thank you!

I want to merge these changes right away so everyone gets the benefit, and then we'll work on the two todos.

  • WRT navbar logo: I'm surprised that what you tried didn't work. It should have! I see that you left the quarto-dark.png asset in the PR. So I'll merge without this fix and then see about the navbar in a separate PR.
  • dark-light toggler: Yes, we'd love for Quarto to be the source of uniformity for that switcher across Posit documents. Let's do it.

@cscheid cscheid merged commit d09a568 into main May 8, 2025
4 checks passed
@cscheid cscheid deleted the dark-mode-design branch May 8, 2025 12:31
github-actions bot pushed a commit that referenced this pull request May 8, 2025
* dark mode navbar and footer logos

* homepage dark mode and spacing nudges

* dark mode colors

(cherry picked from commit d09a568)
Copy link
Contributor

github-actions bot commented May 8, 2025

Successfully created backport PR for prerelease:

cscheid pushed a commit that referenced this pull request May 8, 2025
* dark mode navbar and footer logos

* homepage dark mode and spacing nudges

* dark mode colors

(cherry picked from commit d09a568)

Co-authored-by: gregswinehart <[email protected]>
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