quarto-dev / quarto-dev/quarto-cli
[Feature Requests] Dark/light/small/large API for images depending on context
Open
@cscheid is already working on this.
Since Jun 28, 2023.
dark-mode
enhancement
html
themes
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
As discussed, Quarto currently does not natively provides ways to deal with various images depending on context such as light/dark theme, or small/large screen display.
Some related work:
- JavaScript: https://mickael.canouil.fr/posts/2023-05-30-quarto-light-dark/
GitHub context classes: https://github.blog/changelog/2021-11-24-specify-theme-context-for-images-in-markdown/Deprecated in favour ofprefers-color-schemeapproach.- #3263 and
thematicR package (https://rstudio.github.io/thematic/ - #5439
- https://developer.mozilla.org/fr/docs/Web/CSS/@media/prefers-color-scheme
- #482
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.