CSS code that controls the background color

Besides what was already stated about CSS variables, here’s how to drill down on what rules impact which part of the interface. If you know your way around HTML + CSS, you can identify which selector(s) to override in the following way:

  1. Make sure you have developer mode enabled via ... > Settings > Advanced > Developer mode
  2. Go to the Logseq page of your choice
  3. Hit CTRL + SHIFT + i or ALT > View > Toggle Developer Tools to open the Dev/Inspector Tool (thread)

Logseq Inspector Tool shortcut

.

From there, you can mess around with the existing rules using the Element selector and Styles panel:

Logseq Inspect Tools

.
And copy-paste your new rule or declaration into custom.css:

Logseq_Copy rule or declaration

2 Likes