Is it possible to have a different font for headings?

Hi all, I have set a custom font for my text. I was wondering if it was possible to have a different font for the headings however.

This snippet should do it. Change as needed.

body {
  --h1-font: Comic Sans MS;
  --h2-font: inherit;
  --h3-font: inherit;
  --h4-font: inherit;
  --h5-font: inherit;
  --h6-font: inherit;
}
2 Likes