Skip to content

Commit 7f8cfd0

Browse files
authored
Merge pull request #12182 from quarto-dev/reveals/default-heading-color
simple and serif revealjs theme should have their heading color defaults to body color
2 parents 93ac52d + b535c87 commit 7f8cfd0

File tree

11 files changed

+56
-5
lines changed

11 files changed

+56
-5
lines changed

news/changelog-1.7.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ All changes included in 1.7:
5151
- ([#11835](https://github.com/quarto-dev/quarto-cli/issues/11835)): Take markdown structure into account when detecting minimum heading level.
5252
- ([#11964](https://github.com/quarto-dev/quarto-cli/issues/11964)): Using panel layout without a crossref label now correctly do not add an empty `#block[]` that was leading to an unnecessary space in output.
5353

54+
## `revealjs` format
55+
56+
- ([#12147](https://github.com/quarto-dev/quarto-cli/issues/12147)): `serif` and `simple` themes defaults back to have their heading color (`$presentation-heading-color`) to be the same as the body color (`$body-color`) as in Quarto 1.5.
57+
5458
## Interactive Shiny Document
5559

5660
- ([#12059](https://github.com/quarto-dev/quarto-cli/issues/12059)): `quarto preview` now correctly run on Windows an interactive Quarto doc with Jupyter engine and py-shiny, when using a `*.py` file as resource.

package/src/common/patches/revealjs-theme-0001-simple.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ index f0472d7b9..3b1e3cbdc 100644
2828
+$font-family-sans-serif: "Lato", sans-serif !default;
2929
+$body-color: #000 !default;
3030
+$presentation-heading-font: "News Cycle", sans-serif !default;
31-
+$presentation-heading-color: #000 !default;
31+
+$presentation-heading-color: $body-color !default;
3232
+$presentation-heading-text-shadow: none !default;
3333
+$presentation-heading-text-transform: none !default;
3434
+$body-bg: #fff !default;

package/src/common/patches/revealjs-theme-0001-sky.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ index 62a52b782..2debff7bc 100644
2828
+$font-family-sans-serif: "Open Sans", sans-serif !default;
2929
+$body-color: #333 !default;
3030
+$presentation-heading-font: "Quicksand", sans-serif !default;
31-
+$presentation-heading-color: #333 !default;
31+
+$presentation-heading-color: $body-color !default;
3232
+$presentation-heading-letter-spacing: -0.08em !default;
3333
+$presentation-heading-text-shadow: none !default;
3434
+$body-bg: #f7fbfc !default;

src/resources/formats/revealjs/themes/simple.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
$font-family-sans-serif: "Lato", sans-serif !default;
2020
$body-color: #000 !default;
2121
$presentation-heading-font: "News Cycle", sans-serif !default;
22-
$presentation-heading-color: #000 !default;
22+
$presentation-heading-color: $body-color !default;
2323
$presentation-heading-text-shadow: none !default;
2424
$presentation-heading-text-transform: none !default;
2525
$body-bg: #fff !default;

src/resources/formats/revealjs/themes/sky.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
$font-family-sans-serif: "Open Sans", sans-serif !default;
1818
$body-color: #333 !default;
1919
$presentation-heading-font: "Quicksand", sans-serif !default;
20-
$presentation-heading-color: #333 !default;
20+
$presentation-heading-color: $body-color !default;
2121
$presentation-heading-letter-spacing: -0.08em !default;
2222
$presentation-heading-text-shadow: none !default;
2323
$body-bg: #f7fbfc !default;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.quarto/
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
project:
2+
type: default
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*-- scss:defaults --*/
2+
3+
$body-color: #000080;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "Quarto Title Test"
3+
format: revealjs
4+
theme: [simple, custom.scss]
5+
---
6+
7+
## slide 1
8+
9+
Text for slide 1
10+
11+
## side 2
12+
13+
Text for slide 2
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "Quarto Title Test"
3+
format: revealjs
4+
theme: [simple, custom.scss]
5+
---
6+
7+
## slide 1
8+
9+
Text for slide 1
10+
11+
## side 2
12+
13+
Text for slide 2

0 commit comments

Comments
 (0)