Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 8, 2025

Description

Sync of #1658 to prerelease.

Original PR

Dark mode styling

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

* dark mode navbar and footer logos

* homepage dark mode and spacing nudges

* dark mode colors

(cherry picked from commit d09a568)
@cderv
Copy link
Collaborator

cderv commented May 8, 2025

/deploy-preview

@github-actions github-actions bot mentioned this pull request May 8, 2025
2 tasks
Copy link
Contributor Author

github-actions bot commented May 8, 2025

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

@cscheid cscheid merged commit 510aae1 into prerelease May 8, 2025
@cscheid cscheid deleted the sync-1658-to-prerelease branch May 8, 2025 12:55
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.

3 participants