Skip to contents

This function creates the .scss file so that any 'Quarto' project can be easily customized with SCSS styling variables, mixins, and rules.

Usage

write_scss(path = here::here(), .initialize_proj = FALSE)

Arguments

path

Character string. Path to the project directory.

.initialize_proj

Logical. TRUE only if starting a froggeR::quarto_project().

Value

A SCSS file to customize 'Quarto' styling.

Details

The function includes a robust YAML handling mechanism that safely adds new SCSS file.

See vignette("customizing-quarto", package = "froggeR") vignette for more help.

Examples

# Create a temporary directory for testing
tmp_dir <- tempdir()

# Write the SCSS file
write_scss(path = tmp_dir)
#>  Created custom.scss
#>  Edit /tmp/RtmpQilr82/custom.scss.

# Confirm the file was created (optional, for user confirmation)
file.exists(file.path(tmp_dir, "custom.scss"))
#> [1] TRUE

# Clean up: Remove the created file
unlink(file.path(tmp_dir, "custom.scss"))