Replies: 2 comments 3 replies
-
|
Currently you can't without providing yourself the whole theme as SCSS with the right modifications in it. Quarto does not use the same approach to dark/light. See: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I tried this: format:
html:
theme:
dark: [lumen, css/_variables-dark.scss]
light: [lumen, css/_variables-light.scss]
css: styles.csswith _variable-dark.scss: /*-- scss:defaults --*/
$gray-100: #f6f6f6;
$gray-200: #f0f0f0;
$gray-300: #dee2e6;
$gray-400: #ced4da;
$gray-600: #999;
$gray-700: #555;
$gray-800: #333;
$gray-900: #222;
$black: #000;
$blue: #158CBA;
$indigo: #6610f2;
$purple: #6f42c1;
$pink: #e83e8c;
$red: #FF4136;
$orange: #fd7e14;
$yellow: #FF851B;
$green: #28B62C;
$teal: #20c997;
$cyan: #75CAEB;
$primary: $blue;
$gray-500: rgb(158, 168, 179);
$secondary: $gray-500;
$success: $green;
$info: $cyan;
$warning: $yellow;
$danger: $red;
$light: $gray-500;
$dark: $gray-700;
$dropdown-link-color: rgba(0,0,0,.5);
$white: rgb(247, 243, 234);
$body-bg: $gray-800;
$body-color: $gray-200;
$card-bg: $gray-500;
$modal-content-bg: $gray-600;
$text-muted: $gray-700;
$blockquote-small-color: $gray-700;
$list-group-bg: $gray-500;
$jumbotron-bg: $gray-500;
$list-group-hover-bg: $gray-300;
$pagination-bg: $gray-300;
$pagination-border-color: $gray-400;
$pagination-disabled-bg: $gray-700;
$pagination-disabled-border-color: $gray-600;
$breadcrumb-bg: $gray-300;
$progress-bg: $gray-500;
$input-bg: $gray-300;and _variables-light.scss: /*-- scss:defaults --*/
$gray-100: #f6f6f6;
$gray-200: #f0f0f0;
$gray-300: #dee2e6;
$gray-400: #ced4da;
$gray-500: #adb5bd;
$gray-600: #999;
$gray-700: #555;
$gray-800: #333;
$gray-900: #222;
$black: #000;
$blue: #158CBA;
$indigo: #6610f2;
$purple: #6f42c1;
$pink: #e83e8c;
$red: #FF4136;
$orange: #fd7e14;
$yellow: #FF851B;
$green: #28B62C;
$teal: #20c997;
$cyan: #75CAEB;
$primary: $blue;
$secondary: $gray-200;
$success: $green;
$info: $cyan;
$warning: $yellow;
$danger: $red;
$light: $gray-100;
$dark: $gray-700;
$dropdown-link-color: rgba(0,0,0,.5);
$body-bg: $gray-100;and I get the error: Any idea what is happening? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Description
The bootswatch theme Lumen comes in Dark and Light (you can use the toggle at the top right of the website):
https://bootswatch.com/lumen/
However, I did not find how to use the dark mode in quarto, and hence, how to toggle between the dark and light version of the theme.
Beta Was this translation helpful? Give feedback.
All reactions