Getting started with CSS

If you’ve got creating CSS snippets down, have a look at:


For editing and rendered (reading) modes, you could use something like this (wrapping the theme variables in body {} to cover light and dark modes):

body {
    --h1-color: red;
    --h2-color: blue;
    --h1-size: 4em;
    --h2-size: 3em;

The variables don’t work with all themes - sometimes you need to be more specific - but they will work with most themes.

1 Like