The plugin API exposes a number of CSS properties to give the font, background color, size, etc. Is it not sufficient for plugins?
In any case, please don't fetch files in the profile directory, as it's likely to make your plugin break at some point as there's no guarantee that the profile structure will stay as it is.
In fact I will perhaps disable access to profileDir and a few other setting variables as giving access is going to prevent further improvements to the app, since it won't be possible to change it anymore.
No from plugin point of view it is okay how it works right now. I am okay with providing settings which allow users to change the style of a plugin.
But some users asked in another thread if it could be supported. From the user's point of view, it would of course be nice to be able to make all the style changes in one file.
As I said before, I don't see this as urgent. Perhaps we should wait and see if it is requested more often.
I see what you mean, although for now custom CSS support is relatively low priority because it makes things more complex and it's not clear if the work involved to support it is really worth it. For now I would just like to mention that it's best not to implement solutions around access to profileDir, as that might break.
I would prefer instead to improve access to the built-in themes so that plugin views can match the current theme. This would benefit everyone, while custom CSS is more of a niche feature, at least I assume so.
Custom css may or may not be a niche feature, I don't know. I am just commenting here to say that I use it and very much appreciate its existence. Moreover, the liveliness of threads related to custom css suggest that, if it is a niche interest, then the niche might be quite a large one!
Yes a lot of nice stuff are being done using the custom CSS feature and that's great. However since we don't track users we have no metrics to know how many people use this feature. If it was like 50% then it would make sense to look if it can be integrated to the plugin system, but I don't know I expect it's like less than 5%, which makes it low priority compared to other features.
This was suggested on another thread, and I wonder if it is an easier solution? Or something like manually adding a userchrome-.css file would make it accessible. I know I am a minority, but CSS is my favorite feature of Joplin.
I don't use custom CSS actually, and I'm curious why is it an important feature? Is it because the available themes are not good enough? If so, wouldn't the solution be to create more themes? Then theme variables could be made available to plugins, thus making them automatically match the current theme. I feel that's a more elegant solution that would be available to everybody, even those who don't know CSS, but maybe I'm missing something.