Make Bootswatch paired light and dark themes available #6740
Closed
allefeld
started this conversation in
Feature Requests
Replies: 1 comment 5 replies
-
I think this is quite a new feature as it was released in Bootstrap 5.3.0: https://blog.getbootstrap.com/2023/05/30/bootstrap-5-3-0/#dark-mode I believe we are using 5.2.2 right now and we update such dependencies once per version. We already update for 1.4 (we do it at the start of a new version). So we probably we'll move to 5.3.0 for Quarto 1.5 This is indeed a good feature request to be able to leverage this feature ! probably quite some change though in our system. cc @dragonstyle : should we create a specific issue to track this ? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
For many of the Bootswatch themes there seem to be paired light and dark versions. For example, on the Cosmo theme page https://bootswatch.com/cosmo/ there is a switch in the upper right corner which toggles between the standard light version and a version which retains fonts, formatting, and many colors, but has light-on-dark text.
I tried to implement that for my own website using
and
or
but none of these work.
I downloaded the source code from the light and the dark version of the Cosmo theme page and compared the files, and the only difference seems to be that the
html
element has an additional attributedata-bs-theme="dark"
. Manipulating that manually via the inspector works on the Bootswatch theme page, but it does not work on Quarto-generated pages.It would be nice if there was a way to take advantage of these paired themes in Quarto, instead of pairing two different light and dark themes.
Beta Was this translation helpful? Give feedback.
All reactions