The format is inspired by the current version of `sass::sass_layer()`

```
/*-- scss:declarations --*/
@function colorToRGB ($color) {
  @return "rgb(" + red($color) + ", " + green($color) + ", " + blue($color)+ ")";
}

/*-- scss:variables --*/
$h2-font-size:          1.6rem !default;
$headings-font-weight:  500 !default;
$body-color:            $gray-700 !default;

/*-- scss:rules --*/
h1, h2, h3, h4, h5, h6 {
  text-shadow: -1px -1px 0 rgba(0, 0, 0, .3);
}
```

We'll likely be deprecating the  concept of `declarations` in favor of `functions` and `mixins` (https://github.com/rstudio/sass/pull/80), which will allow variable defaults to make use of functions


```
/*-- scss:functions --*/
@function color-contrast($color) {
  @return if(
    red($color) * 0.299 + green($color) * 0.587 + blue($color) * 0.114 > 186,
    black, white
  );
}

/*-- scss:variables --*/
$body-color:            color-contrast($body-bg) !default;

/*-- scss:mixins --*/
@mixin body-color {
  color: $body-color
}

/*-- scss:rules --*/
body {
  @include body-color;
}
```
dragonstyle
2021-04-23T16:00:48Z
cpsievert
closed
Update Sass theme format to reflect new sass::sass_layer()
https://github.com/quarto-dev/quarto-cli/issues/23