Open rossbowen opened 6 months ago
There is no Bootstrap in Reveal.js.
Note that the link you shared is for HTML not revealjs
format.
See https://quarto.org/docs/presentations/revealjs/themes.html.
Hey @mcanouil - sorry if I misunderstand, but I intended to report about the HTML format, not revealjs
format.
I apologise, I completely misread with another thread. You can disregard my comment.
I don't think setting none removes Bootstrap as it is used for many features inside Quarto. If you provide a SCSS file it has to be complete (similarly to the other theme files) and you don't need to set anything but your file. If you want to override the default, provide a complete file.
If you really want to remove Bootstrap (this has been discussed in several other threads), you need to use "minimal" (see https://quarto.org/docs/output-formats/html-basics.html#minimal-html). Note that this will completely messed up the layout as it is based on Bootstrap.
Could you clarify what exactly you are trying to achieve?
So for contrast, say I had a .qmd
which looks like this.
---
title: "Reproducible Quarto Document"
format:
html:
theme: none
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
The end.
Notice now I have provided a single argument, `theme: none` instead of an array including some custom SCSS. For me, this renders in my browser with only the browser's default CSS - no bootstrap.
So in my example, I would like the document to render only the browser's default CSS, no bootstrap, but _also_ applying any custom SCSS I provide.
Did you try simply replacing none with your custom? It should override thus not using the default.
So in that case, it applies my custom SCSS on top of the default bootstrap theme, so I still get lots of bootstrap styling in my output.
I don't want any bootstrap (which is why I'm trying to set theme: none
).
I would like the document to render only the browser's default CSS, no bootstrap, but also applying any custom SCSS I provide.
Our doc may not be enough clear on this but the SCSS handling is for now bound to Bootstrap usage. The document on the design for Quarto Themes explains how custom SCSS theme file is layered with Bootstrap SCSS files. https://quarto.org/docs/output-formats/html-themes-more.html#bootstrap-bootswatch-layering
If you don't want to use bootstrap, you'll need to provide you styling as a regular CSS file (https://quarto.org/docs/output-formats/html-basics.html#css-styles). You can have a pre-render step to render your SCSS project to a CSS file to use with Quarto.
For now, Quarto won't run SCSS for you unless layered with Bootstrap theme.
Also theme: none
is for no internal CSS inclusion at all, and theme: pandoc
to use the CSS feature from Pandoc with usage of Pandoc's variables.
Note as said already: if you opt-out bootstrap completely, some Quarto features won't work. There is maybe a path where you provided custom themes that opt out certain feature or bootstrap style you don't want.
Anyhow, I hope this helps understand current behavior. I'll rename issue to make it clear.
I see. So the issue is not really that none + something = default + something, but more like something = something + default which is what we are saying in the documentation.
theme: custom.scss
overrides everything and has to be complete when it seems it's default + custom.scssThanks both!
I guess from my reading of the docs, I saw the example in this section which shows how you can mix SCSS with a bootstrap theme:
theme:
- cosmo
- custom.scss
And so I tried to apply that pattern using none
, but as has been explained it just doesn't work in that way.
But I've got a workaround by providing just CSS instead, and maybe my incorrect approach could work in future.
Bug description
Applying the theme options described here, I would like to render a document with no default bootstrap styling but am unable to provide my own custom SCSS and
theme: none
to achieve this.Steps to reproduce
Given a
.qmd
document which looks like this:The end.
Expected behavior
I would expect the document to render without bootstrap styling (i.e. to apply the effect of
theme: none
ortheme: pandoc
), but then apply my custom SCSS styles.Actual behavior
Instead, the document renders using the default bootstrap theme and then applies my custom SCSS styling (as per the behaviour here).
Your environment
VSCode on Windows, using WSL2.
Quarto check output