Open scripting opened 11 months ago
@fmfernandes -- i started this thread to discuss how we might do themes in feedland.
this subject came up in another context, where there was a simple solution that works now, but this is something i want to do, and to have it be as comfortable as possible for anyone who wants to use it.
Via the settings dialog for your first news product.
I genuinely like that and feel like it's the easiest way to get familiar with styling news products. Though, I can think of some improvements purely from a developer who sometimes writes CSS perspective:
input
field. A textbox
would already work best because if I'm writing CSS, I'd like to get that indentation we see on files.That's mostly for customizing my own news products, if we're talking themes, as an user, the first thing I'd think is how I'd install those. I can think of a couple ways:
On all of the above, I didn't think of JavaScript. What's a good use case for having custom JavaScript on a theme/template? 🤔
I think we already have a good starting point for themes (the settings dialog) so maybe improving the CSS editing experience there is a good place to start. Going a bit deeper, it would be really nice to be on your news product page and have a small button bringing up a text editor to edit the CSS of that page while at the same time applying those changes so you can live preview them.
@fmfernandes -- this is great stuff. ;-)
i think the intuition that the Settings dialog provides good prior art for this is the right way to go.
a dialog interface for something that ultimately is going to be output as the OPML file we're currently ingesting.
also have a look at the way the lists folder works here, it seems to me that's a pretty good way to distribute themes as well.
Also I've been thinking about how to offer users a subdomain for their news product.
This comes up almost immediately, look at the exchange betw @cagrimmett re his demo of the newspack product.
We could very quickly add that to this user interface.
Right now we have two ways:
What about something that developers will feel more at home with?
I think it's a JSON file, with the same top-level entries.
A theme would be parts 2-4.