How can I change these 2 background color in CSS?

Things I have tried

What I’m trying to do


When mouse cursor is at this paragraph, but not select anything.

2022.3.28A
When mouse hovers over the file name, but not select it.

for this, use css snippet below. change #333 to your preferred color

/* Active Line */
 .cm-active { background-color: #333; }

for this, use css snippet below. change #1d2630 to your preferred color

.theme-dark, .theme-light {
	--background-secondary-alt: #1d2630;
}

to save a css snippet, save the code above in text file as [filename].css and save it to this folder [vault]/.obsidian/snippets (or edit any snippet u have). enable it under Settings > Appearance > CSS Snippets

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.