I need to create a mechanism that enable a designer to add css file to deployed app from browser. I am thinking of an page with file load to load a css file or a form to upload plain css code. then the app can load the css code dynamically to the app and change the style.
is this possible?
Edit: the css files doesn't exist, I want to create a mechanism that allow user to submit css classes in a form as text, and this new text get loaded to the app automatically.
Yes, that is possible. Here's a crude way to go about it:
If you followed the steps above correctly, the user that submitted the CSS text should now see the new style on the page. If they don't, it's probably because:
.css
files are being served with a mimetype of text/css
.mycssfile.css?v=24353451
) to eliminate this possibility.I hope that helps!