If you want extra customizations.
Quarto will compile it for any format (with or without _brand.yml
).
There are a variety of Sass variables you can set within a .scss
file for Quarto, including:
$body-bg
, $body-color
, etc.$toc-font-size
, $font-family-sans-serif
, etc.$code-block-border-left
, $code-block-bg
.There are a variety of Sass variables you can set within a .scss
file for Quarto, including:
$body-bg
, $body-color
, etc.$toc-font-size
, $font-family-sans-serif
, etc.$code-block-border-left
, $code-block-bg
.Many of these features can also be set in _brand.yml
.
.scss
filestyles.scss
/*-- scss:functions --*/
@function colorToRGB ($color) {
@return "rgb(" + red($color) + ", " + green($color) + ", " + blue($color)+ ")";
}
/*-- scss:defaults --*/
$h2-font-size: 1.6rem !default;
$headings-font-weight: 500 !default;
/*-- scss:rules --*/
h1, h2, h3, h4, h5, h6 {
text-shadow: -1px -1px 0 rgba(0, 0, 0, .3);
}
.scss
file in the theme
fieldIf you’re already using _brand.yml
, you can use a .scss
file to further customize your theme, beyond brand.yml’s limits, or to override elements of your brand file. For example:
If you’re already using _brand.yml
, you can use a .scss
file to further customize your theme, beyond brand.yml’s limits, or to override elements of your brand file. For example:
The colors defined in the brand.yml palette
are available as Sass with the format $brand-COLOR_NAME
.
The colors defined in the brand.yml palette
are available as Sass with the format brand-COLOR_NAME
.
styles.scss
has priority over _brand.yml
styles.scss
> _brand.yml
> cosmo
You can also set Bootstrap Sass variables under defaults
in brand.yml.
_brand.yml
Continue working on your own Quarto project and _brand.yml
!
Thank you!