This is a third-party script/app and is not created by the WaniKani team. By using this, you understand that it can stop working at any time or be discontinued indefinitely.
Dark theme for Discourse
Started working on a userstyle for the WaniKani forums a while back, but abandoned the project because I was too busy with work and such.
Now I want to revive it again.
It’s still heavily work in progress, and I’m looking for feedback in how it could be improved.
One thing I noticed, the like button stays gray for things you’ve already liked (instead of turning pink), and the “WaniKani Community” header is still in black text. Otherwise, I like it so far!
The community header is an image, and the text is included in that.
I could apply a filter to change that, but that would modify the entire image and it would look weird.
If it wasn’t your intention to put the username below the avatar, which takes up a lot of vertical space, you should know that it’s the topic-body width which is causing it. I’m mentioning this only because I’ve had some trouble with it working on my transparent theme, but you’re better at this than I am, so perhaps you already knew that.
I can also mention that the annoying border at the bottom of the window is the top border of the reply box, which isn’t obvious.
I won’t be using the style since I have my own, but it looks nice, good work
What I’ve done with my WIP is just change the image out for a version with with white text. Not as flexible as a filter, but it’s much nicer than leaving it black.
Haha, yes, it was. I had the inspector open, went to a new post, quickly selected the element, and took a screenshot of its properties
If Valeth’s interested this is what I ended up with (the animation name was supposed to be temporary, but I never changed it)
@keyframes kumirei {
from {background-color: rgba(194,111,220,0.3);}
to {background-color: transparent;}}
.topic-body.highlighted {
animation-name: kumirei;}
@Kumirei I tried the image replacement, but this is Chrome specific and does not seem to work in Firefox (which kinda makes it completely useless for me, because that’s my main browser).
So unless Viet (or somebody from the WK team) changes the header to be more easily styled, we kinda have to accept an unreadable “WaniKani Community” text.
Unless I find some other solution.
I can still add it, but for me it will be just dead code.
I’m currently using the Discourse Dark theme and am not developing this theme at the moment.
Not sure if I’ll get back to finishing it.
But the project is open source, so if anybody wants to pick it up then feel free to do so.