The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
One of froggeR
’s core strengths is its ability to
maintain consistent settings and styling across multiple projects. This
vignette demonstrates how to set up and customize your Quarto documents
using froggeR
’s SCSS document.
froggeR allows you to use variables from your
_variables.yml
file directly in your Quarto documents:
This ensures consistency across all your project documents and makes updates easier to manage.
The write_scss()
function creates a template with three main sections:
/*-- scss:defaults --*/
)
/*-- scss:mixins --*/
)
/*-- scss:rules --*/
)
The SCSS template uses //
for commented styles. These
act like a menu of styling options:
/*-- scss:defaults --*/
// $primary: #2c365e; // Main theme color
// $body-bg: #fefefe; // Background color
// $link-color: $primary; // Inherit from primary
To activate any style:
//
at the start of the lineTo multiple or a organization-specific SCSS file in your Quarto document, update the YAML header:
---
title: "My Document"
format:
html:
theme:
- default
- custom.scss # Added during project
- your-other.scss # The new one you're adding
---
Note: Order matters! Any style(s) set in
custom.scss
override Quarto’s defaults, andyour-other.scss
overrides the previous two. If your document isn’t rendering as you believe it should, check the files. If you have a border style set incustom.scss
but the output file isn’t correct, there’s a good possibility that there’s something set inyour-other.scss
causing conflicts. Resolve the issue and re-render. :)
Here’s an example of changing the default link color from the
assigned $primary
color (blue) to dark green.
Remove the //
to activate and change
$primary
to #1e6909
:
Combine multiple elements for sophisticated styling:
/*-- scss:defaults --*/
// First, set your variables
$primary: #2c365e;
$font-family-monospace: "Fira Code", monospace;
/*-- scss:rules --*/
// Then create custom rules
.title-block {
margin-bottom: 2rem;
border-bottom: 3px solid $primary;
h1 {
color: darken($primary, 10%);
font-weight: 600;
}
}
// Style code elements
code {
color: lighten($primary, 10%);
padding: 0.2em 0.4em;
border-radius: 3px;
}
config.yml
changes_variables.yml
exists in project_variables.yml
manually if neededFor more advanced SCSS customization options, visit:
froggeR
streamlines document customization:
settings()
write_scss()
Happy styling! 🐸
Consistent, professional documents with minimal effort
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.