Skip to contents

This function creates the .scss file so that any Quarto project can easily be customized with SCSS styling variables, mixins, and rules. It also updates the Quarto YAML configuration to include the new style sheet.

Usage

write_scss(name = "custom", path = getwd())

Arguments

name

The name of the scss file without extension. Default name is "custom".

path

The path to the main project level. Defaults to the current working directory

Value

A .scss file to customize Quarto styling. If the file is not named "custom.scss", the function will also attempt to update the Quarto YAML configuration.

Examples

if (FALSE) { # \dontrun{
# Create a new temporary directory for the example
temp_dir <- tempdir()

# Create default custom.scss
write_scss(name = "custom", path = temp_dir)

# Add another style sheet
write_scss(name = "special_theme", path = temp_dir)
} # }