Selection background color not showing up in custom theme

I solved it by adding this block:

html:not(html[data-color]),
html[data-theme=light][data-color='logseq'],
html[data-theme=dark][data-color='logseq'],
html[data-color='none'] {
    ::selection {
        background-color: var(--ls-selection-background-color);
    }
}

It seems that ::selection was being used within html[data-color='none'], not html[data-theme=dark] which was the only thing I was really selecting.

2 Likes