Skip to content

Implement dark mode - #2338

Merged
hadley merged 38 commits into
mainfrom
dark-mode
May 23, 2024
Merged

hadley merged 38 commits into
mainfrom
dark-mode

Conversation

@jayhesselberth

@jayhesselberth jayhesselberth commented Sep 3, 2023 •

Copy link
Copy Markdown
Collaborator

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.

@gadenbuie gadenbuie left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread inst/BS5/assets/pkgdown.js Resolved
Comment thread inst/BS5/assets/pkgdown.js Resolved
Comment thread inst/BS5/assets/pkgdown.scss Resolved
Comment thread pkgdown/_pkgdown.yml Resolved
Comment thread inst/BS5/assets/pkgdown.js Resolved
Comment thread inst/BS5/assets/pkgdown.js 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
@github-actions

github-actions Bot commented May 21, 2024 •

Copy link
Copy Markdown

@hadley

hadley commented May 21, 2024

Copy link
Copy Markdown
Member

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

hadley commented May 22, 2024

Copy link
Copy Markdown
Member

@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.

Comment thread R/navbar-menu.R Resolved
Comment thread R/navbar-menu.R Resolved
@hadley

This comment was marked as outdated.

Comment thread inst/BS5/assets/pkgdown.js Resolved
Comment thread pkgdown/_pkgdown.yml Resolved
Comment thread vignettes/customise.Rmd Resolved
@jayhesselberth

This comment was marked as outdated.

}

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

Copy link
Copy Markdown
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

Comment thread inst/BS5/assets/pkgdown.scss Resolved
@hadley
hadley merged commit 69f7e6b into main May 23, 2024
@hadley
hadley deleted the dark-mode branch May 23, 2024 21:12
@hadley

hadley commented May 23, 2024

Copy link
Copy Markdown
Member

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.

4 participants