10
votes
Any custom themes using Stylus?
I switched to the light theme the other day. I'm typically all-in with dark themes for everything, but there was some convincing research.
I started working on a light theme, but it's fairly basic.
I was digging through the old thread and found a few gems, but I'm wondering what everybody has been up to since. Time for some show and tell!
I like your theme, it's very clean.
I personally still use @Bauke's Baukula, which is a modified version of Tildes default Dracula theme. It's got a bit more of a cyberpunk aesthetic than the default Dracula IMO... plus, I like pink. :)
I love Dracula! I use it for everything. In this theme I did up, I'm using some Dracula colors, actually (text, highlights, alerts, and exemplary posts.)
In this theme I'm doing up, the colors and type are all in variables, so it's easier to mess with.
I'll say this, a light theme is really growing on me.
It'd be nice if Tildes had a set of variables we could simply override.
Like a totally custom theme picker, essentially? That could be kinda neat... though it might also be a bit overkill. :P
BTW, are you going to release your theme at some point? I wouldn't mind giving it a spin. :)
okay! I initially lost it... but HACKERMAN over here got everything back.
https://gist.github.com/hello-party/fafc3e4a586c54b067417746d737b6d7
Give it a swing. Search for my username and replace it with your own (~ line 202). Let me know if you find any errors or whatever.
Nice... It looks sweet. I especially love the
...
instead ofActions
, but I understand that's probably not ideal for the default theme because of new users/usability/accessibility. My only issue is that the font is pretty small on my 1440 Ultrawide, but that's an easy enough fix for me to do myself. Thanks!I also added icons to the little actions menu. I couldn't think of anything else to replace the
Actions
with. hahaI'm so rusty with CSS. I wasn't ever good to begin with, but working through this has been fun.
What about a cog? (e.g. ⚙️) That's what I originally used in the very first Tildes mockup I made (from before the site was launched) that had a similar dropdown for topics. :)
yeah, that or ☉ is good.
So, I took the solarized light theme from the stylesheet and bulk mapped it (roughly) with variables. It's pretty close. With a little work, this might work as a good Stylus template for color changes.
give it a swing
Some stuff is a bit off, like the dark text on the spoiler tag and browse groups button... but that's pretty neat!
yeah, that's a straight find and replace. When I get some time, I'll work through it to iron out the kinks and change some variables so they're logical. Once the colors are set, it'd be a breeze to have a second section for physical changes.
Then once it's all done, the three of us who are into this will go 'hm.. that's slick.' and forget it ever existed :)
LOL Nostradamus level prediction there. ;)
Though if someone were to create a frontend using that same find/replace technique to allow people to custom pick their Tildes theme and then output the corresponding Stylus code for them, I suspect it would be far more than just 3 of us who go "hm.. that's slick"... but that would be a hell of a lot more work. :P
well, I did generate the variables using Google sheets. I have a script that automatically updates the cell background to the hex value.
Using Sheets, someone could use https://terminal.sexy/ to generate their color scheme, copy the Xresources formatting, paste it into a sheet and then the formula would spit it out..
which blesses us with
That would be one way to go about it :)
quick edit: did you see the code blocks in my theme? I'm curious if they worked for anyone else.
Have now... I'm personally not a huge fan of zebra striping, but that's probably just me. ;)
okay -- give this a swing. Purely as a proof of concept I mashed together a CYBERPUNK NEON theme I found on github. I plunked everything in place really quickly without much thought.
https://gist.github.com/hello-party/06f7d9b65e9b3ccaabba327e69cd7862
Right now the neon stuff is commented out and Dracula is commented in. I haven't got a generator going, but it's fairly easy to set up a decent theme.
quick note: if anyone stumbles onto this and tries it out, there are bound to be errors.
Here it is with (roughly) the same colors as my previous theme and some other modifications not in the gist -- https://i.imgur.com/Av8bzEG.png
Not bad. It's a tad dark and too low-contrast for my tastes, but regardless... it's really neat how you have managed to do all this. Colour me impressed! I'm gonna have to play around with some of the colours myself and see what I can come up with. :P
yeah, it works well -- but that super dark neon theme was pretty close to the output of a terminal theme. So not all work well, but doing it manually seems to be alright.
I posted one here with some tweaks from my previous theme
https://gitlab.com/tomflint/tildes-stylus-template/raw/master/template.css
Hmmm... I dunno how I feel about moving the topic sort options to the top bar and left aligned. On my Ultrawide that moves it all super super far away from the actual topic listings. :P
oh yeah, that wouldn't be good. But this is all separate stuff that can easily be commented out or completely removed.
Oh yeah, for sure. I am not mentioning any of this to get you to change anything. You do you, and anything I don't like is easy enough for me to change myself. I'm just letting you know my own thought process. :P
The sidebar links are mapped to
var(--cyan)
instead ofvar(--link)
.Not bad for a quick evening project. The bulk of the work was done by whoever did the initial themes for the site. :)
Yep, not bad indeed!
That would probably be @Deimos and @Bauke (who contributed the major theme system overhaul).
I asked deimos this question and he said it wasn't that simple to make.
yeah, with it being compiled, that'd be a pain in the ass. And really, for those of us who want to change things, it's not difficult to use stylus.
Check out the customization wiki article for more userstyles. Some might be out of date.
yeah, I was digging through that. Your section on using uBlock Origin is smart!