CSS for linked (and unlinked) references

Hi there,

Maybe somebody here is willing to help me with some css-code. I came over to Logseq from Workflowy and with good reason. However, one feature of Logseq is really not to my liking, namely that all (un)linked references are shown in a grey blackground block, even with spacing between the blocks. I have tried several themes, but even the most simple themes do this.

What would be perfect for me is that a referenced block would show just like a simple block without padding, background, spacing etc. I understand I could do that with css. But I really don’t know where to start. Please help!


  • Start by adding the following css rule at the end of file custom.css:
    .references-blocks-item {
        background-color: transparent;
        padding: 0px;
  • Then use Ctrl + Shift + i to inspect other details.

thank you so much! This is perfect.