Spruce has some print-related styles. Nothing severe or fancy, but a set of minimal styles.

You can turn on basic print styles from the $settings map; set the print to true to turn it on.

@use 'sprucecss/scss/spruce' with (
  $settings: (
    'print': true,

Print-related variables.

You get the following with the print styles:

  • with the page-margin key (default value: 2cm), you can control the margin of the printed page.
  • With the hidden-elements key, you can hide elements from print view.
  • You get the URLs of the links after <a> elements.