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

Implement dark mode #2338

Merged
merged 38 commits into from
May 23, 2024
Merged

Implement dark mode #2338

merged 38 commits into from
May 23, 2024

Conversation

jayhesselberth
Copy link
Collaborator

@jayhesselberth jayhesselberth commented Sep 3, 2023

Copies relevant, recent work from rstudio/bslib

kudos to @gadenbuie

related to #1696

Copies relevant, recent work from rstudio/bslib

kudos to @gadenbuie
@jayhesselberth

This comment was marked as outdated.

Copy link
Contributor

@gadenbuie gadenbuie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm really glad you saw the bslib PR and started porting this to pkgdown! I had been planning to open an issue with some thoughts and guidance from my experience; instead I've left a few comments in this PR. Feel free to comment here or reach out any time if I can help in any way.

inst/BS5/assets/pkgdown.js Outdated Show resolved Hide resolved
inst/BS5/assets/pkgdown.js Show resolved Hide resolved
inst/BS5/assets/pkgdown.scss Outdated Show resolved Hide resolved
pkgdown/_pkgdown.yml Outdated Show resolved Hide resolved
inst/BS5/assets/pkgdown.js Outdated Show resolved Hide resolved
inst/BS5/assets/pkgdown.js Outdated Show resolved Hide resolved
@jayhesselberth jayhesselberth self-assigned this Oct 17, 2023
@jayhesselberth jayhesselberth added this to the 2.0.8 milestone Nov 28, 2023
@jayhesselberth jayhesselberth marked this pull request as draft November 28, 2023 17:51
@hadley

This comment was marked as outdated.

@jayhesselberth

This comment was marked as outdated.

@hadley

This comment was marked as outdated.

@hadley hadley modified the milestones: 2.0.8, 2.0.9 Mar 12, 2024
@jayhesselberth

This comment was marked as outdated.

@hadley

This comment was marked as outdated.

@jayhesselberth jayhesselberth marked this pull request as ready for review April 28, 2024 22:11
Copy link

github-actions bot commented May 21, 2024

@hadley
Copy link
Member

hadley commented May 21, 2024

I'm going to leave this PR where it is for a bit — I think to get the CSS right, we need to rethink how the navbar is generated. It looks like our CSS provides a bunch of customisations that we can probably get rid of, and then dark mode gets much simpler.

@hadley
Copy link
Member

hadley commented May 22, 2024

@jayhesselberth this is your PR so I can't easily request a review, but can you please take a look?

@jayhesselberth

This comment was marked as outdated.

R/navbar-menu.R Outdated Show resolved Hide resolved
R/navbar-menu.R Outdated Show resolved Hide resolved
@hadley

This comment was marked as outdated.

inst/BS5/assets/pkgdown.js Outdated Show resolved Hide resolved
pkgdown/_pkgdown.yml Outdated Show resolved Hide resolved
vignettes/customise.Rmd Show resolved Hide resolved
@jayhesselberth

This comment was marked as outdated.

@@ -121,12 +136,6 @@ aside {
}

/* table of contents -------------------------------------------------------- */
$pkgdown-toc-border-width: 0 !default;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No evidence that any one has used these: https://github.com/search?q=pkgdown-toc+&type=code

@hadley hadley merged commit 69f7e6b into main May 23, 2024
14 checks passed
@hadley hadley deleted the dark-mode branch May 23, 2024 21:12
@hadley
Copy link
Member

hadley commented May 23, 2024

I've merged this because I think it's at least 95% there, but please file issues if you spot any problems.

SebKrantz pushed a commit to SebKrantz/pkgdown that referenced this pull request Jun 1, 2024
Opt-in "light switch" to allow the user to switch between light and dark modes. Fixes r-lib#1696.

Co-authored-by: Jay Hesselberth <jayhesselberth@jays-imac.ucdenver.pvt>
Co-authored-by: Hadley Wickham <h.wickham@gmail.com>
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.

None yet

4 participants