r/BookStack • • Oct 18 '26

Barely visible UI elements in default installation

So I deployed BookStack on Ubuntu, and while all in all I love this Wiki, I noticed that number of elements is barely visible both in light and dark modes. For example breadcrumbs here:

I found piece of custom CSS code which fixes this, but then, there are elements which still are unreadable, e.g. book names in search results (see below).

I doubt I am just supposed to be patching different UI elements myself in a default installations, or am I? Why is it not working as expected, and is there a fix for all of these at once?

EDIT: issue was me setting Self/Book background as dark gray (I wanted to make their logos look transparent. Instead I can just sent Book/Shelf background transparent as per tip from u/ssddanbrown.

<style>
.grid .bg-book, .grid .bg-bookshelf {
  background-color: transparent;
}
</style><style>
.grid .bg-book, .grid .bg-bookshelf {
  background-color: transparent;
}
</style>
2 Upvotes

6 comments sorted by

3

u/ssddanbrown Oct 18 '26

I doubt I am just supposed to be patching different UI elements myself in a default installations, or am I?

No, you should not be. Think something else is going on.

  • Do you see the same in our demo instance? Will help indicate if it's something instance specific.
  • Do you see the same on your instance in a stock alternate browser, with no extra extensions? Will help indicate if it's maybe a browser plug-in causing issues.

1

u/estrangedpulse Oct 18 '26

In your demo instance it looks just fine, no issues.

On my MacBook I tried Firefox, Chrome, Safari and Zen, and all of them have exactly the same issue.

1

u/ssddanbrown Oct 18 '26

Okay, sounds like something instance specific going on.

  • Do you have anything existing in the themes/ folder of your instance?
  • Do you currently have anything set in the "Custom HTML Head Content" customization setting in the UI?

1

u/estrangedpulse Oct 19 '26

/var/www/bookstack/themes folder is empty.

I think I know what's the issue. Whenever I am inside a shelf, I see various Book tiles, and I customized the book background instead of default green color with a same exact dark gray as the rest of the background (using color picker inside Application Color Scheme menu). This allows me to have nice transparent looking covers without any visible background (I did the same for light mode just with light color).

However, this also means that when do a search, the shown name of a book is then barely visible (I confirmed by reverting to default).

Likewise, I also did the same dark gray background color for Shelves, and when I am inside the Book layer (in a place where I can create new pages), on the left I see menu navigator "Shelves" -> <shelf name>, and next to shelf name there is icon of 3 books, that is also barely visible. If I reset Shelf color to default, it's fine again.

Perhaps I misunderstood the purpose of this color customization. I just wanted to change the background which is underneath the cover images of Shelves and Books to have them look as if they have no background.

1

u/ssddanbrown Oct 19 '26

You could maybe instead specifically set the grid view backgrounds for shelves/books to be transparent, by adding the below to the "Custom HTML Head Content" customisation setting:

<style>
.grid .bg-book, .grid .bg-bookshelf {
  background-color: transparent;
}
</style>

2

u/estrangedpulse Oct 20 '26

Well that's certainly a 10x better and cleaner solution than what I was doing.. Thanks a lot!