Why use blank images in a background?

After putting Git Bash onto windows, I’ve been reading through documentation on this website:
https://git-scm.com/book/en/v2

I tried to find a dark mode extension that would work in Microsoft Edge, but found this websites colours didn’t change.

In order to change the background to something my eyes could handle, I looked in dev tools and found an image set as the background.

But the image just seems to be a white square?

image

I’m curious to the reason behind this.
Has anyone felt the need to do something similar to this, and if so what was the reason?

Any articles or documentation that give an explanation would be appreciated.

Hello!

While I don’t know if this isn’t just a case of a broken link, developers often use blank images while coding a sites’ layout. Create the layout now, add the actual images later. Saves you the time to find, download and use placeholder images.
There is even an api offering blank images in every possible format.

2 Likes

Hi there! As for me, Gloom Dark Mode works perfectly:

Screenshot

1 Like

Thank you, will use gloom DM from now on, saves me editing the DOM every time I go to the next page XD

But I’d still be interested in the reasons behind using a url of a flat colour.
It seems like an odd design choice.

1 Like

Are you not satisfied with the @DanielHuebschmann 's explanation above? :slightly_smiling_face:

I understand some images may be used as placeholders, I do this myself.

But it feels like there might be more to it.
The website already sets a colour, why would it also need an image of the same colour?
Does this mean the website is unfinished?

I’m aware that temporary choices are made early on, that end up in a project long after they are no longer needed.
Which often leaves me feeling a little uneasy. Since I’m still learning.

I’d rather ask than assume… Just in case there is another reason I’m unaware of.

Yeah, maybe. Or they just forgot to delete it

To be honest, I can kind of understand doing this on purpose. Over the years I’ve seen lots of users complain about the layout or colors of a website being ugly or unuseable and it turns out it’s because they have a browser extension that is overriding the CSS. When you’re building a UI, one of the important parts of acccessiblity is contrast, so you need to control the color of the foreground and the background.

1 Like