[Sync to prerelease] Dark mode styling #1660
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
{.dark-content} {.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