Background colour to show current text block

I’ve been using the Obsidian Nord theme until now. When I’m writing, the currently selected line/block of text is shaded a light pink, which is very useful when I’m cleaning up line breaks etc from text I’ve copied/pasted from PDFs (I’m doing a Master’s degree, there is a lot of text from PDFs involved).

I’ve recently looked at switching to the Things theme, which is nice and sleek, but doesn’t have that background shading. I’ve looked around but not found how to get that behaviour into the theme.

This should give you the active line background similar to the Nord theme:

body {
    --red_x: 191,97,106; /* #bf616a */       
    --cursor-line-background: rgba(var(--red_x), 0.2);
}

.cm-active {
    background-color: var(--cursor-line-background);
}


Another option if you don’t want the color in the gutter (where the line numbers are if they are enabled):

.cm-active:not(.cm-gutterElement) {
    background-color: var(--background-modifier-hover); 
    /* background-color: rgba(0,0,0,0.060); */
    border-radius: 4px;
}


CSS snippets documentation if needed.

Perfect - thanks very much