Step to update revealjs
Update version of REVEALJS and plugins in
configurationRun the update once (
package\src\quarto-bld.cmd update-html-dependencies) and fix potential issue in theme patchingManually check that
settings.scssdoes not have new item to add toquarto.scss. Look for// -- START setting.scss --and// -- END setting.scss --Check that defaults value did not change in SASS variable mapping (e.g.
$backgroundColordefault in Revealjs is set to$body-colorin Quarto) in the same files
Patching Themes
It happens in update-html-dependencies.ts
sassVarsMapcontains the mapping between SASS variables in revealjs and quartorevealjsThemePatcheshas the variables used to patch the specific theme
Quarto specifics
defaulttheme is a custom quarto theme (default.scss)darktheme is a cusom quarto theme (dark.scss)Default value are the one in the
quarto.scsslayer
whiteis aliased todefault, so usedefault.scss-white.scssfrom reveal is ignoredblackis aliased todark.scss, so usedark.scss-black.scssfrom reveal is ignored
About settings.scss
settings.scssis a file that contains the default value for the themesHowever,
quarto.scsscontains some defaults for Quarto.So part of settings.scss is inside the Quarto default, and others are in the revealjs theme ported to quarto theme
About adaptation of theme files
Variables name are changed to match the quarto theme - this is done automatically through a mapping
Files are patched using git for more manual modification.
Imports are removed
template/mixins.scsswill be added as part of framework layertemplate/settings.scssis manually inlinedtemplate/theme.scsswill be added as part of framework layer
@include dark-bg-text-coloris removed as it is inlined in quarto.scss and$dark-bg-text-colorallows to set it@include light-bg-text-coloris removed as it is inlined in quarto.scss and$light-bg-text-colorallows to set itsome defaults from
settings.scssare hand picked, and other are inline changed inquarto.scssFor dark themes
Check that the dark theme is correctly patched with
Some themes have
to avoid quarto default value which is body-bg
Ignored default from settings.scss are
$presentation-h2-font-size:$presentation-h3-font-size:$presentation-h4-font-size:$font-family-monospace:$presentation-block-margin:
Values from
quarto.scssare used even for ported themes$presentation-heading-fontWe remove Impact font if present as fallback