Feature: Make the theme swappable
Hi,
I've been running Wishlist at home for a while now and it works great, so thanks for that.
The one thing I'd like to change is how it looks. As far as I can tell that isn't really possible at the moment without forking. data-theme="wishlist" is set directly in src/app.html and there's only the single theme block in src/wishlist.css. Injecting CSS through a reverse proxy works, but it's fragile and I'd have to fix it every time something changes.
Skeleton v4 can handle multiple themes out of the box, so I don't think this would be a big change.
Is that something you'd want in the project? And if so, do you have a preference for how it should work? I was thinking either a couple of built-in themes you can pick in the settings, or just a way to load your own CSS file. No idea whether you'd want it per user or as one global setting.
I'm up for writing it, I just don't want to build something you'd end up turning down.
Thanks
Hey there. I've historically not wanted to allow custom theming or adding additional themes into Wishlist. I still don't want to add additional themes or a theme switcher, but since Skeleton v4 has a new css format just using css variables, it makes a custom css bundle much easier (before the theme was tailwind and was compiled into the bundle).
With that said, I would be okay with there being a way to add a custom.css file, perhaps in the data directory, and be loaded for all users. If there is a nice way to do it, I would be open to such a feature.
Nice I will look into it and create a MR.
@tecbeat we were just talking about adding custom themes for different users. Let me know if you have a branch we can try 😄 .
Thanks! I've been quite busy dealing with the numerous vulnerabilities lately, so I haven't had a chance to work on this yet. I'll let you know once I have something ready to try 😄