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:
- Make sure you have developer mode enabled via
... > Settings > Advanced > Developer mode - Go to the Logseq page of your choice
- Hit
CTRL + SHIFT + iorALT > View > Toggle Developer Toolsto open the Dev/Inspector Tool (thread)

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

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

