Dark Stylus theme for MusicBrainz, other MetaBrainz sites

I’ve been working on a dark theme for MB for some time, hoping to cut down the eye strain caused by the stark white standard site. Naturally, it’s not as simple as just changing the overall background color. I had tried the other two dark themes that Stylus has for MusicBrainz, but found too many areas where foreground/background colors were too similar, resulting in hard-to-read text.

The style was developed specifically for MusicBrainz, but when I found that it worked for most MetaBrainz project sites, I put a little more time into those sites as well. Stylus users who want to try it out can find it here:

16 Likes

This looks great! I will try it out. Thanks for sharing.

3 Likes

I’ve discovered an area where this theme needs to be fixed, but I don’t know how. If someone has some expertise with CSS, I’d appreciate any advice.

The situation arises when editing the Tracklist on a release. When an Artist field is empty, or does not have a resolved artist, the field is left in white, while resolved fields are green.

My theme doesn’t differentiate these fields (which I learned after spending 30 minutes wondering why it said I had an error but couldn’t tell which field it was), and I have been unable to determine the CSS selector that will allow me to do so.

If anyone can figure that out and let me know, I would appreciate it.

I think I can help you there as I have also written my own dark theme for MusicBrainz (after I had seen your post here), which I have been using and tweaking for a while now. So I am happy to give you something back (for inspiring me to explore the world of userstyles) before I am finally satisfied enough to publish a “finished” version of my own theme soon :blush:

I was able to darken all of the text input fields, except for those with special highlighting, using the following selector:

It also deals with some other special cases but the important part is the input[type=text]:not(.lookup-performed) selector.

5 Likes

Thanks for that. That’s at least a couple levels more advanced than my knowledge, so I’m going to have to see if I can figure out how to make that work.

1 Like

I’m not having any luck making that work. I’m not too worried about it, as everything is at least readable, but I’ll let it rest for a while and maybe try again later.

It’s pretty gratifying to see there are 287 installs of this Stylus theme as of today.

1 Like

Thanks for bringing this up. Hopefully, by the end of 2022, all the MetaBrainz websites will support a Light and Dark theme. I am actively working on this and we have figured this stuff out relatively. All it will take now is the time to get them to production :slight_smile:

5 Likes

Thanks a lot for this! Was hoping that there’d be an official setting by now but am very glad your option exists.

Thanks to the #userstyles tag, you can also have a look at another dark user stylesheet, and even a Dark Reader extension! that could be even simpler, maybe.

1 Like

Finally had time to sit down and make this work. I found I had a couple other CSS elements that were interfering until I removed !important notations.

I gave an unresolved name a red background, so it alerts the user that an error is present.
image

In the process, though, I discovered a tooltip with a transparent background, so I’ve got something else to figure out:
image

2 Likes

Ha! Found it.
image

2 Likes

Just wanted to say thank you so much for this. Man, my eyes were killing me!

2 Likes

Excellent theme, thanks a ton! Just tinkered with Bookbrainz a bit and found “Edit aliases” and “Edit Identifiers” are hiding themselves there in the edition edit page e.g. Edit Harry Potter and the Philosopher’s Stone (Edition)
image
vs
image
Hopefully there’s an easy fix to that :wink:

Yeah, I noticed that the other day too. Haven’t had time to dig into it.

1 Like

I finally remembered to look at this. I think I have it fixed. Hopefully without messing something else up. :slight_smile:

2 Likes

Hey there! I think there may have been some changes to ListenBrainz, since it currently looks like this with this dark theme applied.


I’m not especially familiar with the underlying HTML and the classnames used, but hopefully this is a relatively small fix. :slight_smile:

1 Like